logoalt Hacker News

Xirdusyesterday at 8:12 AM1 replyview on HN

If code is predictable then it should be extracted into reusable functions/classes/modules and reused in accordance to DRY principle. I'm not a fan of this AI future where coding standards drop to the floor because humans won't be reading that code anymore.


Replies

InsideOutSantayesterday at 8:41 AM

Predictable and redundant are not the same thing. Also, DRY is not a hard rule. Applying DRY like it's a rule creates bad code.