Last week you started creating your own objects in Ruby. This week you will be working with something called Object-Oriented Design. There is a great resource called Practical Object-Oriented Design in Ruby (book) (affectionately pronounced "Poo-Dur"). There isn't a free copy online, so use the mighty power of google (and the free book preview on Amazon) to introduce yourself to the fundamentals of object-oriented design.
Don't forget your Unit Goals (listed below)!
- Testing with Assert Statements
- Drawer Debugger
- Creating a BoggleBoard Class
- Creating a PezDispenser Class - SOLO CHALLENGE or Create a Playlist from Driver Code - SOLO CHALLENGE
- Refactoring for Code Readability
- Technical Blog
- Cultural Blog
- BONUS Creating a Car Class from User Stories
Sync changes from the master repo by following the steps here. Make sure you follow them step by step. If you experience problems, please attend office hours. It's difficult to diagnose problems relating to git and github via email. In the meantime, you can create the necessary files from the web version and copy the content.
- If you are doing this from the Github Desktop App, follow these directions.
- If you are doing it from the command line, follow these directions.
Open your local version of the directory in Sublime. Make your changes and commit/sync as you complete challenges.
Make sure to include specific commit messages and sync your changes each time you complete a challenge.
You need to submit your work through a google form (TBD) by Sunday at 11:59pm. Expect to submit the links from your repo for each challenge above.
- Pair at least once this week with a member of your accountability group. You need to pair 4 times on your own this unit
- Give feedback for each person you paired with. You need to submit at least 5 pieces of feedback in this unit
- Rate at least 7 pieces of Meta Feedback on Socrates. You need to rate 20 pieces of feedback per unit
These are for reference if you want some additional sources.
- Practical Object-Oriented Design in Ruby (POODR - book) HINT: work through one of your challenges as you read
- Writing our own Class in Ruby
- Ruby Classes and Objects
- Introduction to Refactoring
- Ruby for Newbies
- Ruby Variable Scope
- GangesLearning (Videos)
- The Well-Grounded Rubyist (Book) - This is a really great Ruby reference. We recommend getting it.