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

I have started to gravitate toward ”write everything 100 times” or at least ten.

I’m thoroughly convinced DRY is the most ill-applied of all programming dogmas. At every place of work I have been I have run into bugs introduced by changes in one of the cases someone decided to ”dry up” several times. I have never seen bugs being caused by code not being DRY, and I cannot believe someone theoretically in the future maybe forgetting to include a bug fix in some case is worth the hassle.

In very few cases you are solving an actually generic problem. These are usually low hanging fruit already solved in a standard library or are available as an open source package in your eco system of choice. Your business logic is not general.



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

Search: