News for hackers. Stuff that matters.
Re:CSS grid garden by ndnxhs on Monday December 24, 2018 @07:52PM (#18755169)
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

Re:CSS grid garden by learc83 on Monday December 24, 2018 @09:16PM (#18755455)
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...

Re:CSS grid garden by pjmlp on Monday December 24, 2018 @10:45PM (#18755769)
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.