Shelves / Software Architecture
Software Engineering · Volume 13
Software Architecture
Part XIII of the Software Engineering roadmap, written out as a textbook that starts from zero. The opening chapter assumes you write working code but haven't thought much about its structure, and changes one checkout function written two ways to show what design is for. From there: clean code, SOLID, design patterns, domain-driven design, architecture styles, modular monoliths, microservices, architecture decision making and low-level design problems. Every chapter opens with a plain-language Start here section and a six-level How deep to go ladder, and ends with a lab of real, measured experiments (hotspots in the requests library from complexity and git history, a refactoring checked by differential tests, contract tests catching Liskov violations, decorator stacks and their cost, stateful property tests breaking an anemic model, ports and adapters with an import-linter fitness function, enforced module boundaries, fan-out tail latency across ten services, a sensitivity-checked decision matrix, and an LRU cache under the race detector) and a revision sheet with a quiz. A final chapter of seven projects improves and protects one codebase.
Two ways to read this book
Every chapter has the same shape: Start here (first principles, plain language, small verified examples) → How deep to go (what each mastery level needs) → full-depth sections → Lab (experiments with real measured output) → Revision sheet (key ideas, numbers to remember, pitfalls, glossary, quiz).
How to use this book
- Read one topic at a time. Each topic heading has a Done tick. Tick it only when you can explain the idea aloud without looking, which is roughly mastery level L2–L3 below.
- Run the code. Every comparison block has tabs for each language; type the example out in at least two of them.
- Take the chapter quiz at the end. A score of 80% or more counts as passed. Wrong answers show the explanation, so re-read that topic and untick it if needed.
- Revisit after a delay. The roadmap's loop applies: recall, explain, implement without notes, break it, measure it.
Mastery levels
Languages used throughout
Status as of October 2026: Java 25 is the current LTS (records, sealed types, pattern matching, ScopedValue); C++26 was technically finalised in March 2026 (static reflection, contracts, std::execution); Rust uses the 2024 edition; Spring Modulith 2.x is current for modular Spring monoliths. Patterns are language-neutral ideas, so read every tab rather than just the language you use at work: the contrast between paradigms is the point.
Contents
- SC·00Start Here: Code That Is Cheap to ChangeFor readers who write working code but haven't thought much about its structure: what software design and architecture are for, one checkout function…5 min
- SC·135Clean CodeWriting code that is cheap to read and change: why maintainability is economics, naming as design, cohesion and coupling (with the types of each)…29 min
- SC·136SOLIDThe five SOLID principles from first principles, each with its original intent, a violation and refactoring in several languages, how it looks in…26 min
- SC·137Design PatternsReusable solutions to recurring design problems, each explained by intent, forces, structure, code across paradigms and when not to use it…43 min
- SC·138Domain-Driven DesignDesigning software around the business domain: why DDD exists, strategic design (domain, core, supporting and generic subdomains, bounded contexts…28 min
- SC·139Architecture StylesThe major ways to structure software systems and when each fits: what an architecture style is and the quality attributes it trades, layered…20 min
- SC·140Modular MonolithOne deployable, many well-bounded modules: why a modular monolith is often the most effective architecture, finding module boundaries from bounded…21 min
- SC·141MicroservicesMicroservices as an architecture and an organisational model: what they are and the problems they solve, finding service boundaries (business…19 min
- SC·142Architecture Decision MakingHow architects decide and record decisions: what makes a decision architectural, the role of the architect, architecture decision records (formats…23 min
- SC·LLDLow-Level Design Case StudiesApplying the whole volume to machine-coding and low-level design problems: a repeatable approach (clarify, model entities and behaviours, define…39 min
- SC·143Software Architecture ProjectsSeven build-it-yourself projects that take the tiffin centre's codebase from working to well-designed and keep it that way: a code-health baseline…6 min