Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Engineering Principles

Part of the unified study index: Home · how to choose in selection guide.

A study catalog of 110 software engineering, architecture, design, and development principles, grouped into 11 categories. Each principle has its own section with a definition, rationale, example, anti-pattern or failure mode, and related principles. Use it alongside the pattern selection guide and the architecture pages.

How to use this catalog

  • Start with the category that matches your current problem.
  • Read a principle’s Rationale before applying it; principles trade off against each other.
  • Check the Anti-pattern note to recognize misuse.
  • Follow Related links to neighboring principles and patterns.

Categories

  1. SOLID Principles — 1–5
  2. General Software Design Principles — 6–20
  3. Architecture Principles — 21–33
  4. Distributed Systems Principles — 34–52
  5. Performance and Resource Management Principles — 53–61
  6. Security Principles — 62–69
  7. Testing and Quality Principles — 70–77
  8. API and Protocol Design Principles — 78–84
  9. Development and Project Management Principles — 85–92
  10. Functional Programming Principles — 93–100
  11. BEAM / OTP Design Principles — 101–110

Contents at a glance

#PrincipleCategory
1Single Responsibility Principle (SRP)SOLID
2Open/Closed Principle (OCP)SOLID
3Liskov Substitution Principle (LSP)SOLID
4Interface Segregation Principle (ISP)SOLID
5Dependency Inversion Principle (DIP)SOLID
6DRYGeneral Design
7KISSGeneral Design
8YAGNIGeneral Design
9Separation of ConcernsGeneral Design
10Principle of Least AstonishmentGeneral Design
11Law of DemeterGeneral Design
12Composition over InheritanceGeneral Design
13EncapsulationGeneral Design
14Information HidingGeneral Design
15Program to an InterfaceGeneral Design
16Fail FastGeneral Design
17Defensive ProgrammingGeneral Design
18Least PrivilegeGeneral Design
19Explicit over ImplicitGeneral Design
20Convention over ConfigurationGeneral Design
21Separation of Architecture and ImplementationArchitecture
22Dependency RuleArchitecture
23Hexagonal ArchitectureArchitecture
24Clean ArchitectureArchitecture
25Onion ArchitectureArchitecture
26Domain-Driven DesignArchitecture
27Bounded ContextArchitecture
28High Cohesion, Low CouplingArchitecture
29ModularityArchitecture
30Stable DependenciesArchitecture
31Stable AbstractionsArchitecture
32Common ClosureArchitecture
33Common ReuseArchitecture
34CAP TheoremDistributed Systems
35PACELCDistributed Systems
36Eventual ConsistencyDistributed Systems
37Strong ConsistencyDistributed Systems
38IdempotencyDistributed Systems
39BulkheadDistributed Systems
40Circuit BreakerDistributed Systems
41TimeoutDistributed Systems
42Retry with BackoffDistributed Systems
43At-Least-Once DeliveryDistributed Systems
44At-Most-Once DeliveryDistributed Systems
45Exactly-Once ProcessingDistributed Systems
46Single WriterDistributed Systems
47Leader ElectionDistributed Systems
48BackpressureDistributed Systems
49Fault IsolationDistributed Systems
50Graceful DegradationDistributed Systems
51Event SourcingDistributed Systems
52CQRSDistributed Systems
53Premature OptimizationPerformance
54Locality of ReferencePerformance
55Batch ProcessingPerformance
56Lazy EvaluationPerformance
57Resource PoolingPerformance
58Bounded ResourcePerformance
59Zero-CopyPerformance
60Data-Oriented DesignPerformance
61Concurrency over ParallelismPerformance
62Zero TrustSecurity
63Defense in DepthSecurity
64Secure by DefaultSecurity
65Complete MediationSecurity
66Fail SecurelySecurity
67Economy of MechanismSecurity
68Least Common MechanismSecurity
69Separation of PrivilegeSecurity
70Test PyramidTesting
71Arrange-Act-AssertTesting
72FIRSTTesting
73Shift Left TestingTesting
74Test IsolationTesting
75Deterministic TestingTesting
76Continuous IntegrationTesting
77Regression TestingTesting
78Postel’s LawAPI
79Principle of Least SurpriseAPI
80Backward CompatibilityAPI
81Semantic VersioningAPI
82API ConsistencyAPI
83StatelessnessAPI
84Self-Describing MessagesAPI
85Boy Scout RuleDevelopment
86Continuous RefactoringDevelopment
87Small BatchDevelopment
88Feedback LoopDevelopment
89Automation FirstDevelopment
90Single Source of TruthDevelopment
91You Build It, You Run ItDevelopment
92Evolutionary ArchitectureDevelopment
93ImmutabilityFunctional
94Pure FunctionsFunctional
95Referential TransparencyFunctional
96Function CompositionFunctional
97Higher-Order FunctionsFunctional
98Declarative ProgrammingFunctional
99Side Effect IsolationFunctional
100Recursion over Mutable IterationFunctional
101Let It CrashBEAM/OTP
102Fault IsolationBEAM/OTP
103Share NothingBEAM/OTP
104Supervision TreeBEAM/OTP
105Process-per-ResponsibilityBEAM/OTP
106Message PassingBEAM/OTP
107Location TransparencyBEAM/OTP
108Preemptive SchedulingBEAM/OTP
109Behavior-Based DesignBEAM/OTP
110Explicit State OwnershipBEAM/OTP