News for hackers. Stuff that matters.
Re:It's probably time to stop recommending Clean Code (2020) by pjc50 on Tuesday May 25, 2021 @11:15AM (#27277913)
> it is _much_ easier to refactor copy pasta code

So long as it remains identical. Refactoring almost identical code requires lots of extremely detailed staring to determine whether or not two things are subtly different. Especially if you don't have good test coverage to start with.

Re:It's probably time to stop recommending Clean Code (2020) by macNchz on Tuesday May 25, 2021 @12:13PM (#27278686)
I personally love playing the game called "reconcile these very-important-but-utterly-without-tests sequences of gnarly regexes that were years ago copy-pasted in seven places and since then refactored, but only in three of the seven places, and in separate efforts each time".
Re:It's probably time to stop recommending Clean Code (2020) by tuatoru on Tuesday May 25, 2021 @11:52AM (#27278419)
> requires lots of extremely detailed staring

Yeah, nah. There are diffing tools.

Re:It's probably time to stop recommending Clean Code (2020) by cerved on Tuesday May 25, 2021 @12:24PM (#27278836)
problem is you only diff if things look different