Hacker News new | past | comments | ask | show | jobs | submit login

“There are only two hard things in Computer Science: cache invalidation and naming things.” [1]

[1] https://martinfowler.com/bliki/TwoHardThings.html




And off by one errors


If only there were 1 based PLs.


They don't fix off-by-one errors, just move them around.


Lua is a famous one that defaults to 1-indexing for arrays.


HyperTalk and AppleScript. And I think in old versions of Visual Basic it was common to use 1-based arrays (although you could set the range to anything)


Perl supports this. Optionally, on a per-file basis. Because it’s Perl.

https://perldoc.perl.org/perlvar.html#%24%5b


Smalltalk arrays and strings are 1-based.


The 1st one? (It wasn't the zeroth language, which is probably why it couldn't use 0-based indexing)


"LET by-ones = by-gones WITH <ol start = 0>"


And CSS...considering that this title broke HN on mobile




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: