• 1 Post
  • 55 Comments
Joined 1 year ago
cake
Cake day: June 20th, 2023

help-circle










  • the tests are now larger than the thing itself

    Is such a weird complaint. You should aim for your codebase to be as small, simple and readable as possible, while your tests should be a specification that guarantees behavior is consistent between refactors. When you add behavior, you add tests, when you remove a behavior, you delete tests.

    The size of either is independent of eachother. Small code bases that provide lots of features should be simple to read, but with a lot of tests.





  • The opinion is not “cherry-picked”, nor are the highlighted examples from the book unique or lacking context. It is a long, thoughtful and articulate criticism of multiple passages from “Clean Code”, and display a fundamental problem with the advice it gives. It’s not to pretend there’s no good advice in the book, but that the bad advice is really bad and very prominent. Also, it’s impossible to finish since the back half is Java-centric, a relic of the era it was written.

    Certainly not everything in his books is bad, and not everything that is bad today was bad when it was originally written. The biggest problem with the quality of his books, is that there’s a mix of good, bad, and out-dated advice in there, and for the beginners/Juniors reading his books, it’s genuinely hard to tell the difference. I think people would be better off looking for sources that avoid some of the mistakes that he made, amd speak to a more modern audience who are working with recent technologies and in work environments as they exist today.