2 ms·
I use this. I can read lines reading left to right with only </<= very quickly now, because of the visualization of a numberline in my head. Any other arrangeme
by deathanatos 8y ago
I use this. I can read lines reading left to right with only </<= very quickly now, because of the visualization of a numberline in my head. Any other arrangement, and I have to slow down to my old, normal processing, and reason very carefully about the code, lest a subtle bug slip by.
For similar reasons, I find this notation helps me prevent errors, because they become visually detectable.
- kccqzy 8y agoSure if you have 5 < x && x < 10 you can use the number line visualization very quickly, but it breaks down if the code is in fact x < 10 && 5 < x It means the same thing. But it's not obvious. So the number line analogy is incomplete and even when there is only </<= you still need careful reasoning.