SOLID
Single resposibility principle
Open/Close Principle
Liskov substitution principle
Interface segregation principle
Dependency inversion principle
Single resposibility principle
Open/Close Principle
Liskov substitution principle
Interface segregation principle
Dependency inversion principle
Single resposibility principle
+ Some strategies on how to deal with a legacy code
Just two things...
Please ignore the boilerplate, it's not relevant
YUI is not relevant either
Lifecycle methods
afterRender
Demo
Single resposibility principle
A class should have only one reason to change.
Made with Slides.com