Hacker News new | past | comments | ask | show | jobs | submit login
Book Review: Clean Code (henrikwarne.com)
2 points by henrik_w on Jan 3, 2015 | hide | past | favorite | 1 comment



Martin comes from the Smalltalk tradition, where the preference is for many small methods that share state via instance variables. ("small", "Niladic", and "State to reduce the number of arguments"). I don't like it. My mind feel scattered among a dozen locations, and I agree with the reviewer in preferring a more functional form.

But there's no need to depend on my tastes. What little empirical evidence there is suggests that up to ~100 lines is just fine, in terms of measurable outcomes.

So when reading the book, remember some of it is teaching style. To use an architecture metaphor, it's teaching Cape Cod style, and you may prefer Dutch Colonial Revival.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: