All in the <head>

– Ponderings & code by Drew McLellan –

– Live from The Internets since 2003 –

About

About Drew McLellan

Photo of Drew McLellan

Drew McLellan has been hacking on the web since around 1996 following an unfortunate incident with a margarine tub. Since then he’s spread himself between both front- and back-end development projects, and now is Director and Senior Web Developer at edgeofmyseat.com in Maidenhead, UK (GEO: 51.5217, -0.7177). Prior to this, Drew was a Web Developer for Yahoo!, and before that primarily worked as a technical lead within design and branding agencies for clients such as Nissan, Goodyear Dunlop, Siemens/Bosch, Caburys, ICI Dulux and Virgin.net. Somewhere along the way, Drew managed to get himself embroiled with Dreamweaver and was made an early Macromedia Evangelist for that product. This lead to book deals, public appearances, fame, glory, and his eventual downfall.

Picking himself up again, Drew is now a strong advocate for best practises, and is currently Group Lead for The Web Standards Project. He has had articles published by A List Apart, Adobe, and O’Reilly Media’s XML.com, mostly due to mistaken identity. Drew is a proponent of the lower-case semantic web, and is currently expending energies in the direction of the microformats movement, with particular interests in making parsers an off-the-shelf commodity and developing simple UI conventions. He writes here at all in the head and, with a little help from his friends, at 24 ways.

Elegance

10 February 2004

When I studied mathematics at school, aged 17, I had a really great teacher. As great as he was, he failed in impart the finer points of mathematics into my somewhat squishy teenage brain. He did, however, teach me an important lesson about elegance.

For the greater part of our two-hour long lessons, he would direct the enactment of equations across a whiteboard. We were the script writers, and as the story enfolded before us it would be constantly revised and refined until it was the best it could be. Every line was evaluated and re-evaluated until there was simply nothing to revise. No steps to simplify, not an iota of redundancy existing. It wasn’t a burden to work this way. It was a joy. And the driving factor behind this was never efficiency, never trying to obtain some pointless goal or standard enforced upon us, it was one word. Elegance.

Although my mathematics stinks, the ethos I picked up in that class was far more valuable than the equations. To be able to write code against a yard stick of elegance is somewhat liberating. Elegant code has qualities of efficiency, standards adherence, ingenuity, and aesthetic beauty, but the validator is a much easier taskmaster.

That’s not to say everything I write is as elegant as it can be, just like not everything I write is as valid or semantically rich as it can be, but that’s the goal I aim for. I’m happy with that.

I’m rambling, but I trying not to talk about my damn Mac. Damn.

btw, it’s FireSquirrel and ThunderBadger, ok?

- Drew McLellan

Tags

Comments

  1. § Jesse: Not talk about the mac? Its the zealot coming out.. just relax, you will be sticking Apple stickers on things in short order ;)

    How about wireless mice? I just ordered the Kensingtion StudioMouse .. any favs? I wish my computer would respond to eye movement already… RSI is setting in.
  2. § Tim: In a word : yes. Elegance is important and often overlooked. So you get my vote there. On a slightly less serious note, very much enjoyed the ‘Mozilla Thunderpants’ reference. Besides enjoying AITH for the posting content, I think the pithy gems in the link titles are rather fine too.
  3. § Sverrir: Good names, to bad they didn’t contact you ;)
  4. § Alex H.: An indispensible extension
  5. § Marcus Tucker: I’m an elegant code freak too…

    IMHO, how the code works can be as important as what it does, especially when you take debugging, code reuse, performance/optimizing, and the simple fact that one day another developer will need to be able to understand it & modify it without having to follow reams of spaghetti code! ;)

Photographs

Work With Me

edgeofmyseat.com logo

At edgeofmyseat.com we build custom content management systems, ecommerce solutions and develop web apps.

Recent Links

@media 2008, Southbank Centre, London, 29-30 May 2008

Affiliation

  • Web Standards Project
  • Britpack
  • 24 ways