October 8th, 2009
For the past 6 months (give or take) I've been rebuilding various pieces of my company's web site to update legacy HTML code (designed for IE4-5 and Netscape 4-6) and legacy JavaScript (aimed at those same browsers).
Every time I take a page and whittle 50+ lines of old school JavaScript down to 3-10 lines of jQuery-based JavaScript, I can't help but be be amazed.
I've been looking through the old school code and remember when I wote code just like it (testing to see if the browser could support document.all document.getElementById, or document.layers... sometimes checking to see if the DOM even existed -- eek!). It was all so time consuming, messy, and tedious (although I suppose it made for some level of job security).
Thanks to jQuery it's sooooo much simpler now. And even though I work for a company that wants to support all modern browsers as well as the incredibly antiquated IE6 (which still causes me CSS nightmares), at least I no longer have to fight and fuss with all the old school javascript. Little by little, I'm cleaning house. Hopefully, I'll ditch most of the old school code on our external domains by year's end. (our intranet is a different beast, and one I don't want to tackle, since it has had hundreds of authors over the years.)
Every time I take a page and whittle 50+ lines of old school JavaScript down to 3-10 lines of jQuery-based JavaScript, I can't help but be be amazed.
I've been looking through the old school code and remember when I wote code just like it (testing to see if the browser could support document.all document.getElementById, or document.layers... sometimes checking to see if the DOM even existed -- eek!). It was all so time consuming, messy, and tedious (although I suppose it made for some level of job security).
Thanks to jQuery it's sooooo much simpler now. And even though I work for a company that wants to support all modern browsers as well as the incredibly antiquated IE6 (which still causes me CSS nightmares), at least I no longer have to fight and fuss with all the old school javascript. Little by little, I'm cleaning house. Hopefully, I'll ditch most of the old school code on our external domains by year's end. (our intranet is a different beast, and one I don't want to tackle, since it has had hundreds of authors over the years.)
- my location is:San Antonio
- my mood is:
sleepy