code-dot-org / csa-se-lesson2f

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SocialSense

Dive into the world of public opinion with SocialSense! Let SocialSense decode the mood of the masses, and explore the good, the bad, and the neutral with just one click!

Goal: Implement a method to analyze the sentiment of a social media post and return "Positive", "Negative", or "Neutral" based on the sentiment.

Using Copilot as the Driver

Step 1: Enter this prompt in the chat to prime Copilot to act as the driver:

Can you act as a pair programmer for me while I work on this project? I'd like you to act as the driver while I act as the navigator. You will suggest code a few lines at a time and also explain what the code does. I will keep track of the bigger picture and check your code to make sure it’s doing what we want it to do.

Step 2: Write your code to complete the program. Every 1-2 minutes, check in with Copilot like you would if your driver was one of your peers. For example, you could:

  • Have it decompose the problem into steps
  • Prompt Copilot for code for a specific step and enter it into your editor
  • Provide feedback to Copilot on code that it generated to improve the solution or suggest a different way to write the code
  • Suggest fixes to Copilot for any syntax or logic errors
  • Make sure that the code it suggests will solve the problem

Either as you go or after you are done writing your program, answer the following questions to reflect your experience using Copilot as the driver.

What did Copilot do well as the driver?

Write your response here!

What did Copilot struggle with as the driver?

Write your response here!

What challenges did you face while working with Copilot as the driver?

Write your response here!

About


Languages

Language:Java 74.6%Language:CSS 25.4%