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

There's a catchy acronym "WET" for "Write Everything Twice" (i.e. don't generalise until at least the third instance).


The problem I have with this approach is that I don't have a counter in my head. I can tell whether I saw it before, but cannot tell at how many different places. Therefore, I find that it's best to DRY at the second instance. Doing so also avoids neglecting to DRY some instances and potential DRYing of them in another way.




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

Search: