Created
April 25, 2015 13:23
-
-
Save SriMaddy/907a39b0656fc8fefa85 to your computer and use it in GitHub Desktop.
Practical OOD in Ruby : Addison - Wesley
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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