The 10 Guidelines for Maintainable Software
Write Short Units of Code
Short units are easier to understand.
Write Code Once
Duplicated code means duplicated bugs and duplicating changes.
Separate Concerns in Modules
Modules with a single responsibility are easier to change.
Keep Architecture Components Balanced
A balanced architecture makes it easier to find your way.
Automated tests are repeatable, and help to prevent bugs.
Write Simple Units of Code
Simple units are easier to test.
Keep Unit Interfaces Small
Units with small interfaces are easier to reuse.
Couple Architecture Components Loosely
Independent components can be maintained in isolation.
Keep Your Codebase Small
A small codebase requires less effort to maintain.
Write Clean Code
“Leave the campground cleaner than you found it.”