https://arxiv.org/abs/2404.10002

Abstract (emphasis mine):

The concept of a ‘Ballmer Peak’ was first proposed in 2007, postulating that there exists a very specific blood alcohol content which confers superhuman programming ability. More generally, there is a commonly held belief among software engineers that coding is easier and more productive after a few drinks. Using the industry standard for assessment of coding ability, we conducted a search for such a peak and more generally investigated the effect of different amounts of alcohol on performance. We conclusively refute the existence of a specific peak with large magnitude, but with p < 0.001 find that there was a significant positive effect to a low amount of alcohol - slightly less than two drinks - on programming ability.

  • @[email protected]
    link
    fedilink
    English
    311 month ago

    I’ve found that the best way to utilize alcohol when programming is to code sober and comment drunk. It’s a wonderful way to make commenting both fun to write and to read later.

    I have tried coding under the influence, but I can’t do it. Even small amounts of alcohol makes it really hard to do anything complex. But if it works for you, good on ya.

    • @[email protected]
      link
      fedilink
      English
      91 month ago

      Also works for customer service. Have a ridiculously minor issue that really doesn’t matter but still irks a small part of you and you’re too much of a wimp to speak up about? Check your sent folder in the morning after a night of drinking.

      Protip: [email protected].

    • zeekaran
      link
      fedilink
      English
      21 month ago

      I did some of my best problem solving on Vicodin.

      Two beers and I’m fully functional.

  • @[email protected]
    link
    fedilink
    English
    23
    edit-2
    1 month ago

    Knew a guy in university that looked like a young Prince Charles that would pop half a tab of LSD whenever he ran into an issue he couldn’t solve. Somehow that worked.

    This was in the late 90s early 00s, well before Randall made the comic about The Ballmer Peak

    • @TopRamenBinLaden
      link
      English
      10
      edit-2
      1 month ago

      Microdosing LSD is a common thing nowadays in the tech world. It definitely increases your creativity and mental energy, so it makes sense. Your friend was probably ahead of the curve. I’m not sure if the idea was as popular back then.

      • @[email protected]
        link
        fedilink
        English
        91 month ago

        The rest of use were tending towards macro dosing. He may have known about it, but he didn’t really talk about it that much. Certainly wasn’t encouraging other to try it.

        • I Cast Fist
          link
          fedilink
          English
          21 month ago

          Maybe his dose wasn’t small enough to be considered micro. I’d wager half a tab would give a light trip instead of a full

          • @[email protected]
            link
            fedilink
            English
            31 month ago

            I dunno. I never took less than 2 tabs even my first time, cause less than that didn’t seem to do anything as far as visuals went. Just made me feel twitchy

  • @[email protected]
    link
    fedilink
    English
    191 month ago

    I once worked in IT for an MSP that kept beer on tap in the office for this exact reason. Techs were encouraged to have a beer or two when stumped on an issue. It worked surprisingly well.

    This did result in a few years of struggling with alcohol issues tho.

    • I Cast Fist
      link
      fedilink
      English
      191 month ago

      #1544 - I can no longer code without drinking at least 3 glasses of beer, am I becoming an alcoholic? - [Duplicate] [Won’t fix]

  • @[email protected]
    link
    fedilink
    English
    171 month ago

    I absolutely know this is case with my writing. Really helps you enter a flow state. Not to be trifled with, Mitchell and Webb did a sketch on it actually and they also went with “just under two drinks”.

  • @mindbleach
    link
    English
    151 month ago

    Alcohol is considered a performance-enhancing drug in darts.

    For programming, it works the same way as playing music: your focus narrows. Your brain can’t do other stuff, either because it’s busy moving your neck in time with Meshuggah, or because it’s been lightly poisoned by delicious ethanol.

  • @peteypete420
    link
    English
    151 month ago

    The idea that drinking helps has been around a lot longer than 2007. Since basically the discovery of alcohol. Yes, it can help with nerves a little bit, but none of your skills are improved, and most are impaired.

    • @[email protected]
      link
      fedilink
      English
      91 month ago

      Maybe it depends upon the person.
      I have difficulty programming properly while listening to music so maybe I’d find it hard to do so with alcohol too.

      In my case, it’s probably because I tend to keep as much of the context as possible into my current memory, which gets reduced if I’m distracted by sounds (whether music or noise). The ADHD Relief music tracks tend to work well though, since they aren’t very distracting and help get rid of other peoples’ noise.

  • @[email protected]
    link
    fedilink
    English
    81 month ago

    In my experience I can write more code after a few drinks. However I usually find that the code is of low quality when I check it the next day…

    • AwkwardLookMonkeyPuppet
      link
      fedilink
      English
      11 month ago

      Really? I’ve written code so advanced while drunk that I couldn’t even understand it the next day, but it did what it was supposed to do and solved complex issues.

          • @[email protected]
            link
            fedilink
            English
            31 month ago

            I mean maybe that just means you were bad at naming which is the hardest part! When I’m sober I spend a lot of thought on naming things, and when it gets skipped over while drunk I’m just like wtf did I write?

  • Dr. Wesker
    link
    fedilink
    English
    71 month ago

    I cannot code unless sober from all stimulants except coffee.

  • AwkwardLookMonkeyPuppet
    link
    fedilink
    English
    71 month ago

    I have written brilliant code while drunk that I didn’t understand the next day. I doubt I could have even solved the problem sober.