0
Class templates for common/everyday objects
Does anyone know where I might find templates for commonly used objects? i.e. person, customer, etc. I am a team of ONE trying to develop some tools for a small business and figure I could save some energy writing my own classes for these common objects.
2 Réponses
+ 2
Unlikely to work.
Your business probably has very distinct rules. For example what a customer is depends on whether you are a pizza delivery or a shipyard. The pizza delivery needs information about the distance from the shop, and a phone number. The shipyard will manage all kinds of legal information, several people on both sides of the projects, plans.
In addition there are technical questions like what formats your data must serialize to. While it's a good idea not to hard code that into the model classes there must be something to pick up for whatever tech you use.
0
I don't disagree that there would be a large degree of specialization needed for any business. Really anything would have its own needs. I was just hoping there might be some very base level classes out there that can be implemented to either derive from or customize that might save some time and energy that could be used for the more business specific issues. Every person has a name, whether they are an employee, customer, a friend, an enemy....etc. Don't know unless you ask :)