DEV Community

Discussion on: It’s all about the abstractions baby

Collapse
taowen profile image
Tao Wen

To me abstraction is just a means to the end. Code reuse is the goal. To generalize, we have to specialize. The problem is, does the code worth reusing at the first place? If yes, how to reuse it, is not a big problem. Interface/template/multi dispatching, we can always make it work. But I found many times, we are not reusing it on purpose, the cost and saving is not well calculated.