Conditional Statements And Comparison Order – Part 2
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 …
Read moreConditional Statements And Comparison Order – Part 2