3 ms·
I see it as a violation of WET principle[1]. I have a long history of violating it myself, and with scripts it is basically the same: do not write script for an
by ordu 5y ago
I see it as a violation of WET principle[1]. I have a long history of violating it myself, and with scripts it is basically the same: do not write script for any task, before you solved this task at least once. Moreover writing a program to do something oftentimes longer that just doing it. But I constantly fall into this trap and writing programs to run them once when it would be faster to do just the task at hand without any complications.
[1] https://dev.to/wuz/stop-trying-to-be-so-dry-instead-write-everything-twice-wet-5g33 https://dev.to/wuz/stop-trying-to-be-so-dry-instead-write-ev...