News for hackers. Stuff that matters.
Re:Repeat yourself, do more than one thing, and rewrite ever... by qudat on Tuesday March 14, 2023 @02:14PM (#35155994)
> When I think of the most difficult to understand code I've come across it was probably written by someone who lives and breathes that interpretation of DRY.

Totally agree with this interpretation and why I wrote a recent article about it: https://bower.sh/anti-pattern

Re:Repeat yourself, do more than one thing, and rewrite ever... by strict9 on Tuesday March 14, 2023 @02:21PM (#35156116)
Great article, particularly agree with the tests part. Sanity check tests (function doesn't throw an exception in common path) are essential but following all possible paths and verifying all outputs is the road to diminishing returns and subpar output.