Skip to content

Instantly share code, notes, and snippets.

@SriMaddy
Created April 25, 2015 04:12
Show Gist options
  • Save SriMaddy/7aad8f067767f197127d to your computer and use it in GitHub Desktop.
Save SriMaddy/7aad8f067767f197127d to your computer and use it in GitHub Desktop.
ractical OOD in Ruby : Addison - Wesley
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