jason.johnson.081 at gmail.com
Sat Sep 29 15:40:18 UTC 2007
Personally, I would just throw the inst vars in there and start doing
stuff. As you continue building you will probably notice certain
synergies and places where you realize some of those instVars actually
look more like a separate class.
For me, building in Smalltalk is about very quickly making stuff the
first way I think of and refactoring as I go until I have something
that I like, and does everything it needs to.
On 9/29/07, Jimmie Houchin <j.squeak at cyberhaus.us> wrote:
> 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.
> 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.
More information about the Squeak-dev