Optional Pairing Session

Back

Learning Goals

  • Get to know another classmate and collaborate on technical work
  • Identify strengths and opportunities in oneself as a pair programmer
  • Screen share, type in front of others, and communicate technical concepts

Prepare

Before meeting with your partner, reflect on the following:

  • What is one thing you are going to commit to doing, to be a great driver today?
  • What is one thing you are going to commit to doing, to be a great navigator today?
  • What is one thing you really need your partner to do to help you have an effective pairing session?

Be ready to share your answers with your partner.

Set Collaboration Expectations

Spend a few minutes getting to know each other and discussing the questions you were asked to prepare answers to. This will help set expectations for what you each need and can commit to doing, and is an important habit to build when you start a working relationship. You’ll be asked to reflect on both preparation questions (and how the session went in regards to those) after the pairing session.

Then, decide who will be the Driver and Navigator for the first challenge, then switch roles for the second exercise.

Exercises

The two challenges below are for both Back End and Front End students!

Pairing Exercise 1

  • In your Mod 0 directory, create a new directory called pairing_2. Inside of that directory, touch a file called friends. Initialize a Git repository.
  • Define a variable named arrays that stores an Array of 5 Strings with friends names.
  • Write code to print the third element.
  • Write code to print the last element.
  • Write code to print the first element.
  • Run the file in the Terminal to verify your code is working as expected.
  • Create a GitHub repository.
  • Push your work from the local repository to the remote repository.
  • Define another variable that stores an Array of 5 Strings, with names of places to visit.
  • Use one of the Array methods to do something to that new Array - you choose!
  • Run the file in the Terminal to verify your code is working as expected.
  • Push that new work up to the remote repository.


Pairing Exercise 2

  • In your Mod 0 directory, create a new directory called pairing_2. Inside of that directory, touch a file called friends. Initialize a Git repository.
  • Define a variable that stores a String containing a name of a best friend.
  • Write an if statement that prints out a statement for your best friend, and one for any other friend.
  • Run the file in the Terminal to verify your code is working as expected.
  • Create a GitHub repository.
  • Push your work from the local repository to the remote repository.
  • Define another variable that stores a name of another very good friend.
  • Modify your if statement to include and elsif that prints out a different statement for that very good friend.
  • Run the file in the Terminal to verify your code is working as expected.
  • Push that new work up to the remote repository.





Back