3 ms·
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 o
by discreteevent 5y ago
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.
- gspencley 5y agoDon'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-anyway-472b559ee620 https://medium.com/@gspencley/what-does-clean-code-mean-anyw...