Re:Why is the 0 next to 9, not next to 1?
by petermcneeley on Sunday April 25, 2021 @05:18PM
(#26936770)
The better question is why is 0 next to O. How many programming bugs have resulted in 0 and O being so close together on the keyboard.
[ Parent
| on HN ]
Re:Why is the 0 next to 9, not next to 1?
by simonblack on Sunday April 25, 2021 @09:15PM
(#26938318)
Many times I notice that I have written a hex number as 'ox1234' instead of '0x1234'.
I wonder if that is a subconscious thing as I tend to call '0' as 'oh' rather than 'zero'. (I grew up calling the '0' in phone numbers as 'oh', along with the rest of my cultural peers.)
> Many times I notice that I have written a hex number as 'ox1234' instead of '0x1234'.
On old fonts 0 was ∅ (well not this letter but with a line like in this example) so it was easy to spot it. But we are living on a planet that's revolving and evolving ...
Probably 0. :)
How often do you see a variable named "O"?
"To tell them apart", a former coworker used the variables named:
style1
stylei
stylel
Ironically, they were still there for some time after I'd left.
Re:Why is the 0 next to 9, not next to 1?
by MaxBarraclough on Sunday April 25, 2021 @06:29PM
(#26937336)
I'm reminded of the brilliant How To Write Unmaintainable Code.
It is a real optimist who thinks that the obviously wrong thing to do in code has never been done, or even that it's not the most commonly done thing.
I think you meant "probably O"
Re:Why is the 0 next to 9, not next to 1?
by GekkePrutser on Monday April 26, 2021 @02:12AM
(#26939755)
Ugh yeah as an IT person that kind of mistake always bugs me. At my last job someone had labelled all the lockers with "0rder management". It bugged me so much every time I looked at it.
For me this is immediately obvious.
I don't think the closeness of the two keys have much to do with this error though.