Exercise 1¶
The purpose of this exercise is to help you ease into the course flow for the semester. You will learn where to find the homework assignments and how to correctly set up your git
repo for this course.
Tasks¶
- Do problem #2 on Homework 1 (https://harvard-iacs.github.io/2020-CS107/category/homework.html).
Exercise 2¶
By the end of this exercise, you will be ready to use Deepnote for pair programming.
Tasks¶
- Login to Deepnote if you haven't already: https://deepnote.com/join-team?token=91n852m91
- Create a new project called
CS107_Pair_Programming
- Create a new directory in this new project called
PP1
Exercise 3¶
All work on PP exercises should be committed to your master
branch. If you have begun to work on HW1, please commit that work to its branch before checking out master
to add the file at the end of this exercise. Feel free to ask your TF if you have any issues.¶
You will be assigned a random group and sent to a breakout room. Please wait for your TF. This exercise will be performed in the PP1/
directory that you just created.
By the end of this exercise, you will have gone through your first pair programming workflow! We will check that you successfully pushed the README.md
file to your repo.
Tasks¶
- Invite group members. Make sure they have "Edit" access.
- Create a terminal. This is the fifth icon from the top.
- Create a
README.md
file. You can put anything you want in here. A good choice would be something like the figure below. - Inside the terminal, from the command line, play around with some of the Linux commands you started to learn in lecture. At the very least, try to use
ls
and some of its options. - Now download
README.md
to your local computer, copy it to thepair_programming/PP1/
directory of your course repo, andgit push
.
A few comments¶
- The tasks above are not necessarily connected. The main goal is to help you get familiar with the correct workflow.
- For example, you can choose to share your code with your partners or not for this session. In the future, you will be required to share code.
- Similarly, you are not required to create a file directly from the terminal. However, in the future, once you are more comforable with Linux and the command line, you will be required to do all of this from the command line.
In [ ]: