• fonix232@fedia.io
    link
    fedilink
    arrow-up
    5
    arrow-down
    3
    ·
    2 days ago

    As a senior dev… AI actually improved the code we wrote in my last job. Mind you the codebase was in a shite position (tons of technical debt, plague-like avoidance of inline comments because “all of that knowledge is on Jira/Notion” except it wasn’t; lots of legacy code, undocumented weird behaviours, everyone was doing their own coding style without regards to the rest of the codebase and so on).

    With controlled AI contributions, we’ve managed to:

    • refactor large chunks of code where the overall high level logic didn’t need to change, but the underlying tooling did (e.g. lots of UI layers got rewritten from a very early attempt at a standardised MVVM approach to a well defined MVI one, we’ve also managed to eliminate the remaining RxJava/RxKotlin legacy flows to replace them with Coroutines)
    • UI layers got refactored in no time because the AI agent was able to convert them appropriately (and even fixed a handful of UI bugs)
    • a handful of core monoliths (yes I know… I hated working with them as well, but we never had the chance to properly refactor) got split up into more manageable, vertical-specific domain controllers without breaking
    • the elimination of a legacy overarching component that was estimated at 6 months, got reduced to 6 weeks
    • unit test coverage skyrocketed because even if the code was hand-written, an agent would provide coverage, based not just on implementation but on intention (and adoption of TDD/BDD finally started spreading).

    Meanwhile code quality improved because we’ve had well established patterns and styles defined in the agent instructions, and even the anti-documentation “pragmatists” got shut up when they finally understood that the AI works better if there’s fucking comments to explain what’s going on

    • FiniteBanjo@feddit.online
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      6
      ·
      1 day ago

      What you’ve done is allowed an unethical and incompetent machine create an unmaintainable technical debt which will destroy the future of the codebase or the company, because you were all lazy.

      • Ledivin@lemmy.world
        link
        fedilink
        English
        arrow-up
        6
        arrow-down
        1
        ·
        1 day ago

        It sounds more like you didn’t even read his comment and are just rabidly spewing anti-AI talking points instead of participating in the discussion.

        • FiniteBanjo@feddit.online
          link
          fedilink
          English
          arrow-up
          1
          arrow-down
          2
          ·
          1 day ago

          He let AI refactor his entire codebase because the team didn’t understand each other’s techniques/approach and nobody had any time or knowledge to do the work themselves. They literally did not understand how it worked so they asked the chatbot to redo it and now they still don’t understand it but it appears to them as if it was improved.

          What did you read?

          • Ledivin@lemmy.world
            link
            fedilink
            English
            arrow-up
            5
            arrow-down
            1
            ·
            23 hours ago

            Literally every single statement you made includes an assumption that the work wasn’t checked and that nobody has any idea what it changed.

            Yes, slop exists, but one-shotting without review is not how most people use the tools.

            • FiniteBanjo@feddit.online
              link
              fedilink
              English
              arrow-up
              1
              arrow-down
              3
              ·
              19 hours ago

              IDGAF if a slopper is checking the slop. Since 2022 the number of bugs and exploits has exploded dramatically and code is measurably worse: because people do not understand code that they did not write.

              • fonix232@fedia.io
                link
                fedilink
                arrow-up
                4
                arrow-down
                1
                ·
                13 hours ago

                You do realise that most of those bugs and exploits aren’t from AI generated code (a good chunk has existed for years before LLMs were even a wet thought), and the number is mainly exploding because LLMs are being used to identify them, right?

                Take the highly coveted, human audited OS OpenBSD. 30+ years of code, deemed to be the most secure, most closely watched and verified on the planet… And a simple LLM check identifies not one, not two, but three (by my last count, this could’ve increased since, I don’t follow OpenBSD that closely) major, exploitable issues that humans have missed for years.

                But sure, slop.

                • FiniteBanjo@feddit.online
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  arrow-down
                  1
                  ·
                  12 hours ago

                  You do realise that most of those bugs and exploits aren’t from AI generated code (a good chunk has existed for years before LLMs were even a wet thought), and the number is mainly exploding because LLMs are being used to identify them, right?

                  I think that’s the lie you’re being fed, mate. Sure, some of these old existing exploits have been identified by these multibillion dollar tech companies, but we’ve well documented that AI slop coders produce terribly unsecure code and far more than their peers.

                  • fonix232@fedia.io
                    link
                    fedilink
                    arrow-up
                    2
                    arrow-down
                    1
                    ·
                    12 hours ago

                    Ah yes the lie being fed to me, aka having seen a lot of the exploits, as well as their RCAs clearly pointing to human written code. Unless you suggest that these AI companies have discovered time travel and are sending back their LLMs in time a la Terminator, but instead of killing John Connor, they’re just… injecting slop before LLMs were a thing. Which is obviously a ridiculous notion.

                    Yes, actual slop - code never reviewed by a human, having no actual maintainer, etc. - can have major security issues. Today, considerably less than, say, a year ago. Reality is, most slopware is either abandoned in no time, or, the less likely option, get traction, get more people working on it, and over time, become less sloppy as people take ownership of various parts.

                    Meanwhile, an overwhelming part of the IT industry now utilises AI with humans in the loop. We are actually in the phase of the “find out and oh fuck backtrack on it” part of the whole “let’s fire engineers because a manager with AI can do the work of a department” idea backfired spectacularly.

      • fonix232@fedia.io
        link
        fedilink
        arrow-up
        4
        arrow-down
        2
        ·
        1 day ago

        Please shut the fuck up if you have no inkling about what you’re talking about.

        • FaceDeer@fedia.io
          link
          fedilink
          arrow-up
          3
          ·
          21 hours ago

          On the one hand that would be nice, but on the other hand it would result in basically no content on social media any more.

          Actually, no, I’m on board with this.

          • fonix232@fedia.io
            link
            fedilink
            arrow-up
            3
            ·
            13 hours ago

            Hey now, not all of us are spouting nonsense constantly. I for one tend to research topics - even if in a cursory manner (and no that does not mean I use Cursor or other AI as my main information source, before another anti-AI shitwit accuses me of doing so). And I tend to stick to topics I have at least a cursory understanding of, to begin with.

            Should that not be the case, I’ll try to join the discussion with questions. Problem is, what I consider the basics of a discussion worth having - that is, being informative, with the goal of education, sharing knowledge - seems to be too much effort for most.

            However what I can’t stand is the aforementioned shitwits joining a level headed discussion only to barf in a half-digested word salad based on nothing but their emotions. If I wanted to debate based on emotions, I’d go to a reality show community…

          • fonix232@fedia.io
            link
            fedilink
            arrow-up
            4
            arrow-down
            1
            ·
            21 hours ago

            Yeeeeeah, not gonna listen to some fuckwit who immediately launches into an unprompted tirade without even reading what they reply to.

            • FiniteBanjo@feddit.online
              link
              fedilink
              English
              arrow-up
              1
              arrow-down
              2
              ·
              19 hours ago

              “Please shut the fuck up if you have no inkling about what you’re talking about.”

              Oh I’m sorry did I not enter this discussion with enough civility?

              • fonix232@fedia.io
                link
                fedilink
                arrow-up
                3
                arrow-down
                1
                ·
                13 hours ago

                Civility goes out the door the moment you decide to not actually contribute anything useful but regurgitate an “argument” of pure emotion without any factual basis.

                So I’ll repeat, fuck the fuck off, and when you think you’re far enough, fuck off a little bit more.