3 ms·
Yeah I think DRY has been bastardized to mean dont repeat code when it actually means encode business logic in one place.
by lkschubert8 6y ago
Yeah I think DRY has been bastardized to mean dont repeat code when it actually means encode business logic in one place.
- mcv 6y agoI mind duplicated code a lot less than duplicated data. If two things have to match, but they're using two different configurations, then there's going to be a mismatch some day. I'd rather create the second config out of the first one. If front- and backend need to know something, have the front-end get its config from the backend, instead of hard-coding it in two places.