I agree that this is trivial. But I also write conditionals the way the author suggests. Mostly because that is the way you'd write it if this was math. You'd say 'For x between 5 and 10' and write '5 < x < 10'.
To be clear, my point is not that a math-centric style is bad. My point is that 95% of the time it doesn't matter.
If you were working with me on a project, unless I had solid evidence that conditional styles were causing bugs, your style might warrant one curious comment on a single code review, but nothing else.
If it became obvious that it was causing bugs, we'd standardize on whatever the majority of people in the office already used, even if that was:
If you were working with me on a project, unless I had solid evidence that conditional styles were causing bugs, your style might warrant one curious comment on a single code review, but nothing else.
If it became obvious that it was causing bugs, we'd standardize on whatever the majority of people in the office already used, even if that was:
``if(10 > x && 5 < x)``