News for hackers. Stuff that matters.
Re:There’s No Such Thing as Clean Code by moonchrome on Friday January 28, 2022 @04:07AM (#30112333)
>If you follow them you will end up with code that's really nice to read and easier to maintain, and, most importantly, that you can confidently change.

I remember going over unclebob github a while back and this wasn't the impression I got. The parts I read seemed like obtuse code that added pointless abstraction for the sake of following some convention.

Re:There’s No Such Thing as Clean Code by Hermitian909 on Friday January 28, 2022 @04:28AM (#30112492)
This is my experience as well. It takes a long time to grok what the program does and how it does it because of all the layers of indirection, even when the program is fairly simple. While this style might make small changes easy if you understand the code, the inertia to larger changes because of the layers of indirection is immense.
Re:There’s No Such Thing as Clean Code by Rygu on Friday January 28, 2022 @08:23AM (#30114232)
Wow that's on-point, agree that in many past projects "inertia to larger changes" is exactly how I would describe so-called Clean Code.

It's that small changes like adding getters and setters give an easy-to-follow PR, a false sense of accomplishment for both the author and the reviewer, and ton of dopamine with that. While important changes, that actually deliver business value or repay technical debt, become increasingly difficult to do without replacing massive amounts of code and redoing the file structure.

Inertia is the biggest demotivator.

Re:There’s No Such Thing as Clean Code by jseban on Friday January 28, 2022 @08:42AM (#30114437)
Yeah, you can't eliminate essential complexity by narrowing your view, it will just obscure the big picture.