| ▲ | colechristensen 5 hours ago | ||||||||||||||||||||||||||||||||||||||||
Ehh, people who are really excited about DRY write unreadable convoluted code, where the bulk of the code is abstractions invented to avoid rewriting a small amount of code and unless you're very familiar with the codebase reasoning about what it actually does is a mystery because related pieces of functionality are very far away from each other. | |||||||||||||||||||||||||||||||||||||||||
| ▲ | trey-jones 5 hours ago | parent [-] | ||||||||||||||||||||||||||||||||||||||||
DRY is not to avoid writing code (of any amount). DRY is a maintainability feature. "Unless you're very familiar with the code" you probably won't remember that you have to make this change in two places instead of one. DRY makes life easier for future you, and anyone else unfortunate to encounter (y)our mess. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||