I do exactly this in my own code, for one-sided bounds like &quot;if (0 &lt;= x)&quot; as well as for two-sided bounds like &quot;if (0 &lt;= i &amp;&amp; i &lt; length)&quot;.<p>But when collaborating with other programmers, I follow the majority style. There are lots of programmers who prefer to write comparisons with the varying item on the left and the constant item on the right, and &quot;varying item is on the left&quot; is just as valuable a hint to them as &quot;lower item is on the left (if expression is true)&quot; is to me.<p>So I wouldn&#x27;t elevate a personal stylistic preference to a rule: this will lead to pointless arguments. Writing code that&#x27;s clear to all the programmers on a project should be the goal.