• hdsrob@lemmy.world
      link
      fedilink
      English
      arrow-up
      99
      ·
      6 months ago

      Been writing the same software for 20+ years now, don’t even need git blame to figure out what asshole wrote this shit.

    • NotSteve_@lemmy.ca
      link
      fedilink
      arrow-up
      24
      ·
      6 months ago

      That exact chain of events happened to me at my last job and I audibly laughed realising it was my own code. To my own credit though, it was a file I had written four years prior which at that point was more than half my whole career in the past

    • dan@upvote.au
      link
      fedilink
      arrow-up
      12
      ·
      6 months ago

      These days I see so much AI slop that my reaction when I see code I hand-wrote myself is “hey, that’s pretty good”.

      My team’s code is great, but we use a lot of shared code written by other teams, with varying levels of quality.

    • JATothrim_v2@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      6 months ago

      I have lately jokingly guessed when I see the particular style and confusion: it’s you isn’t it? And so far I have been right. The particular author’s magic has expired, and I see the same fault replicated everywhere he has been.

  • Ensign_Crab@lemmy.world
    link
    fedilink
    English
    arrow-up
    106
    ·
    edit-2
    6 months ago

    especially your own code.

    “This is obvious” I said. “Surely I won’t need to comment this,” I said.

  • WesternInfidels@feddit.online
    link
    fedilink
    English
    arrow-up
    54
    ·
    edit-2
    6 months ago

    I go back and look at my old code and find it clear and beautiful, easy to understand, a pleasure to read. “Ah yes,” I’ll say to myself, “that approach was clever and elegant. Gosh, past me was pretty smart!”

    I like to appreciate it in this manner. Because that way, for a moment at least, I can forget about how it doesn’t actually work.

      • Addv4@lemmy.world
        link
        fedilink
        arrow-up
        9
        ·
        6 months ago

        Don’t forget AI (that scraped Stack overflow) providing a slightly different basic solution, that usually works (at least until you think about improving it).

        • slazer2au@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          10
          ·
          6 months ago

          And that is before it hallucinates a package that has been typo squatted by malware authors.

      • Wirlocke@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        7
        ·
        6 months ago

        Am I the only one too paranoid to ever copy paste code from the internet and/or AI?

        Code that I don’t understand feels like a dead pixel when I try to picture the whole piece of software in my head. I even search for what all those one letter flags mean for a command or function before I feel confident in using it.

    • chocrates@piefed.worldBanned
      link
      fedilink
      English
      arrow-up
      5
      ·
      6 months ago

      I love when someone opens a bug in my code and I get to “how the hell did this ever work?”

  • Thirsty Hyena@lemmy.world
    link
    fedilink
    English
    arrow-up
    45
    ·
    6 months ago

    As the sole programmer of a certain project, I often leave rant comment on what the previous programmer was thinking.

    • ScriptSage@lemmy.zip
      link
      fedilink
      arrow-up
      19
      ·
      6 months ago

      I was complaining to my friends about how bad the programming was on a project I was wrapping up and then they asked, “Isn’t this a personal hobby project?” yes it is.

    • HeHoXa@lemmy.zip
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      6 months ago

      I like to structure my comments as song parodies and see if anyone notices.

      "Is this a real object, or just an interface?

      This gets caught in a pipeline, no escape from transformations.

      Any way the data goes doesn’t really matter to this service.

      …"

  • AeronMelon@lemmy.world
    link
    fedilink
    arrow-up
    23
    ·
    6 months ago

    Electrical engineer: “what was that other guy thinking?”

    Software engineer: “What was I thinking?” (It’s code from last night)

  • kamen@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    ·
    6 months ago

    “Which idiot would do that?”

    * looks at git blame for the section and promptly shuts up *

    • mlg@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      6 months ago

      Man past me should have done a better job

      //Crappy hack to make this work immediately so management will stop breathing down my neck

      Oh wait nevermind lol

  • lime!@feddit.nu
    link
    fedilink
    arrow-up
    9
    ·
    6 months ago

    i did some fun metaprogramming today. i can practically hear my future self screaming.

  • bedwyr@piefed.ca
    link
    fedilink
    English
    arrow-up
    9
    ·
    6 months ago

    Electricians are a rather self-impressed bunch in my experience, like I would rather drink with a couple plumbers than electricians.

    • SirSamuel@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      6 months ago

      Electricians think their way is the only way. Get three electricians together and you’ll get four ways of running the conduit, and a six hour argument. Electricians are constantly upset because “those bastards in HVAC put the ductwork in my way”. There are three types of screw an electrician will run into in the field, which is why the average electrician owns forty-seven screwdrivers.

      Plumbers only need to know three things:

      1. Poop rolls downhill
      2. Payday is Friday
      3. Don’t chew your fingernails

      Oh, and if you want to piss off a pipe fitter, call them a plumber

  • A_Union_of_Kobolds@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    6 months ago

    Am electrician can confirm

    If I dont do it the homeowner tries to and I have to awkwardly nod instead of fixing the problem and that just takes so much longer

    • DarkSirrush@piefed.ca
      link
      fedilink
      English
      arrow-up
      6
      ·
      6 months ago

      I mean, I once had to explain to my electrician that the reason the dryer plug was screwed to the side of my panel box (6’ off the ground) was because the previous homeowner was the son of an electrician.

        • DarkSirrush@piefed.ca
          link
          fedilink
          English
          arrow-up
          3
          ·
          6 months ago

          It gets better: he also refused to restore power to the shed the cousin of the electricians son wired, because the line was buried without a conduit, and uh, was not rated for the absolutely massive drill press he had in there.

          Not sure how he didnt trip the main breaker trying to use it, I have been told every electronic in the house lost power when it was on (house had a 60? amp service when I moved in).

  • anon_8675309@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    6 months ago

    That’s the part I hate most about being a SWE. Just shut up and do your job. I’ve seen your code. You code like you read blogs for a living.

  • CompactFlax@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    4
    ·
    6 months ago

    Two red flags for trades and swe and other work:

    1 - never saying that they would have done it differently if not outright roasting the work 2 - letting someone else take over their project, willingly, and not because they’re busy. Assuming it’s not a pile of shit they don’t want to do.

    • slazer2au@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      8
      ·
      6 months ago

      Fun trick with Markdown. Put a double space at the end of a sentence so it formats the lines correctly.

      1. Double spaces
      2. allow for lists.