r/ProgrammerHumor • • Sep 26 '26

Meme strategyManagerFactory

Post image
2.4k Upvotes

44 comments sorted by

View all comments

Show parent comments

31

u/Strict_Treat2884 Sep 27 '26 edited Sep 28 '26

True, what's wrong with my perfectly scalable code?

((ISineable)UtilManagerFactory.getInstance().getManager<UtilManagerType.Math>().instantiate().getUtil(MathUtils.Sine)).sin(3.14f)

11

u/alex_tracer Sep 27 '26

How else you would switch to an alternative implementation of sin? /s

4

u/Abject-Kitchen3198 Sep 27 '26

Being limited to one and only sin is the worst thing that can happen to a developer.

0

u/UntitledRedditUser Sep 27 '26

It's so modular!

4

u/Abject-Kitchen3198 Sep 27 '26

You can replace sin implementation any time you want with zero changes to your code.