Re:Goodbye, Clean Code (2020)
by discreteevent on Tuesday November 16, 2021 @02:10PM
(#29245040)
I'm from the older generation. I don't agree with a lot of what's in clean code. Particularly the focus on micro unit tests. Nor do I like the moralising tone of the books author in general. Also flexibility comes at a cost. A codebase where everything is easy to change becomes complex in aggregate, such that nothing is easy to change.
[ Parent
| on HN ]
Don't confuse Robert Martin's book "Clean Code" with the broader concept of clean code.
"A codebase where everything is easy to change becomes complex in aggregate"
What you're describing there is a code smell that is commonly referred to as "Speculative generality" and was written about in a book by Martin Fowler called "Refactoring, improving the design of existing code." Which, incidentally is a great companion book to Robert Martin's Clean Code.
Speaking of trendy medium articles, here is one that I wrote on the concept of clean code that might help better understand what I mean when I use the term:
https://medium.com/@gspencley/what-does-clean-code-mean-anyw...