in reply to Moose Design Thoughts (Traits)
You missed the most important part: the way this class is going to be used.
In general good API design should include many possible use cases. Writing a class is just writing part of an API.
As you've shown it, your class is just a glorified hash, with no reason not to use a hash in the first place. Adding methods that do some actual work might change the situation. But again that depends on how you want to use your class.
Asking your questions without more background information is like asking "is the Ford Fiesta a good car for me?", but not telling what you want to use it for (offroad? crossing a dessert? taking your 6 family members to vacations? Or just some shopping half a mile away?)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Moose Design Thoughts (Traits)
by Cagao (Monk) on Dec 22, 2010 at 14:08 UTC | |
by moritz (Cardinal) on Dec 22, 2010 at 17:33 UTC |