Now that the Flash Player 10.1 testing is through I can return to a comment asking about the performance difference between if-else chains and the ternary (? :) operator. Further, I’ll discuss switch statements to see if there is any difference in performance for these commonly-used methods of flow control.
Posts Tagged conditionals
Conditionals Performance
Aug 16
Conditional Compilation
Nov 30
MXMLC’s -define feature allows you to do two things: compile-time constants (as covered previously) and conditional compilation. Both are very useful, so today I’m covering conditional compilation.
Pointless Code
Jul 31
We’ve all seen it, perhaps even in our own code. It’s something I think we do because we’re not really sure what would happen if we didn’t do it. Here are some little tidbits of pointless code I’ve been seeing recently:
Spot The Problem
Jun 12
You could probably do this in most languages and it might be hard to spot. See for yourself.
The Truth of Strings
Jun 7
What strings are true? The answer may surprise you.
Fancy Or
Jun 7
The lowly || operator in the hands of AS3 and JavaScript is not so lowly. Here’s a quick time saver.