caustik's blog

programming and music

Wtf, MS?

with 5 comments

When you see this line of code in your source window, how does your brain read it?

My brain says “There’s a hex number, with a couple of 1’s in it.”

Guess what? WRONG. It has one ‘1’. The end character is a secret hidden lowercase “L”. Thanks, Microsoft. Lucida console has literally a one pixel difference between it’s ‘1’ and ‘l’, which is fairly typical. These things are speckled all over mmsystem.h. Personally I never use ‘L’ at the end of a hex digit, and if I was feeling clinically insane enough to do it, I’d at least use a capital ‘L’.

Written by caustik

May 5th, 2008 at 5:25 pm

Posted in Funny,Programming

5 Responses to 'Wtf, MS?'

Subscribe to comments with RSS or TrackBack to 'Wtf, MS?'.

  1. LOL!
    yeah… on the computer it should be easy to percieve the differences but apparently Lucida makes it nearly impossible… and i suppose it isnt different colors to highlight the difference between numbers and letters as well, to make it even harder…

    when writing by hand (with pencil) i also find it difficult to make 1’s and l’s look different…
    the same issue with O’s and 0’s 🙂


    6 May 08 at 12:32 pm

  2. of course, the “l” does have its use there, so you can’t just leave it out (you can in most cases, but that’s hardly a rule)


    9 May 08 at 3:08 am

  3. I have yet to find a case where the ‘l’ is needed. I would be interested to see an example case.


    9 May 08 at 3:05 pm

  4. I agree, it’s VERY rarely needed, but the functionality is there. There’s no real use for it in a strongly typed environment I guess


    18 May 08 at 10:25 pm

  5. The font is Courier New not Lucida Console.


    23 May 08 at 8:47 am

Leave a Reply