News for hackers. Stuff that matters.
Re:It's probably time to stop recommending Clean Code (2020) by Cthulhu_ on Tuesday May 25, 2021 @11:33AM (#27278187)
This is what I'm doing even while creating new code. There's a few instances for example where the "execution" is down to a single argument - one of "activate", "reactivate" and "deactivate". But I've made them into three distinct, separate code paths so that I can work error and feedback messages into everything without adding complexity via arguments.

I mean yes it's more verbose, BUT it's also super clear and obvious what things do, and they do not leak the underlying implementation.

There are no comments on this comment yet.