Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
0-based indexes are the best (velocifyer.com)
2 points by Velocifyer 8 months ago | hide | past | favorite | 13 comments


Dijkstra, 1982, "Why numbering should start at zero" - https://www.cs.utexas.edu/~EWD/transcriptions/EWD08xx/EWD831...


> That's why i write 11th september 2025 as "2025-8-10"

I read that as satire or trying to bait people (tabs vs spaces etc).


It reads like a bad attempt at trolling. A better version would have been 5-10 paragraphs on why 0-based is better, and then hit the reader with the punchline. Instead, it's a very short piece that jumps straight to their reasoning that they're confused by things every grade schooler understands and so 0-based is better. Which is not a terribly persuasive argument.

If they intended it to be a serious argument for 0-based indexes, they should not have admitted to being less intelligent than most 5-year-olds.


If this was trolling then i would have succeded, but i was trying to encourage you to use 0-based indexes so i failed


> i was trying to encourage you to use 0-based indexes so i failed

I'd say you never actually tried. Your argument was unserious.

It was simply: "1-based indexing confuses me". Even if people try to treat it as an actual argument, it's weak. Spanish confuses me, should Spanish speakers switch to English on my behalf? No. I should learn Spanish, get an interpreter, or use tools to help me converse with them. And 1-based indexing is much simpler than Spanish. If it actually confuses you then something else is going on. Every 5-year-old I know understands it, that's a low bar to beat for an adult.

Go see Dijkstra's argument for 0-based indexing, that's an actual argument. Yours was not.


It's not trolling. It seems like people hate my opinions so they call it trolling


Actually he's wrong, it would be 2024-8-10 - after all, to be consistent we'd need to start counting our years at 0.


I already count years at 0


What is the first letter of the alphabet, is it "B"?


It was none of those.


lets see: whats the 1st number?


Other guy got it wrong. It's 2.


0




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

Search: