Wednesday, October 11, 2006

Strings suck

All I have to say is, Amen, brother!" I see too many objects that are only comprised of primitive language types. Why not take it one step up further and make domain-specific primitives? A "Name" object might seem silly at first, but you soon find you can add validation logic and other behavior. Put down your procedures and data structures and grab an object. You'll be glad you did.

1 comment:

Allison Jones said...

how do you feel about having it (name, say)provisionally as a string, but then transmuting it into a class the moment you need to?