Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tbierwirth/48adb41de33431fa41420bd9314061ce to your computer and use it in GitHub Desktop.
Save tbierwirth/48adb41de33431fa41420bd9314061ce to your computer and use it in GitHub Desktop.
Mod 0 Session 4 Readings and Responses

Session 4 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 (30 min)

Read Turing Instructor David Whitaker'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.
  • Consider that a couple developers start a new project (repository) on GitHub. One developer adds a few files, commits and pushes the files to master. The second developer pulls those files, makes some changes, adds a commit and sends a pull request. They also add a couple new files, make a commit and push those new files to master. This cycle of adding, commiting, pushing and pulling files are the fundamentals ofa collaborative git workflow.

Assignment 2 (10 min)

  • Watch Tim's video on classes and objects.

  • In the space below, come up with your own example of a class (like "bottle") and several objects (like "spray bottle", "nalgene", etc.):

  • Class: Grains

    • Objects: Brown Rice, White Rice, Farro, Quinoa

Assignment 3 (20 min)

In preparation for our final technical session on Tuesday, read FreeCodeCamp's Object Oriented Programming Concepts. This article touches on four big concepts: encapsulation, abstraction, inheritance, and polymorphism. Although the final two are beyond the scope of Mod 0, it's good to be exposed to unfamiliar terms so that when you hear them the second time around, they make more sense. After reading the article, describe in three sentences or less each of the concepts in your own words. Feel free to use Google to supplement your understanding.

  • Encapsulation: Packaging objects and the methods that interact with those objects privately inside a class. Objects that are not inside the same class can not interact with eachother except through public methods.

  • Abstraction: Simplifying the user's experience by hiding the complexity of the underlying codebase.

  • Inheritance: A hierarchy of class's that are related to eachother. The derived class reuses the methods from the parent class while also being able to use it's own unique objects and methods.

  • Polymorphism: Accessing a child class of objects with the same method used for the parent class while maintaing the exclusive methods of the child class.

Assignment 4 (40 min)

Skim this intro to Markdown. It's not necessary to memorize because you can always come back to it as a reference.

Next, a new gist of your own by clicking the New Gist button in the upper right-hand corner of the screen. Create a "Beginners Guide to Git" documenting your git knowledge so far using Markdown. Incorporate each of the following features into your Gist:

  • at least two headings of different sizes

  • at least one numbered list

  • at least one bullet point list

  • at least one bold word/phrase

  • at least one italic word/phrase

  • at least one code block

  • at least one inline code block (greyed text)

  • at least one image

  • Paste the link to your gist here: https://gist.github.com/tbierwirth/25a8b60ad9a648519e5931e4ffb864b1

@katiescruggs
Copy link

Great work, @tbierwirth! Nice example of class with grains. Please remember that class names are singular.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment