3 ms·
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
by wyufro 2y 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.
- deleted 2y ago[deleted]
- cherryteastain 2y agoI mostly agree, hence the > end up copy pasting code instead bit of my original comment