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

A somewhat cheesy aphorism for this is "Dry but not so dry it cracks".

Personally I like the rule of thumb that you let 3 instances of something occur before you try to refactor it into a single design.

Without examples of real usage it's far too easy to come up with bad abstractions. I'd rather have code that's easy to delete later.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: