News for hackers. Stuff that matters.
Re:“Clean Code, Horrible Performance” Discussion by Spivak on Sunday March 12, 2023 @12:21AM (#35116952)
This is pretty much my soapbox about DRY. Code is like clay, once it dries it’s not malleable anymore. Components that copy/paste but in doing so are self-contained can be fearlessly changed.

And above a certain size dry works against you because when making changes to component A that requires a slight modification of the behavior or component Q deep in the call stack is so painful because the blast radius is huge. Dry codebases end up slowly accumulating more and more effectively read-only code that makes implementing non-trivial changes require increasing amounts of cleverness until development slows.

I think the more general principle is more to do with code directionality and framework vs library but the motivation to franken-framework your code always seems to be dry.

Re:“Clean Code, Horrible Performance” Discussion by darepublic on Sunday March 12, 2023 @10:50AM (#35120661)
Having worked with very non dry code where each instance has slight variations but none of the commonalities are captured.. I have to say it can cause a lot of bugs and a lot of headache to maintain.