I’ve just loved Hanselman’s show #145, SOLID Principles with Uncle Bob - Robert C. Martin.
I’ve resisted the impulse to join Uncle Bob’s vs Joel Spolsky blog wars. I’m only interested in making reference to Bob’s far-sighted digest of fundamental OO principles. Let me copy them using the order someone have suggested to make it SOLID:
SRP | A class should have one, and only one, reason to change. | |
OCP | You should be able to extend a classes behavior, without modifying it. | |
LSP | Derived classes must be substitutable for their base classes. | |
ISP | Make fine grained interfaces that are client specific. | |
DIP | Depend on abstractions, not on concretions. |
This are the class principles. Please follow the link to get the packages and coupling principles.
No comments:
Post a Comment