Hacker News new | ask | show | jobs
by wyufro 580 days ago
I think "oh this looks like it could be made generic" is the wrong time to convert to generics.

You should convert when you reach the point "I wish I had that code but with this other type". Even then, sometimes interfaces are the right answer, rather than generics.

1 comments

I mostly agree, hence the

> end up copy pasting code instead

bit of my original comment