object modeling

Jimmie Houchin j.squeak at cyberhaus.us
Sat Sep 29 15:32:21 UTC 2007


Hello,

Just wanting some general wisdom on object modeling.

I am creating a person object for a website I am building.

Inside this person there is much data desired/required. Some of it very 
simple but I could easily see an explosion of instance variables.

My naive instinct is to create/model other objects even if very small to 
satisfy the needs.

example:

instead of instance variables:  dateOfBirth placeOfBirthCity 
placeOfBirthState yearOfBirthPublic ...

I would create a class/object for BirthInformation with those variables 
and in my person object have a birthInfo variable.

Is this a correct way to do this in Squeak or am I off base? I have lots 
of such types of data.

Any wisdom greatly appreciated.

Thanks.

Jimmie



More information about the Squeak-dev mailing list