Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sixdimensional
on July 4, 2019
|
parent
|
context
|
favorite
| on:
CNLabelContactRelation​Younger...
“There are only two hard things in Computer Science: cache invalidation and naming things.” [1]
[1]
https://martinfowler.com/bliki/TwoHardThings.html
whoisthemachine
on July 4, 2019
|
next
[–]
And off by one errors
goatlover
on July 4, 2019
|
parent
|
next
[–]
If only there were 1 based PLs.
masklinn
on July 4, 2019
|
root
|
parent
|
next
[–]
They don't fix off-by-one errors, just move them around.
scarejunba
on July 4, 2019
|
root
|
parent
|
prev
|
next
[–]
Lua is a famous one that defaults to 1-indexing for arrays.
kalleboo
on July 4, 2019
|
root
|
parent
|
prev
|
next
[–]
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)
danielparks
on July 4, 2019
|
root
|
parent
|
prev
|
next
[–]
Perl supports this. Optionally, on a per-file basis. Because it’s Perl.
https://perldoc.perl.org/perlvar.html#%24%5b
bonzini
on July 4, 2019
|
root
|
parent
|
prev
|
next
[–]
Smalltalk arrays and strings are 1-based.
davidgay
on July 4, 2019
|
root
|
parent
|
prev
|
next
[–]
The 1st one? (It wasn't the zeroth language, which is probably why it couldn't use 0-based indexing)
floatingatoll
on July 4, 2019
|
parent
|
prev
|
next
[–]
"LET by-ones = by-gones WITH <ol start = 0>"
manojlds
on July 4, 2019
|
prev
[–]
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:
[1] https://martinfowler.com/bliki/TwoHardThings.html