Friday, October 19, 2007

Reusable Code Snippets

I've decided to start working on some reusable code snippets and blog about their development... at least now I have something to blog about, right?

Anyway, the first project I am working on is some reusable AJAX code. This stems from a project I've been doing at work, but I intend to improve it off-the-clock a little.

The goal is to be light-weight, simple, and clean, and provide the following functionality:
  • Both a serial queue mode, and a more traditional asynchronous mode.
  • Automatically build complete validate-able XML documents to transmit in both directions, rather than the fragments or sloppy content frequently transmitted.
  • Use, whenever possible, use open standards compliant JavaScript code only. When not possible, the Firefox browser will be given preference.
Unfortunately, I have already discovered that Firebug, a very nifty debugging extension for Firefox, breaks the XMLHttpRequest status change events for everything but 1 (open) and 4 (loaded), making it impossible to debug (or even run) queue based code while using Firebug. Fortunately, I'm not left without any help, as the Web Developer and DOM Inspector extensions still give a considerable amount of information to aid debugging.

When I publish it, my code will be available from my website http://www.coder7.com, and will remain available indefinitely (so long as I control the domain).

First Post

The geek in me decided it was finally time to start a blog. I have absolutely no clue what I might start posting on here, and only time will tell.