Software Engineering
This book is about making software understandable, testable, safe to change, and explainable to other people. It joins design principles, worked design patterns, testing, reviews, delivery, security, diagrams, and documentation into one sequence. The reference code is shown so you can question its assumptions, predict a failure, choose a useful check, and validate the result. The goal is judgment that remains useful when a tool generates the implementation.
44 sections
Start readingGlossaryContents
Section titled “Contents”Design and reasoning
Section titled “Design and reasoning”- 3.1 TDD, unit tests, and mutation testing
- 3.2 Property-based tests with Hypothesis, proptest, rapid, and ol_prop.h
- 3.3 Oracles, golden and differential tests, gradcheck as a test
- 3.4 Benchmarks and perf gates
- 3.5 Mutation testing in depth: equivalent mutants, semantic mutants from pitfalls, reading survivors
- 3.6 Contract tests: consumer-driven tests for gateway to engine
- 3.7 Resilience tests
- 3.8 Model evals as tests
- 3.9 Agent evals as tests
Build and maintain
Section titled “Build and maintain”Explain and document
Section titled “Explain and document”What you will be able to do
Section titled “What you will be able to do”- Explain a design through its constraints, tradeoffs, and change boundaries.
- Design tests that can disprove a claim and distinguish test coverage from validation.
- Review, release, migrate, and maintain software with explicit compatibility rules.
- Apply security and authorization principles to concrete interfaces and failure modes.
- Use diagrams, decision records, runbooks, and written explanations with clear engineering vocabulary to make reasoning reviewable.
Ways through this book
Section titled “Ways through this book”Read the parts in order for the full progression, or choose a route below and follow its prerequisites. Pause at the review questions before revealing worked answers.
- Designing and testing: The Pragmatic Programmer, then The Testing Mentality, then Coding and Design Patterns.
- Maintaining and delivering: Code Review and CI, then Releases and Deprecation, then Maintenance.
- Securing and explaining: Security, then Authorization and Access Control, then Diagramming with the C4 Model, then Documentation Writing.
- Designing for developers and agents: Developer Experience, chapter 14, studies how people review an agent’s work and learn an API by editing it.
- Learning the team’s vocabulary: Engineering Acronyms, chapter 13, explains everyday terms through decisions, goals, reliability targets, and vendor work. Start here when those terms are unfamiliar.
Before you start
Section titled “Before you start”You should be able to read and write small programs. Programming and Algorithms develops language and algorithmic reasoning. Systems Engineering, Data Engineering, and AI Engineering apply these practices to particular domains. Worked Projects Across the Library points to the case studies in those books.
How to read these books explains the shared first-principles, prediction, reasoning, testing, and validation method.