Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Math vs. Language.

I don't refer to the first inch of a ruler as inch 0 or inch 1, I refer to it as the first inch.

There are two things being described which I think is a set up for confusion and the many off by one errors that I've seen as a result.

    1. Coordinate.
    2. Interval.
The origin of a graph using the Cartesian coordinate system is usually 0,0, not 1,1.

But, in my list of 2 items, I index with 1 and 2, not 0 and 1. But, be sure that the first item is 1.0 not 1.1 and the second item is 2.0 not 2.1.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: