The readings and responses listed here should take you approximately 50 minutes total.
To start this assignment:
- Click the button in the upper right-hand corner that says Fork. This is now your copy of this document.
- Click the Edit button when you're ready to start adding your answers.
- To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.
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.
Git is the VCS that you can work on locally. GitHub is the website where you can remotely house repos. You can work locally and push/pull updates to GitHub. You have to start tracking, then add changes to the staging area and commit as you make changes to your work. Git and Github allow for collaborative workflow because branches can be created off the master so that others can work on the repo (or individual parts of the repo) at the same time and pull/push changes that can be merged so no one's work is lost.
-
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.):
House Plant
Potted Marbled Pothos, Banana Plant, Air Plant, Aloe Plant
Age, Color, Flowering Boolean (Does it produce flowers?), leaf size, Vine length, Container type, water frequency requirement, sunlight requirement, last watering
Bloom method uses flowering boolean and modifies color attribute, wilt_leaves method uses water frequency and sunlight requirement and modifies color and leaf size attributes, repot_plant method modifies container type, trim_vine method modifies vine length, water_plant method use water frequency attribute and modifies last watering.
Table
My coffee table, my side table, my dinner table, my patio table
Material, height, length, width, amount of weight it can hold, top texture, finish, number of legs, top shape, style of legs
Hold_books method uses amount of weight it can hold, length, width. Refinish_top method uses length, width, material and modifies finish and top texture. Count_legs method uses number of legs. Describe_for_sale method uses style of legs, shape, finish, material. Be_used_as_stepstool_to_reach_high_thing method uses amount of weight it can hold and height.
*Only class and object was required but thinking through the attributes and methods last Mod 0 session helped me put it all together.
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:
Great work, @hfaerber! Awesome examples of objects with the attributes and methods.