Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Part of the motivation behind DRY was to avoid the mess of repeating yourself within a task by updating 17 levels of classes and factories to add a field somewhere. This is mainly solved by using a sane language and not having useless intermediary code.

But you are right: applying DRY between tasks requires good judgement, and sometimes it's best to just copy some similar code around than to prematurely invent an abstraction.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: