Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 2.04 KB

tasks.md

File metadata and controls

58 lines (39 loc) · 2.04 KB

Tasks set - Future of Pair Programming

This is more of a challenge lab than a guided lab. See if you can get the code better, without writing a single line of code yourself. You are only allowed to write queries for GitHub Copilot, until you have the result you want.

Of course, copying and pasting is allowed.

  1. Explore Copilot in IntelliJ IDEA
  2. Understand the code
  3. Simple renaming
  4. More complex refactors
  5. Test your code
  6. Optimize the algorithm

Task 1 - Explore GitHub Copilot

Make sure the plugin for the chat and license are installed and activated. Explore the features, even experiment with the inline generator for a second. You can toggle everything via the GitHub Copilot menu at the bottom.

githubCopilotMenu.png

Also make sure to explore the GitHub Copilot Chat function, as we expect you to use the chat.

githubCopilotChatPlugin.png

Task 2 - Understand the code

Let Copilot explain you the code.

Task 3 - Renaming a class and a variable

Using the guidelines in the docs folder, make sure Copilot regenerates better names for both the Algorithm class and its only field (seed).

Task 4 - Refactor and simplify

Refactor the current code so it becomes more readable. Copilot should use the Style and Reference guide from the docs folder, to do this refactor. Make sure the refactors follow these guidelines.

Watch out, the code should work the same way. Mind negative numbers.

Task 5 - Get the code tested

Let Copilot create the needed tests. And be mindful of how the code right now is written.

Task 6 - Optimize the algorithm

Now query for other options for the algorithm, as we have chosen the least optimized version. Let Copilot advise you and implement your choice. Make sure all tests keep running!