I thoroughly enjoyed this one — I think, in part, because I’ve read a fair few programming books already, so every time Seemann said “there’s a lot of good books on this topic, so I won’t rehash it, go read x or y” there were good odds I’d read one of his recommendations. It helped the whole thing feel better-paced as I was reading through it.
The core thesis of the book is right there in the title: you should be writing code that fits in your head. There’s a lot more detail about what exactly that means, but I also liked how he explained it: a little bit of “here’s some numbers you can use as heuristics, but the important part is that you understand the concept and get why I chose those numbers.” A lot less “here’s the rule,” a lot more “here’s why you should have a rule, and how to choose what exactly your rule should be.” Which makes a lot of sense — different codebases have different constraints and priorities, as do different languages. Just within my own everyday experience, the same amount of functionality often fits in half the number of lines of code when I go from Objective-C to Swift; using the same heuristics for both languages would either give ObjC frustratingly low limits, or Swift uselessly high ones.
Overall, quite a good read, and very approachable, as programming books go. Well worth a read.1
- This is a Bookshop affiliate link – if you buy it from here, I get a little bit of commission. It won’t hurt my feelings if you buy it elsewhere; honestly, I’d rather you check it out from your local library, or go to a local book store. I use Bookshop affiliate links instead of Amazon because they distribute a significant chunk of their profits to small, local book stores. ↩