September 27, 2002
Data path
Right now my work includes some hairy string handling. We're pulling text and XML from a Web service, parsing it, serializing (and chopping up the resulting strings) and deserializing, storing on disk, pushing back out to web services... That includes data conversions (dates as milliseconds-of-Unix-epoch, ISO8601 text, locale text, and a few others; numbers, currencies, single- and multi-line text), XML entity encoding and decoding, URL encoding... you get the idea. I'm obsessive about doing this right, because if it's wrong it will break unpredictably. Not just with weird international stuff, but with regular users typing regular text. I'm a strong believer in the notion of a "clean data path". This may be influenced by having spent a lot of time in localization work, where it's really important to (a) know what character set you're dealing with, and (b) avoid unnecessary string operations: text strings are way too subtle and complex, and the cause of much pain. Any time you take apart a string, rearrange its contents, or reassemble a string, there's plenty of room for errors. The other influence here is electronic engineering, and the "signal path". What we're building, if it's right, will be a very close analog of another obsession of mine: the Quad 405. It rocks. Comments
Send three and fourpence, we're going to a dance. :-) Post a comment
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
vcard
archives: January 2005 December 2004 November 2004 October 2004 September 2004 August 2004 July 2004 June 2004 May 2004 April 2004 March 2004 February 2004 January 2004 December 2003 November 2003 October 2003 September 2003 August 2003 July 2003 June 2003 May 2003 April 2003 March 2003 February 2003 January 2003 December 2002 November 2002 October 2002 September 2002 August 2002 July 2002 June 2002 May 2002 April 2002 March 2002 February 2002 January 2002 December 2001 November 2001 October 2001 September 2001 August 2001 July 2001 June 2001 see also: {groove: [ ray, matt, paresh, mike, jeff, john ], other: [ /* more blogroll to follow */ ] } The views expressed on this weblog are mine alone and do not necessarily reflect the views of my employer. RSS 2.0 RSS 1.0 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||