Monthly Archives: March 2010

SILT: Canvas/SVG, jQuery, LESS update

Cover art for my latest mix on boroboro.com. Instead of just photos I'll probably do more stuff like this, as it is fun and enticing.

Whew, a little bit longer than expected between updates, but the reasons for this are soon to be told. First, some things:

  • For my next work project, I’m having to visualize and lay out semi-complex graphs (DAGs, as far as I can discern). I started looking at a Flash-based kit for a similar project in 2008, but these days Canvas-based solutions like the Javascript InfoVis Toolkit are popping up.
    But, as I soon learned, Canvas isn’t really the right tool for this job. the right way to go seems to be SVG, despite iffy browser support. This fantastic article by the Opera browser team has me thinking I’ll use Graphviz+dot+SVG+jQuery. I’m excited and I’ll probably write about it again the future.
  • Speaking of jQuery, I’m learning me all the JavaScript tricks by looking directly at the jQuery source. Nothing like a lean, mean piece of code to teach oneself The Right Way. Reminder: don’t forget to update to jQuery 1.4, which has been a dream so far.
  • LESS is still treating me right; did some rapid development recently, and it worked gloriously. Some observations:
    • One issue I had with LESS recently was getting the mixin syntax working with IE’s filter syntax. The equal signs throw the compiler off. I was doing terrible IE things because I was doing cross-browser pure CSS gradients.
    • I use the LESS –watch option to achieve incron-like effects when dealing with small CSS projects. Unfortunately the –watch option means having to start lessc before doing work (not a big deal) and having to monitor it for when you have errors in your file (it pauses and waits for a return key, kind of a big deal).
    • I just read about less.js, a javascript implentation done by the LESS dudes for on-the-fly, in-browser LESS action, and plenty of new features. Here’s the github page. It’s due the end of this month, but I’m in no hurry.

And if you’ve been missing me, listen to more mixes. Two up since the last Superdrivel edit, a downtempo one and an uptempo one.

Advertisements