Re:JavaScript from 2001 on India's largest private bank site
by segfaultbuserr on Tuesday March 16, 2021 @02:42AM
(#26473709)
Ah, 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_copypa...
Re:JavaScript from 2001 on India's largest private bank site
by Kuraj on Wednesday March 17, 2021 @06:47AM
(#26489165)
Except 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.
https://en.m.wikipedia.org/wiki/Don't_repeat_yourself