a good list of nouns that are commonly used in class names?
I'm tal开发者_如何学编程king about the secondary noun in a class name. Things like...
- Provider
- Factory
- Repository
- Controller
etc...
Is there a list that's well understood? Naming classes is important for future maintainability so I'm wondering if we can make it easier on ourselves by using names that are familiar and have common meaning.
My 2 cents. Use names that are closer to the business that you are developing application for (Read Ubiquitous language). For technical artifacts/services stay closer to the names used in design patterns (GoF, GRASP, Core Patterns).
精彩评论