SOLID
S | SRP |
|
---|---|---|
O | OCP |
|
L | LSP |
|
I | ISP |
|
D | DIP |
|
http://www.codinghorror.com/blog/2009/02/the-ferengi-programmer.html
- SINGLE RESPONSIBILITY - DON'T MAKE A BIG BALL OF MUD.
- OPEN CLOSED - DON'T MAKE A THING THAT CAN BE INADVERTANTLY TROUNCED BY ANOTHER THING.
- LISKOV SUBSTITUTION - WHEN POSSIBLE MAKE THINGS MODULARLY SO YOU CAN CHANGE LESS LATER.
- INTERFACE SEGRATION - DON'T MAKE A CLIENT DEPEND ON INTERFACES THEY DON'T NEED.
- DEPENDENCY INVERSION - DON'T MAKE SOMETHING CONCRETELY DEPENDENT ON SOMETHING ELSE, RELY ON ABSTRACTIONS