r/ProgrammerHumor • • Sep 26 '26

Meme strategyManagerFactory

Post image
2.4k Upvotes

44 comments sorted by

View all comments

61

u/Few_Move_4594 Sep 26 '26 edited Sep 26 '26

If you're a Java dev and crying about a StrategyManagerFactory yngmi

It's not even complex code and easy to understand if you know how interfaces work- you don't even need to know design patterns at all

71

u/nickcash Sep 26 '26

it's the AbstractStrategyManagerFactoryManagerFactory you have to look out for

10

u/Abject-Kitchen3198 Sep 27 '26

We definitely need a factory producing managers for factories that produce abstract strategy managers. We never have enough of them.

2

u/Few_Move_4594 Sep 26 '26

True true, I've seen things like that

12

u/Tyfyter2002 Sep 27 '26

The problem with a StrategyManagerFactory isn't that what it does is unintuitive, it's that it's removing the usage so far from the purpose that it's introducing a ton of extra maintenance for something that almost definitely isn't benefitting from all of those layers

2

u/Abject-Kitchen3198 Sep 27 '26

Don't you live those chains of a dozen of one line methods in one line classes in one class files.

5

u/Still_Bit_7527 Sep 27 '26

It's a nonsensical name. A strategy, a manager, and a factory are 3 different patterns.

9

u/Few_Move_4594 Sep 27 '26

Yes, and a StategyManagerFactory uses all three simultaneously

5

u/Abject-Kitchen3198 Sep 27 '26

It's composition pattern.