Make a simple chart using ChartJS

I found a straightforward easy to use chart tool in ChartJS. It uses HTML canvas and have decent fallback for IE8 and lower.

Optimization tips for using && (AND) and || (OR) in evaluations

Reading an old blogpost from grauw.nl made me learn some small new, but very important, details when it comes to evaluating conditions or retrieving propery values in JavaScript or ActionScript.

Linear navigation in Adobe Flash

 

Getting Twitter Bootstrap up and running

Making websites can be a daunting task. Ideally, it is all designed and layouted in software like Photoshop or Fireworks. Then it is sliced up and transported to Dreamweaver or similar HTML editing software for implemation.

Recent comments

Optimization tips for using && (AND) and || (OR) in evaluations

Reading an old blogpost from grauw.nl made me learn some small new, but very important, details when it comes to evaluating conditions or retrieving propery values in JavaScript or ActionScript. This optimization struck me so hard, that I am confident that I will never forget it again - when you have experimented with it, you probably won't either :-)

The issue is that the operators && and || not evaluate both side, if the left side is false.

Take for example this code:

 

Pages