News for hackers. Stuff that matters.
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.
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.)

Re:Why is the 0 next to 9, not next to 1? by hulitu on Monday April 26, 2021 @03:19AM (#26940119)
> 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 ...

Re:Why is the 0 next to 9, not next to 1? by yakubin on Sunday April 25, 2021 @05:51PM (#26937045)
Probably 0. :)

How often do you see a variable named "O"?

Re:Why is the 0 next to 9, not next to 1? by techbio on Sunday April 25, 2021 @06:12PM (#26937220)
"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.

https://github.com/Droogans/unmaintainable-code

Re:Why is the 0 next to 9, not next to 1? by JadeNB on Sunday April 25, 2021 @05:56PM (#26937085)
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.
Re:Why is the 0 next to 9, not next to 1? by rvieira on Sunday April 25, 2021 @06:29PM (#26937334)
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.

Re:Why is the 0 next to 9, not next to 1? by tinus_hn on Monday April 26, 2021 @04:45AM (#26940561)
The original design didn’t have a 1, the l was enough for both. Perhaps the 0 was added as an afterthought as well, after all you could just use the O.