I do (er, don't) do that, mostly, just so the arguments are size-increasing<p><pre><code> if ((0 <= x) && (x < 10)) { ...</code></pre>
I do that.<p>I visualise the variables as being on the number line. If they’re the way round that they appear in the code, then the condition is true.<p>Unfortunately my code reviewers tend not to like it when I write constant < variable.
I like to be fair to all the comparators and use the greater than, equal to or less than operator:<p><pre><code> <=>
</code></pre>
Admittedly it's only good for checking that a value isn't NaN.
I always use <, <=, for consistency and to make the ordering clear<p>in mathematical notation,
0 <= i < n is sometimes used for summations where i ranges from 0 through n-1
the inspiration is the number line, small numbers at the left, larger numbers at the right, because we write left to right, and the sequence is 1 2 3 4..<p>which is why you always want the larger ones on the right.