Skip to content

Instantly share code, notes, and snippets.

@nwgambee
Forked from damwhit/mod_0_session_3_readings.md
Last active September 11, 2019 18:16
Show Gist options
  • Save nwgambee/8701f7712a32af159390bbfcaca031ea to your computer and use it in GitHub Desktop.
Save nwgambee/8701f7712a32af159390bbfcaca031ea to your computer and use it in GitHub Desktop.
Mod 0 Session 3 Readings and Responses

Session 3 Readings and Responses

The readings and responses listed here should take you approximately 50 minutes total.

To start this assignment:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of this document.
  2. Click the Edit button when you're ready to start adding your answers.
  3. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.

Assignment 1 (20 min)

Read David's article on Git and GitHub

  • Use the article and outside resources (Google!) to describe the general process of a collaborative git workflow in the space below.

  • My Answer: The general collaborative git workflow is important to understand in order to work and communicate in the most efficient matter with your team. According to this article, git is "the most widely used modern version control system in the world today." While GitHub is a website where you can view and host the git repositories. Within each repository are small snapshots of the contents at different stages of completion or editing. These small snapshots are called commits. All of these components work together in the basic order listed below

  1. Team member #1 edits a file, and then commits those changes to git. TM#1 then uses git to push these commits to the repository hosted on GitHub.
  2. Team member #2 pulls down the edited files to their own computer, where they can then continue to make changes (commits).
  3. Once team member #2 is done making changes, they commit the changes and push them back to GitHub, where Team member #1 can now view and pull down the files again,
  4. This process repeats over and over until the project is complete.

Assignment 2: OOP and Bottles (12 min)

  • Watch this video. Then choose your own real-world class and objects of that class. In the space below, define and name the attributes and methods for your class and the associated objects.

  • My Real-World Example: In my example, my class is golf_club. Three instances of this class are driver, wedge, and putter. Three attributes they all share are grip_tackiness, shaft_length, and club_head_loft. Below are examples of methods and their effect on attributes:

  1. The replace_grip method changes the grip_tackiness attribute.
  2. The change_loft method changes the club_head_loft attribute.
  3. The shorten_shaft method changes the shaft_length attribute.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment