• IphtashuFitz@lemmy.world
    link
    fedilink
    English
    arrow-up
    26
    ·
    2 months ago

    Back in the 90’s before the days of Windows 3.0 I had to debug a memory manager written by a brilliant but somewhat odd guy. Among other thing I stumbled across:

    • A temporary variable called “handy” because it was useful in a number of situations.
    • Another one called son_of_handy, used in conjunction with handy.
    • Blocks of memory were referred to as cookies.
    • Cookies had a flag called shit_cookie_corrupt that would get set if the block of memory was suspected of being corrupt.
    • Each time a cookie was found to be corrupt then the function OhShit() was called.
    • If too many cookies were corrupt then the function OhShitOhShitOhShit() was called, which would terminate everything.
  • kolorafa@lemmy.world
    link
    fedilink
    arrow-up
    23
    ·
    2 months ago

    Funny :)

    Hard to be sane with so many broken hardware implementations… 😅

    Cudos for the Linux developers!

  • nyan@sh.itjust.works
    link
    fedilink
    arrow-up
    13
    ·
    2 months ago

    We’re talking about a kernel whose user-visible error messages have historically included things like “lp0 on fire” . . .

    • VindictiveJudge@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 months ago

      The ‘printer of fire’ error used to be a legitimate and important concern. Ye olde printers really could light their paper on fire under certain circumstances and they would typically be huge devices in dedicated rooms rather than something right next to your system. Letting people know to check on it when specific things went wrong probably saved a few buildings from burning down with people in them.

      • nyan@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        2 months ago

        It was a legitimate but extremely rare concern with some early printers, yes (Wikipedia points out a particular early laser model from Xerox, plus an experimental machine from 1959, as printers that have legit caught on fire, but also points out that there is no known report of one of the old industrial-sized line or drum printers ever catching fire from friction despite it being a hypothesized failure mode). Thing is, those printers were, I believe, all obsolete by the time the Linux kernel was written. So the “on fire” error message is not likely to have been congruent with reality for any machine actually running Linux.

  • Quack Doc@lemmy.world
    link
    fedilink
    arrow-up
    14
    arrow-down
    59
    ·
    2 months ago

    The stuff me and my friends have written in private code bases we worked on before… Now those were some words we used. could never make anything like that public these days, too much softies would go crazy because of it.

    • lolcatnip@reddthat.com
      link
      fedilink
      English
      arrow-up
      71
      arrow-down
      6
      ·
      2 months ago

      Oh please. This comment has the same energy as Dave Chappelle doing a whole Netflix special about how he’s been cancelled.

      • Quack Doc@lemmy.world
        link
        fedilink
        arrow-up
        3
        arrow-down
        5
        ·
        2 months ago

        no? It was just normal common stuff… Pretending like standards Haven’t changed, even if just for code comments, is just plain dumb.

        • lolcatnip@reddthat.com
          link
          fedilink
          English
          arrow-up
          6
          arrow-down
          1
          ·
          edit-2
          2 months ago

          🤡

          Everything in the video is considered acceptable in open source code today. If it wasn’t, it wouldn’t have been right there in the code for the person making the video to find it.

          • Quack Doc@lemmy.world
            link
            fedilink
            arrow-up
            2
            arrow-down
            1
            ·
            2 months ago

            I’m not sure how that related to what I said. I didn’t say the video had any stuff like that, nor did I imply it.

      • Quack Doc@lemmy.world
        link
        fedilink
        arrow-up
        9
        arrow-down
        3
        ·
        2 months ago

        One of the ones we had to take out. I’m still mad because it wasn’t even that bad. It was a massive really long function that should have been refectored but kept getting put off. The comment was along the lines of

        // TODO: take this fat bitch to the gym later.

        Had to get removed because insensitive, well the function finally got refactored at least lol.