Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

This seems fitting.

There are only two hard things in Computer Science: cache invalidation and naming things.

-- Phil Karlton



"...and off by one errors"

:)


I had a very heated argument with a friend on saterday about 0 indexed arrays. God damn I hate them.


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




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

Search: