The readings and responses listed here should take you approximately 35 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 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 in git revolves around forking and branching. The idea is that any group of users can be working on copies of the same material off of the master (where any code is ready to be deployed). Whether you fork a copy to make changes, or create branches to work on specific aspects of the project, you can make pull requests at any time. These bring the rest of the team or specific members into the loop to make comments or work with the code. I believe in most cases they have access to the work at all times, pull requests serve as a "look here" or "ready for the team" flag.
- Watch this video. Next, create an idea for a class of your own. In the space below, outline your class idea. Include a name for your class, at least 3 examples of instances of your class, 3 attributes of the class with data type listed, and 3 methods of the class with an explanation of what the method would do. Remember to consider naming conventions!
class Pillow
instances of pillow class
- throwPillow - this is probably not the best name since it could be confused with a method.
- bedPillow
- bodyPillow
- beanBag
- couchCusion
attributes of pillow class
- volume (float)
- size (float)
- color (string)
- isComfy (boolean)
methods of pillow class
- useCusion, acts as a soft object to put on a hard place to increase comfort.
- propUp, can be used to prop bodies and objects up into more comfortable positions.
- throw, can be thrown at any number of objects, including other people with pillows.
Hey @francepack
Thanks for the feedback. I was definitely getting confused about formatting throughout the class. I worked in your comments - please let me know if I should keep working on this one!