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
The OG design patterns authors literally tell you that there's nothing to gain in forcing yourself to use every design pattern but then some Architect comes along and puts shit like this together
27
u/Seven_Irons Sep 26 '26
Cause somebody told me
the user provider
should use an adapter
to proxy the query
factory builder 🎵
https://youtu.be/p03oO_7sCaY
38
u/PolyglotTV Sep 26 '26
What's not to understand about tag_invoke, niebloids, and argument dependent lookup?
It's just customization endpoints. Geez.
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
10
u/cheezballs Sep 26 '26
But what if it's a factory that manages strategy patterns? Seems like a good name to me!
7
u/OldWar6125 Sep 27 '26
I am currently contemplating to implement an AbstractServiceFactoryFactory.
8
u/ForgedIronMadeIt Sep 27 '26
The OG design patterns authors literally tell you that there's nothing to gain in forcing yourself to use every design pattern but then some Architect comes along and puts shit like this together
3
u/Abject-Kitchen3198 Sep 27 '26
Please come to C# and implement repository pattern via Entity Framework which is an implementation of repository pattern.
2
u/ExtraTNT Sep 28 '26
A good java class name is let’s you scroll sideways on a ultrawide screen…
Even germans should fear it
2
u/Kadabrium Sep 29 '26
It's a SegmentationMemoryFault
1
u/_Sylph_ Sep 27 '26
I like my strategyManagerFactory, thank you.
1
u/StormyDLoA Sep 30 '26
Be me in my old Java job:
The factory must grow.
-6
u/Halvinz Sep 26 '26
People who don't understand design patterns. 🙃
273
u/[deleted] Sep 26 '26
[removed] — view removed comment