Skip to content

Instantly share code, notes, and snippets.

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

Reading 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 collaboration on git allows multiple people to work on the same project at the same time. Github is a centralized repository that acts as an entry point for all collaborators. The first developer initializes the central repository and then the collaborators clone it. Everyone can now make changes and commits. If two developers try to make changes to the central repository at the same time, the second one to commit will be rejected and git will return an error. They will need to pull the other developer's update to push their commits. Git will try to combine their commits with the update.

Reading 2 (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: When an object keeps it's actions (functions, variables) private (inside a class) and other objects cannot interact with these actions. The outside objects have no idea they exist, but they can interact with the object through common (public) actions.

  • Abstraction: A way of simplifying multiple tools into a few distinguishable components. This makes it easier for the end user and won't change when the code is ultimately updated.

  • Inheritance: Allows two objects to use the same actions by declaring a common class for an object (child) with another object (parent). They can still use exclusive actions, too.

  • Polymorphism: When the child object has a list of elements that act like the same object. These elements can run the same actions but each element has it's own way of processing the action.

@rwarbelow
Copy link

👍

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