3 ms·
Don't use DRY but WET: Write Everything Twice. :o) In practice: The second time you implement something, start out by copy-pasting the first implementation. On
by janaagaard 2y ago
Don't use DRY but WET: Write Everything Twice. :o)
In practice: The second time you implement something, start out by copy-pasting the first implementation. Once you're done with the second version, figure out if and how to abstract the two implementations.
- Sammi 2y agoBasically never ever abstract something if you only have two copies. Copy/paste and move on and be productive. It's usually only if you have a third or fourth copy that you start to see if there is any inherent abstraction to be gleamed.