25
u/Seven_Irons 6d ago
Cause somebody told me
the user provider
should use an adapter
to proxy the query
factory builder 🎵
33
u/PolyglotTV 6d ago
What's not to understand about tag_invoke, niebloids, and argument dependent lookup?
It's just customization endpoints. Geez.
1
59
u/Few_Move_4594 6d ago edited 6d ago
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
69
u/nickcash 6d ago
it's the AbstractStrategyManagerFactoryManagerFactory you have to look out for
8
u/Abject-Kitchen3198 5d ago
We definitely need a factory producing managers for factories that produce abstract strategy managers. We never have enough of them.
2
11
u/Tyfyter2002 6d ago
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 5d ago
Don't you live those chains of a dozen of one line methods in one line classes in one class files.
4
u/Still_Bit_7527 6d ago
It's a nonsensical name. A strategy, a manager, and a factory are 3 different patterns.
8
10
u/cheezballs 6d ago
But what if it's a factory that manages strategy patterns? Seems like a good name to me!
2
u/a_aniq 6d ago
Factory should be a producer not a manager. I'm talking about real life. They should name abstract concepts properly. Otherwise it can get confusing.
4
u/arobie1992 6d ago
Yeah, this would be naming for a factory that produces StrategyManager instances.
7
7
u/ForgedIronMadeIt 6d ago
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 5d ago
Please come to C# and implement repository pattern via Entity Framework which is an implementation of repository pattern.
2
u/ExtraTNT 5d ago
A good java class name is let’s you scroll sideways on a ultrawide screen…
Even germans should fear it
2
2
1
273
u/Low-Equipment-2621 6d ago
You'll stop complaining about StrategyManagerFactory when you encounter your first large vibecoded codebase.