News for hackers. Stuff that matters.
Re:That coworker who never stops refactoring by lkschubert8 on Tuesday August 11, 2020 @06:34PM (#24126791)
Yeah I think DRY has been bastardized to mean dont repeat code when it actually means encode business logic in one place.
Re:That coworker who never stops refactoring by mcv on Tuesday August 11, 2020 @06:45PM (#24126878)
I 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.