Isshoukenmei

I’ve been away from blogging for quite a while, and I’ve suffered for it. Every day I let go by without engaging some new programming tool or skill is a day I grow weaker. So I’m making a commitment to write every day about something I’ve done to engage. Unfortunately, now it’s 2:35 AM and I really should sleep, so this one’s really short.

Steve Yegge wrote an excellent essay on prototype-based object mapping. It’s of interest to me because my company’s app has had two different half-assed (and differently half-assed) implementations of the prototype pattern, one of which we’ve just removed. We’re using it to model people (well, actually, contact information), but people don’t have just single-valued properties. They have names with multiple parts, and multiple phone numbers (how many people these days have not just a cell phone but a work cell and a personal cell?) and many other complex values, and I’ve been at a loss for a good way to store these. Steve’s essay has helped to convince me that we don’t need to discard the prototype pattern; we just need to get it right for this use.

In the next few days, I hope to blog here about getting it right.

Tags: ,

Wednesday, October 22nd, 2008 Write
blog comments powered by Disqus