What strings are true? The answer may surprise you.
Archive for June, 2009
Fancy Or
Jun 7
The lowly || operator in the hands of AS3 and JavaScript is not so lowly. Here’s a quick time saver.
Triple Equals
Jun 7
Anyone coming from a language like C that doesn’t have a === operator seems shocked when they encounter such a ludicrous operator. For them, and for anyone being a bit careless, simple usage of === can really bite you.
Missing Array Elements
Jun 7
As a sane programmer, you probably wouldn’t ever think to do this. But It’s perfectly legal to do so.
ActionScript 3 Loops
Jun 6
The for-each and for-in loops in JavaScript and AS3 are very convenient ways to avoid the repetition of C-style for loops. Let’s take a look at them all, what they’re good for and bad for, and see if we can find any gotchas.