• fonix232@fedia.io
    link
    fedilink
    arrow-up
    2
    arrow-down
    2
    ·
    19 hours 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
      3
      arrow-down
      2
      ·
      16 hours 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
        3
        arrow-down
        1
        ·
        8 hours 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
          1
          ·
          5 hours 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
            2
            ·
            3 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.

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

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

        • FaceDeer@fedia.io
          link
          fedilink
          arrow-up
          1
          ·
          57 minutes 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
            2
            ·
            2 hours ago

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