2 ms·
This DRY-sceptical viewpoint is a bit similar to database denormalization. Sure, in theory you want to store every bit of information only once. But in practic
by pavlov 2y ago
This DRY-sceptical viewpoint is a bit similar to database denormalization.
Sure, in theory you want to store every bit of information only once. But in practice it can make a real difference in smoothing out the access pattern if you don’t follow this normalization religiously.
The same applies to code. If you have to jump through hoops to avoid repeating yourself, it will also make it harder for someone else reading the code to understand what’s going on. A bit of “code denormalization” can help the reader get to the point more quickly.