Skip to content

Instantly share code, notes, and snippets.

@m-delarosa
Forked from damwhit/mod_0_session_3_readings.md
Last active October 31, 2019 00:12
Show Gist options
  • Save m-delarosa/26baf5fb504dc438cc1e9ffd5cb2b93a to your computer and use it in GitHub Desktop.
Save m-delarosa/26baf5fb504dc438cc1e9ffd5cb2b93a 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 35 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.

Based off of GitHub flow:

  1. Create a branch: Useul for working on one specific aspect or trying out new ideas on a project witout affecting the master branch.
  2. Add commits: Adding commits keeps track of your changes and progress when youre working on a branch. Think each commit as a seperate unit of change for when rolling back in the future. Writin clear commit messages also make it easier for other people to follow your work, leave feedback and debug if need be.
  3. Open a pull request: Generally speaking, you do this when you'd like someone to review your work. You can even provide little to no code or just screenshot to receive guidane on a poject. Using the @mention feature will allow you to notify someone in particular you'd like to receive feedback from.
  4. Discuss and review code: Discuss the status of your work on the pul request. Determine whether it is ready or needs more work. Same if you're reviewing for someone else.
  5. Deploy: Deploy from your branch for final testing in production environment (real world use I'm assuming).
  6. Merge: Combine your changes with the master branch.

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.

Class: Beatle

Object 1: John

Attributes:

var insturment = ["guiter", "piano", "voice"]

var eyecolor = "light_brown"

var heightInch = 69

var alive = false

Methods:

writeMusic()

harmonize()

sing()

playPiano()

playGuitar()

Object 2: Ringo

Attributes:

var insturment = "drums"

var eyecolor = "blue"

var heightInch = 66

var alive = true

Methods:

writeMusic()

playSolo()

sing()

playDrums()

crashSymbal()

breakBeat()

Object 3: Paul

Attributes:

var insturment = ["bass", "guitar", "piano"]

var eyecolor = "hazel"

var heightInch = 70

var alive = true

Methods:

writeMusic()

playSolo()

sing()

playPiano()

playBass()

I'd do George too, but you get the idea.

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