2 ms·
Agreed. Sometimes even three times isn’t enough. You’re being paid obscene amounts to make these judgement calls anyway. If all your API does is return two piz
by ramraj07 4y ago
Agreed. Sometimes even three times isn’t enough. You’re being paid obscene amounts to make these judgement calls anyway.
If all your API does is return two pizza description jsons then keep it that way. If your client is a pizza delivery company and your api is supposed to allow definition and customization of pizza recipes, then you better take your ass to DRY town. Don’t blame the principle when you can’t understand what it is that you’re abstracting.
I have time and again gained enormous benefit by pursuing DRY principle to its absolute core. 20x speed and code complexity optimizations, making entire teams obsolete, etc. The most important point is to make sure that your abstractions absolutely match the fundamental principles of the concept you’re trying to represent. No matter how verbose you think it’s getting it’s totally worth it if this is your bread and butter.