Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Bjartr
on June 30, 2020
|
parent
|
context
|
favorite
| on:
The End of the Redis Adventure
I'd expect the underground programming world to index from zero.
kungtotte
on June 30, 2020
[–]
The first rule would have index 0...
pokot0
on June 30, 2020
|
parent
|
next
[–]
I expect the third to be 10
m0xte
on June 30, 2020
|
parent
|
prev
|
next
[–]
This is underground programming. Perhaps it's 1?
fidelramos
on June 30, 2020
|
root
|
parent
|
next
[–]
I'd make it -1, that way regular programmers wouldn't know about it.
bigiain
on July 1, 2020
|
root
|
parent
|
next
[–]
"Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration." — Stan Kelly-Bootle.
Bjartr
on July 1, 2020
|
parent
|
prev
[–]
I'd say that's the zeroth rule.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: