4 ms·
WET code? https://en.m.wikipedia.org/wiki/Don't_repeat_yourself https://en.m.wikipedia.org/wiki/Don't_repeat_yourself
by systoll 6y ago
WET code?
https://en.m.wikipedia.org/wiki/Don't_repeat_yourself https://en.m.wikipedia.org/wiki/Don't_repeat_yourself
- segfaultbuserr 6y agoAh, thanks. I didn't know DRY has an antonym - WET. I followed the link and saw that this behavior is also called copy-and-paste programming. I think I'll use this one from now on. Wikipedia has a funny animation for that. https://en.wikipedia.org/wiki/File:Forgotten_edits_in_copypaste_programming.gif https://en.wikipedia.org/wiki/File:Forgotten_edits_in_copypa...
- Kuraj 6y agoExcept DRY is not about not repeating code at all. It's about having a single source of truth. I'm not saying this is the case here, but it's a problematic misconception because it encourages pre-emptive optimization of repetitions that can be purely coincidental and not rooted in business requirements.
- bspammer 6y agoWrite Every Time fits. I like this.