Skip to content

Instantly share code, notes, and snippets.

@BrandyMello
Forked from rwarbelow/mod_0_session_4_readings.md
Last active February 8, 2019 16:28
Show Gist options
  • Save BrandyMello/19dfeb5bbf8e0130a66c543fc822d9de to your computer and use it in GitHub Desktop.
Save BrandyMello/19dfeb5bbf8e0130a66c543fc822d9de 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.
    • When working on your own you can work on several different local computers: adding, committing, and pushing to GitHub to update your work.
    • When working collaboratively, collaborators can add, committ and push changes to through Git to the repository on GitHub. Branches are used so that changes, adds, and commits can be made with less commitment to the master branch. Experimentation is best done on branches off the master so that the master can remain deployable.

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: Encapsulation is when the objects within a class (fields and methods) are closed to direct outside (public) influence. The public methods can only change their internal fields and methods so that when the class calls on the public method it may elicit change or a response from the private fields or methods through the encapsulated class, creating an indirect connection.

  • Abstraction: Applying abstraction means building the highest level of interaction as a simple set of actions or public methods, keeping the more complex tasks more deeply nested.

  • Inheritance: Inheritance is when a group of differentiated classes maintain the fields and methods of an umbrella class while adding to those with their own unique set of methods and fields. The umbrella class is referred to as the parent class while the sub-classes are referred to as the child classes.

  • Polymorphism: Polymorphism is when you want to apply a method to a mixed group of classes (parent and child classes). When the method is applied, the class called on uses its individual methods to fulfill the function.

@rwarbelow
Copy link

👍

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