© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•15mo ago•
9 replies
FraznoFire

Naming factories “class”factory always a good idea?

Hi everyone,

I’m just learning about design patterns, and all code examples I’ve seen highlight their implementation with obvious examples such as “DogFactory” etc.

I’m wondering if this is usually done in practice, or if the class name should instead represent its purpose in the code, for example:

A factory class that resolves the manufacturer of an item from its properties, and returns that manufacturer’s specific implementation of IVendorThing, would I name that factory “VendorThingFactory” or something like “VendorThingResolver”?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,828Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Class Naming Conventions
C#CC# / help
3y ago
✅ is it a good disposable class?
C#CC# / help
3y ago
Generic static factories
C#CC# / help
12mo ago
✅ Is it a good idea to store CSS class as a property in my C# model?
C#CC# / help
2y ago