// Comparison
How Cybersecurity Really Works vs The Pragmatic Programmer: Which Should You Read?
Two cybersecurity books on Foundations, compared honestly: who each is for, what each does best, and which to read first.
Sam Grubb's gentle, exercise-driven introduction for non-specialists who need a working mental model of attacker behaviour and basic defence.
Thomas and Hunt's career-defining set of practical heuristics for writing software professionally — orthogonality, broken-windows, DRY, tracer bullets, and the underlying argument that craftsmanship is a posture, not a process.
Read this if
Skip this if
Key takeaways
- The chapter on threat modeling for individuals (not companies) is the one most teachers steal from: how to think about your own digital risk.
- The hands-on labs at the end of each chapter make the book usable for actual classroom teaching, not just self-study.
- Strikes the rare balance between respects-the-reader and explains-what-an-IP-address-is. Most beginner books fail one or the other.
- Most security defects are software-quality defects; the book teaches the foundations that make secure code possible to write.
- The list of heuristics is shorter than the book — 100 tips on a card — but the prose is what makes them stick.
- The 20th-anniversary updates (concurrency, declarative thinking, observability) are the parts that justify the new edition for someone who read the original.
How they compare
We rate The Pragmatic Programmer higher (5/5 against 4/5 for How Cybersecurity Really Works). For most readers, that means The Pragmatic Programmer is the primary pick and How Cybersecurity Really Works is a useful follow-up.
Both books target beginner-level readers, so the choice is about topic, not difficulty.
How Cybersecurity Really Works and The Pragmatic Programmer both cover Foundations, so reading them in sequence reinforces the same material from different angles.
Keep reading
How Cybersecurity Really Works
→ Alternatives to How Cybersecurity Really Works→ What to read after How Cybersecurity Really WorksThe Pragmatic Programmer
→ Alternatives to The Pragmatic Programmer→ What to read after The Pragmatic Programmer