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

Avoid special cases. Thats a good idea, unfortunately it's not quite possible if you have to adjust code to changing requirements over a long time...


It should be rephrased as: design so that many cases can be handled, thus reducing number of special cases.

They cannot be avoided, but their impact can be reduced. If you end up drowning in them, it means the design is broken and needs to be rethought.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: