Comment on Advice to young programmersparentComments−carols10cents15y"The variant mentioning off-by-one errors may be pleasant, and useful for beginners, but is hardly a problem."On the contrary-- I have seen many beginners struggle for a long time to fully grasp counting starting at 0, which leads to many off-by-one errors.−nakkiel15yThat's right but with some very basic rigour that kind of bug ever hardly bites. With high level languages this is less and less of a problem; Python for example let one write code without using i.
Comments
"The variant mentioning off-by-one errors may be pleasant, and useful for beginners, but is hardly a problem."
On the contrary-- I have seen many beginners struggle for a long time to fully grasp counting starting at 0, which leads to many off-by-one errors.
That's right but with some very basic rigour that kind of bug ever hardly bites. With high level languages this is less and less of a problem; Python for example let one write code without using i.