Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save julianenochs/717f20e9684ce2c1c0e99ffa460900ca to your computer and use it in GitHub Desktop.
Save julianenochs/717f20e9684ce2c1c0e99ffa460900ca 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.

The general process of a collaborative git workflow first involves a repository in the remote GitHub. Commits are pushed from the individuals working local Git to the remote repository. From the origin document, each individual will fork the repository to make their own copy. Changes made are then pushed to the remote repository and stored so that everyone can see all updates/changes. You can pull from the collaborative remote repository at any time commits have been pushed.

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 : Silverware objects : Forks, spoons, knives

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: Encapsulation means to contain data, variables, and methods as one singular unit. This means that an object will keep it's state private, the encapsulated information will not be available to other objects.

  • Abstraction: Abstraction means that an object will only expose it's high level processes. A great example of this is buttons. When you push a button, you are only seeing the high level process of the button being pressed and not the underlying complex processes which carry out the function of said button.

  • Inheritance: Inheritance is where a child class is created from a parental class. The child class will use all of the parent fields and whatever unique fields that are added.

  • Polymorphism: Polymorphism allows for single methods to be applied to various classes. A child and a parent can be affected via polymorphism if the method is set up as such.

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/julianenochs/ecf3133e69607490c1696e71fea574b0

@katiescruggs
Copy link

Great work, @julianenochs! Nice example of class with silverware. It looks like your gist is not formatting properly because it is missing the .md file extension. Try renaming your file to beginners-guide-git.md and see if the formatting comes through!

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