News for hackers. Stuff that matters.
Re:It's probably time to stop recommending Clean Code (2020) by virtue3 on Tuesday May 25, 2021 @07:02PM (#27283885)
I've seen threads on this before but the "goto" (couldn' t stop myself) reaching of object oriented-ness to "solve" everything is really frustrating.

I've found the single greatest contributor to more readable and maintainable code is to limit state as much as possible.

Which was really hard for me to learn because it can be somewhat less efficient, and my game programmer upbringing hates it.

Re:It's probably time to stop recommending Clean Code (2020) by JamesBarney on Tuesday May 25, 2021 @10:54PM (#27285643)
Sometimes eliminating state can also mean increasing complexity and lines of code tremendously.
Re:It's probably time to stop recommending Clean Code (2020) by TeMPOraL on Thursday May 27, 2021 @07:12AM (#27301551)
A lot depends on what your language and its ecosystem can support. For instance, the kind of monadic stuff people do with Haskell and Scala can compress programs tremendously, but then I've worked in a codebase that tried the same things in C++ - and there, the line count expands, because the language just can't express some of the necessary concepts in a concise way.