• UnfortunateShort@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      2 hours ago

      I feel like these memes have to (mainly) stem from badly documented or broken libraries. The only times where I don’t understand what I’m doing are when I try to figure out what someone else is doing

        • andioop@programming.dev
          link
          fedilink
          English
          arrow-up
          1
          ·
          30 minutes ago

          I once saw something about how if you are trying to build it yourself instead of using a pre-existing library you come off arrogant.

          Can I build it better? Probably not. But do I want to deal with a dependency in my fun side project (unfun), when I could just build it myself (fun)? No.

          I probably should to get more practice with it so it is less painful, but…

    • Gork@lemm.ee
      link
      fedilink
      arrow-up
      29
      ·
      5 hours ago

      It’s a load-bearing function.

      We have no idea why it’s important, just that it is critical to everything functioning.

      • pixelscript@lemm.ee
        link
        fedilink
        English
        arrow-up
        8
        ·
        4 hours ago

        I feel like the “we don’t know what this function does” meme is kinda bad. There’s no reason beyond maybe time crunch why you shouldn’t be able to dissect exactly what it does.

        Despite this, the notion of a load-bearing function is still very relevant. Yeah, sure, you know what it does, including all of the little edge case behaviors it has. But you can’t at this time fully ascertain what’s calling it, and how all the callers have become dependant on all the little idiosyncracies that will break if you refactor it to something more sensible.

        It has been several times now where a part of my system of legacy code broke in some novel fantastic way, because two wrongs were cancelling out and then I fixed only one of them.

      • SpaceNoodle@lemmy.world
        link
        fedilink
        arrow-up
        12
        arrow-down
        3
        ·
        5 hours ago

        Lose a little credibility now, or a ton of credibility later? Sounds like a pretty short-sighted tradeoff, and a good opportunity to find a less shitty employer.

        • sp3ctr4l@lemmy.zip
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 hour ago

          You’re thinking like someone who exists beyond this quarter’s profit margins.

          I mean, you do, but as your boss, I’m required to tell you that you need to maximize short term results, and take all the responsibility for medium and long term calamities caused by me telling you to do that.

        • HalfSalesman@lemm.ee
          link
          fedilink
          English
          arrow-up
          32
          ·
          5 hours ago

          It sometimes depends on the programmer’s situation. Maybe its “lose a ton of credibility or live on the street/lose your H-1B Visa”

          • SpaceNoodle@lemmy.world
            link
            fedilink
            arrow-up
            16
            arrow-down
            2
            ·
            5 hours ago

            I admit that I’m currently in a position of privilege where I don’t have to worry about immigration status or insecure housing. I do try to use my power to shield those less fortunate.

          • adr1an@programming.devM
            link
            fedilink
            arrow-up
            2
            ·
            30 minutes ago

            Precisely. I was remembering someone else’s complain on a co-worker thay had. It was bad for this reason(s), and to make the situation even more infuriating they were able to sell themselves quite well. So they changed jobs, always ‘capitalizing’ on their frauds…

    • NocturnalMorning@lemmy.world
      link
      fedilink
      arrow-up
      16
      ·
      5 hours ago

      You must not have worked for a dickhead expecting you ship software on Monday that takes months to write when you were given a week to do it.

      • MajorHavoc@programming.dev
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        4 hours ago

        If the tests pass, then everything is fine… Unless we expected the tests not to pass…then it’s time to burn the codebase down and try again after a long vacation to clear our heads.

        Of course, I’ll usually settle for fixing the test suite after a long weekend. But in my heart, I’ll know what I should have done…