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
- SOLID Principles — 1–5
- General Software Design Principles — 6–20
- Architecture Principles — 21–33
- Distributed Systems Principles — 34–52
- Performance and Resource Management Principles — 53–61
- Security Principles — 62–69
- Testing and Quality Principles — 70–77
- API and Protocol Design Principles — 78–84
- Development and Project Management Principles — 85–92
- Functional Programming Principles — 93–100
- BEAM / OTP Design Principles — 101–110
Contents at a glance
| # | Principle | Category |
|---|---|---|
| 1 | Single Responsibility Principle (SRP) | SOLID |
| 2 | Open/Closed Principle (OCP) | SOLID |
| 3 | Liskov Substitution Principle (LSP) | SOLID |
| 4 | Interface Segregation Principle (ISP) | SOLID |
| 5 | Dependency Inversion Principle (DIP) | SOLID |
| 6 | DRY | General Design |
| 7 | KISS | General Design |
| 8 | YAGNI | General Design |
| 9 | Separation of Concerns | General Design |
| 10 | Principle of Least Astonishment | General Design |
| 11 | Law of Demeter | General Design |
| 12 | Composition over Inheritance | General Design |
| 13 | Encapsulation | General Design |
| 14 | Information Hiding | General Design |
| 15 | Program to an Interface | General Design |
| 16 | Fail Fast | General Design |
| 17 | Defensive Programming | General Design |
| 18 | Least Privilege | General Design |
| 19 | Explicit over Implicit | General Design |
| 20 | Convention over Configuration | General Design |
| 21 | Separation of Architecture and Implementation | Architecture |
| 22 | Dependency Rule | Architecture |
| 23 | Hexagonal Architecture | Architecture |
| 24 | Clean Architecture | Architecture |
| 25 | Onion Architecture | Architecture |
| 26 | Domain-Driven Design | Architecture |
| 27 | Bounded Context | Architecture |
| 28 | High Cohesion, Low Coupling | Architecture |
| 29 | Modularity | Architecture |
| 30 | Stable Dependencies | Architecture |
| 31 | Stable Abstractions | Architecture |
| 32 | Common Closure | Architecture |
| 33 | Common Reuse | Architecture |
| 34 | CAP Theorem | Distributed Systems |
| 35 | PACELC | Distributed Systems |
| 36 | Eventual Consistency | Distributed Systems |
| 37 | Strong Consistency | Distributed Systems |
| 38 | Idempotency | Distributed Systems |
| 39 | Bulkhead | Distributed Systems |
| 40 | Circuit Breaker | Distributed Systems |
| 41 | Timeout | Distributed Systems |
| 42 | Retry with Backoff | Distributed Systems |
| 43 | At-Least-Once Delivery | Distributed Systems |
| 44 | At-Most-Once Delivery | Distributed Systems |
| 45 | Exactly-Once Processing | Distributed Systems |
| 46 | Single Writer | Distributed Systems |
| 47 | Leader Election | Distributed Systems |
| 48 | Backpressure | Distributed Systems |
| 49 | Fault Isolation | Distributed Systems |
| 50 | Graceful Degradation | Distributed Systems |
| 51 | Event Sourcing | Distributed Systems |
| 52 | CQRS | Distributed Systems |
| 53 | Premature Optimization | Performance |
| 54 | Locality of Reference | Performance |
| 55 | Batch Processing | Performance |
| 56 | Lazy Evaluation | Performance |
| 57 | Resource Pooling | Performance |
| 58 | Bounded Resource | Performance |
| 59 | Zero-Copy | Performance |
| 60 | Data-Oriented Design | Performance |
| 61 | Concurrency over Parallelism | Performance |
| 62 | Zero Trust | Security |
| 63 | Defense in Depth | Security |
| 64 | Secure by Default | Security |
| 65 | Complete Mediation | Security |
| 66 | Fail Securely | Security |
| 67 | Economy of Mechanism | Security |
| 68 | Least Common Mechanism | Security |
| 69 | Separation of Privilege | Security |
| 70 | Test Pyramid | Testing |
| 71 | Arrange-Act-Assert | Testing |
| 72 | FIRST | Testing |
| 73 | Shift Left Testing | Testing |
| 74 | Test Isolation | Testing |
| 75 | Deterministic Testing | Testing |
| 76 | Continuous Integration | Testing |
| 77 | Regression Testing | Testing |
| 78 | Postel’s Law | API |
| 79 | Principle of Least Surprise | API |
| 80 | Backward Compatibility | API |
| 81 | Semantic Versioning | API |
| 82 | API Consistency | API |
| 83 | Statelessness | API |
| 84 | Self-Describing Messages | API |
| 85 | Boy Scout Rule | Development |
| 86 | Continuous Refactoring | Development |
| 87 | Small Batch | Development |
| 88 | Feedback Loop | Development |
| 89 | Automation First | Development |
| 90 | Single Source of Truth | Development |
| 91 | You Build It, You Run It | Development |
| 92 | Evolutionary Architecture | Development |
| 93 | Immutability | Functional |
| 94 | Pure Functions | Functional |
| 95 | Referential Transparency | Functional |
| 96 | Function Composition | Functional |
| 97 | Higher-Order Functions | Functional |
| 98 | Declarative Programming | Functional |
| 99 | Side Effect Isolation | Functional |
| 100 | Recursion over Mutable Iteration | Functional |
| 101 | Let It Crash | BEAM/OTP |
| 102 | Fault Isolation | BEAM/OTP |
| 103 | Share Nothing | BEAM/OTP |
| 104 | Supervision Tree | BEAM/OTP |
| 105 | Process-per-Responsibility | BEAM/OTP |
| 106 | Message Passing | BEAM/OTP |
| 107 | Location Transparency | BEAM/OTP |
| 108 | Preemptive Scheduling | BEAM/OTP |
| 109 | Behavior-Based Design | BEAM/OTP |
| 110 | Explicit State Ownership | BEAM/OTP |