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

I think, most of deduplication issues come from (1) premature optimization and (2) doing "technical" instead of "semantic" deduplication.

(1) When you pull things out too early, you might miss the big picture and constrain yourself in the long run.

(2) Sometimes things look similar, but aren't. By deduplicating without taking semantics into account, you can end up with a nice looking function at definition side, but at call side it looks too abstract.

Both of these issues give you something like "createHandle".



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

Search: