Tyrr
Naming factories “class”factory always a good idea?
"...but I thought it might give more of a clue..."
personally when i have such thought about naming anything in my code, i just do it. Conventions are to help making code understandable, but they dont cover every case, sometimes can even make it harder to figure out what it does
10 replies
Naming factories “class”factory always a good idea?
i'd probably separate these two into VendorThingResolver using VendorThingFactory, or make VendorThingResolver implement IFactory<VendorThing> but it's not such a big deal anyways i guess, as long as class name gives a clear hint of what it does for other devs
10 replies