Skip to content

Instantly share code, notes, and snippets.

@vladd-png
Forked from damwhit/mod_0_session_3_readings.md
Last active August 22, 2019 19:18
Show Gist options
  • Save vladd-png/c5446adf07be332a6f853cbf7eaaa55c to your computer and use it in GitHub Desktop.
Save vladd-png/c5446adf07be332a6f853cbf7eaaa55c 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 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 (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.

Collaborative Workflow with Myself

  1. Create a folder and text file on my personal computer at home.
  2. Commit and push the repository to my personal github page online.
  3. Pull my respository to my at home desktop computer.
  4. Make more chages, add, commit, and push to github. Github brings the work online so it can be accessed from any computer. It stores the files so the mst up-to-date version is easily accessible whenever, wherever. Though github is not required for git to work, it streamlines the process exponentially.

Collaborative Workflow with Others

  1. Download a working repository from github
  2. Create a branch to test new ideas and code
  3. Add and commit your changes
  4. Open a pull request to start a conversation about your new edit
  5. Use markdown to discuss your pull request
  6. Merge or don't merge your edits

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 [Plant]

  1. tomato_plant
  2. marigold_plant
  3. pepper_plant
  4. nasturtium_plant
  5. chive_plant
  6. basil_plant

Attributes of [Plant]

  1. plant_type (vegetable, flower, herb)
  2. leaf_type (oval, pointed, long, round, full, sparse)
  3. edible (boolean)
  4. pepper_type (fresno, anaheim, santa_fe, banana, poblano)
  5. size (float)
  6. alive (boolean)

Methods of [Plant]

  1. grow
  2. eat
  3. die
  4. rot
  5. flower

Assignment 3 (30 min)

Markdown is the format all of your homework gists have been written in.

Using this markdown cheatsheet, create 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/vladd-png/2c9f85c474cb9009aed8f921064121df

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