Archive for March 4th, 2008


4Mar2008

In the original posting, Conditional Statements And Comparison Order, I brought up a coding style used by some software engineers that struck me as odd. The practice of placing a constant value first in a conditional comparison. For example:

if("Some String" == aVariable) {
// Do some stuff
}

Listing 1
I never liked the way this reads [...]