Re:CSS grid garden
by chrisseaton on Monday December 24, 2018 @01:59PM
(#18753656)
Maybe designers don't have a culture of counting from 0 like programmers do?
[ Parent
| on HN ]
Re:CSS grid garden
by talltimtom on Monday December 24, 2018 @03:01PM
(#18753963)
There are programmers who don’t count from zero. And even programmers who count from zero but don’t do so consistantly as soon as they implement even the simplest personal indexation.
Programmers don't count from 0. Its just in many languages it makes sense like in C where an arrays name is actually a pointer to the first element and the index says how many positions to move away from it so foo[0] is the pointer to the first element and then move 0 spaces away.
The tradition of starting at 0 just got carried on to everything because having a standard is better than having to memorize what everything uses
There are good reasons to start counting at 0 beyond convention. Dijkstra wrote a small essay on the topic in 1982 called "Why numbering should start at zero."
http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EW...
As someone that started programming in languages that count from 1, I kind of disagree with that essay.
Specially when dealing with Algol derived languages, where the indexes can be specified in a flexible way.