Skip to content

Instantly share code, notes, and snippets.

@SriMaddy
Created April 25, 2015 13:23
Show Gist options
  • Save SriMaddy/907a39b0656fc8fefa85 to your computer and use it in GitHub Desktop.
Save SriMaddy/907a39b0656fc8fefa85 to your computer and use it in GitHub Desktop.
Practical OOD in Ruby : Addison - Wesley
Interface : method inside class which should be communicate with other objects with clear message pattern.
Ex : Kitchen
-> serve() is necessary but cookingManner() is not necessary.
-> Make them appropriate private or public interfaces
Use UML, Sequence diagram
Ask for what not for how
Reduce Law of demeter(Message chaining)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment