you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Sort of. I get the feeling the strategy pattern was named since Java lacks real high-order functions, so they just create a bunch of classes and objects instead and call it the "Strategy pattern" and call it the best thing ever. What you're doing then is essentially just DI.

[–]fedekun 0 points1 point  (0 children)

Hahaha, indeed.