3 ms·
I had a very heated argument with a friend on saterday about 0 indexed arrays. God damn I hate them.
by nathanlil13 14y ago
I had a very heated argument with a friend on saterday about 0 indexed arrays. God damn I hate them.
- deleted 14y ago[deleted]
- defrost 14y agoJust 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.
- gte910h 14y agoThey're not indexed. That's an offset. Naming things. Again. 1 indexed arrays are truly indexed :D