2 ms·
DRY comes from a time where you had people not using abstractions at all. I have seen code from the 80s where code for printing forms were one function each wri
by legulere 4y ago
DRY comes from a time where you had people not using abstractions at all. I have seen code from the 80s where code for printing forms were one function each writing directly what gets sent to the printer for each form with no abstraction at all. DRY was meant for people that wrote that kind of code. If all you have ever come into contact with is normal modern code, than DRY goes overboard: you start to abstract too much and make the code harder to read and maintain.
The real art is maintaining the balance between abstraction and pragmatic simple code.