Skip to content

Principles

Design principles that apply regardless of technology, team size or architecture style.

Entries are sorted by score from 1 to 10 (criteria): 9โ€“10 start here or strongly recommended, 6โ€“8 recommended, 1โ€“5 further reading or conditional.

Adopted references

  • 9 Software Architecture Guide (Martin Fowler): the entry point for what architecture is and why internal quality matters.
  • 8 Architectural principles (Microsoft): a compact, technology-agnostic list. It covers separation of concerns, encapsulation, dependency inversion, explicit dependencies, single responsibility, DRY, persistence ignorance and bounded contexts.
  • 7 The Principles of OOD (Robert C. Martin): the original SOLID and package-design principles.
  • 7 Beck Design Rules (Kent Beck via Martin Fowler): the four rules of simple design.

Key rules

Focus

Modularity

Simplicity

  • 7 PRIN-9 Don't build capabilities for presumed future needs (YAGNI), but do keep the code easy to change. YAGNI doesn't apply to refactoring and other work that makes the software easier to modify. (Fowler, Yagni)
  • 7 PRIN-10 Prefer the simplest design that passes the tests, reveals intention, has no duplication and has the fewest elements. (Beck Design Rules)
  • 6 PRIN-11 Take on technical debt deliberately and prudently, and know when you're doing it. (Fowler, Technical Debt Quadrant)

Concurrency

Socio-technical design

Tutorials and further reading