Posts Tagged conditionals

Conditionals Performance

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.

Read the rest of this entry »

Tags: , , , , , ,

6 Comments

Conditional Compilation

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.

Read the rest of this entry »

Tags: , ,

3 Comments

Pointless Code

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:

Read the rest of this entry »

Tags: , ,

7 Comments

Spot The Problem

You could probably do this in most languages and it might be hard to spot. See for yourself.

Read the rest of this entry »

Tags: ,

2 Comments

The Truth of Strings

What strings are true? The answer may surprise you.

Read the rest of this entry »

Tags: ,

No Comments

Fancy Or

The lowly || operator in the hands of AS3 and JavaScript is not so lowly. Here’s a quick time saver.

Read the rest of this entry »

Tags: ,

4 Comments