From: Sandy S. <ss...@fo...> - 2003-09-10 18:00:44
|
There is no hard and fast rule for this. For background reading, I suggest reading any work on object oriented programming, particularly object-oriented design. What level of class differentiation is a key question of such design. My rule of thumb is: if you need the same information but it needs to be processed differently, then use the same object but designate a type for it. If, however, the information needed for an object depends on the type (more than a few fields, few being a judgment call), then I'd break it into different types of objects. If you ever need to display collections of the different types of objects, that's also a hint to make them one object and use the {classname}types functionality to differentiate. HTH, Sandy On Wednesday, September 10, 2003, at 01:46 PM, Adrian Columb wrote: > Hi Syntax team, > > I am still unsure about how to set up datatypes for our Syntax site and > would appreciate some assistance - > > Should I create generic datatypes like 'Person', 'Organisation', and > 'Place', and then categorise individual records under 'Person Types', > 'Organisation Types', and 'Place Types' picklists? > > Or should I create more specific datatypes such as 'DJ', 'Producer', > 'Remixer' (types of People), 'Promotion Company', 'Record Label', > 'Talent > Agency' (types of Organisations), and 'Nightclub Venue', 'Bar/Pub', > 'Outdoor > Venue' (types of Places)? > > Hope someone can help clarify this for me. > > Regards, > > Adrian > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Websyntax-core mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/websyntax-core > > -- Sandy Smith, Senior Programmer Forum One Communications <ss...@fo...> http://www.forumone.com/ tel. (703) 548-1855 x28 |