Created
April 25, 2015 04:12
-
-
Save SriMaddy/7aad8f067767f197127d to your computer and use it in GitHub Desktop.
ractical 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
Class : Doing possible smallest thing | |
Change : | |
-> no side effects | |
-> small change in requirement require small change in code | |
-> existing code should be easy to reuse | |
-> add code that in itself must be easy to change further | |
TRUE princliple | |
High cohesion : High single ersposibility | |
Depend on behaviour not on data. | |
Hide Data Structures(cell[0]: rim, cell[1]: tire) | |
Even iteration should be isolated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment