- Implement a basic Ruby class and identify when to use instance variables
- Identify the attributes and methods of a class based on user stories
- Identify tradeoffs between simple OO design patterns
In this challenge, you will create an electronic grocery list command-line application. Show off the object-oriented design principles you learned last week. You should spend time discussing tradeoffs with different designs. This is your grocery list, so get creative and have fun, but also make it great code!
With your partner, talk about what you would like to do with your grocery list. Start each statement with "As a user, I want to ..." These are what we call "user stories."
Release 1: Pseudocode
What objects, classes, and methods will you need to do each of the things you identified in your user stories?
Release 2: Write Driver Code
Translate your pseudocode into driver code. Write driver code at the bottom (to call the method on the object).
Release 3: Initial Solution
Create your initial solution.
Release 4: Refactor your solution
With your partner, review the code. Is it DRY? Are the names good?
Release 5: Reflect
Copy your code from stypi into the our_solution.rb file. Then complete a reflection in the designated section.