Hacker News new | ask | show | jobs
by nathanlil13 4863 days ago
I had a very heated argument with a friend on saterday about 0 indexed arrays. God damn I hate them.
2 comments

Just stop using the word index and start using the word offset. Problem solved.

The notion that the first brick in a run has an offset of 0 as does the first upright stud in a frame is something that's been basic to bricklayers and carpenters for a very long time.

Sometimes it's natural to refer to elements by their position, or offset, other times it's natural to talk about sequence numbers or indexes.

They're not indexed. That's an offset.

Naming things. Again.

1 indexed arrays are truly indexed :D