• ChickenLadyLovesLife@lemmy.world
    link
    fedilink
    English
    arrow-up
    66
    ·
    edit-2
    24 hours ago

    This is a pretty random Notepad story, but: in 1999 I was doing web development for Internet Explorer 6 (yes, I know) using Classic ASP and Visual Basic (5 or 6? I can’t be bothered to look shit like that up). Probably my most important debugging tool was the “View Source” menu option in IE6, which would bring up the raw HTML of whatever page I was working on in Notepad. One day the “View Source” option just stopped working, completely. Clicking that menu wouldn’t do anything at all; I tried everything I could think of but just couldn’t fix the problem. For six months I was basically coding blind - I had no way of directly seeing the HTML my code was producing.

    Somehow I managed to still get my work done. Then one day I stumbled across an obscure forum post that said “View Source” in IE6 would not work if you had a shortcut to Notepad on your Desktop. I of course had a shortcut to Notepad on my Desktop since I kept everything on my desktop (yes, I know). I renamed my shortcut to “NotepadX” and suddenly “View Source” in IE6 started working again. Possibly the happiest day of my programming life. I played around with it and found that it didn’t have to actually be a shortcut to Notepad - it could be a shortcut to any program or file, but if it happened to be named “Notepad” it would block View Source from working.

    I would give anything to find out where this particular bug came from. It’s really bothered the shit out of me for the past 26 years. I don’t see how it could ever happen accidentally, so I have to assume that some MS programmer somewhere really hated people with shortcuts to commonly-used programs on their Desktop and decided to punish them.

    • H4CK3RN4M3D4N63R570RM@lemmy.ca
      link
      fedilink
      English
      arrow-up
      7
      ·
      22 hours ago

      I love that story. Thanks for sharing. What a crazy bug. Maybe IE6 was integrating with windows in some weird way? I almost want to fire up a VM and see if I can replicate it. Think you can remember which version of windows it was?

      • JcbAzPx@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 hours ago

        IE was literally embedded into the OS. There’s no surprise there were bugs like that.

    • milicent_bystandr@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      ·
      22 hours ago

      Wow! Thank you for sharing; what an weird bug! Perhaps some ancient code to make use of notepad for view source if available, then the available function got changed, for other reasons, to if on desktop, then a different version of notepad broke the chain of borked code?

      • ChickenLadyLovesLife@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        22 hours ago

        Well, IE6 did open Notepad to show source by default, but it makes no sense why a shortcut to Notepad just existing on the Desktop would prevent that. Especially when it didn’t even have to be a real shortcut to Notepad.

        • postmateDumbass@lemmy.world
          link
          fedilink
          English
          arrow-up
          15
          ·
          20 hours ago

          Probably tried to execute Notepad.lnk, because Desktop came before /system in the path, and however they were calling it did not resolve the link before executing - and that meant a hang, silent error, or no op