Re:DRY Is a Trade-Off
by m463 on Saturday December 19, 2020 @11:04PM
(#25483764)
It took me a while to realize this truth, because you might learn it only by seeing your own code after forgetting it, or spending enough time in other people's code to understand how it works through and through.
One good example of this is paths in makefiles. It's so much easier if you just make all the paths relative to the root of the project, but people have to either over-abstract or under-abstract everything or both.
this goes for all sorts of things. Yes, you might build a directory from somewhere else or might, might might. But why not make it clear what you are doing, not unclear depending on what you might do?
One good example of this is paths in makefiles. It's so much easier if you just make all the paths relative to the root of the project, but people have to either over-abstract or under-abstract everything or both.
why not just: this goes for all sorts of things. Yes, you might build a directory from somewhere else or might, might might. But why not make it clear what you are doing, not unclear depending on what you might do?