This is a set of excercises used for internal trainings. You can do the excercises on your own. Each SOLID principle has it's own branch.
Simply clone the project and checkout branch that coresponds to one of the principles. To find excersices just search for principle acronim inside the code base, ex. "[SRP]" to find Single Responsibility Principle excercises.
A class should have one, and only one, reason to change
You should be able to extend a class’s behavior, without modifying it.
Derived classes must be substitutable for their base classes.
Make fine-grained interfaces that are client specific.
Depend on abstractions, not on concretions.
Install dependencies
bundle install
Set up database
rake db:reset
Check if tests are working
rspec -fd
Run the server and check http://localhost:3000
rails s
- You can book a clown for you party
- Clowns are getting points depending on their contract
tbd.
Each unit should only talk to its friends; don't talk to strangers.