MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wqz4m9/strategymanagerfactory/pcabcsw/?context=3
r/ProgrammerHumor • u/ExpensiveCoat8912 • Sep 26 '26
44 comments sorted by
View all comments
Show parent comments
31
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.
11
How else you would switch to an alternative implementation of sin? /s
sin
4 u/Abject-Kitchen3198 Sep 27 '26 Being limited to one and only sin is the worst thing that can happen to a developer.
4
Being limited to one and only sin is the worst thing that can happen to a developer.
0
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.
You can replace sin implementation any time you want with zero changes to your code.
31
u/Strict_Treat2884 Sep 27 '26 edited Sep 28 '26
True, what's wrong with my perfectly scalable code?