Other Principles
Don't Repeat Yourself (DRY) Duplication should be abstracted
|
Law of Demeter Only talk to related classes
|
Hollywood Principle "Don't call us, we'll call you"
|
You Ain't Gonna Need It Only code what you need now
|
Keep It Simple, Stupid Favor clarity over cleverness
|
Convention Over Configuration Defaults cover 90% of uses
|
Encapsulation What happens in Vegas...
|
Design By Contract And then write tests
|
Avoid Fragile Base Class Treat Base like a public API
|
Common Closure Principle Classes that change together, stay together
|
Comments
Related