• Olap@lemmy.world
    link
    fedilink
    arrow-up
    46
    arrow-down
    1
    ·
    2 months ago

    My management are measuring code written by AI as a metric, and expect it to go up…

  • HaraldvonBlauzahn@feddit.orgOP
    link
    fedilink
    arrow-up
    41
    arrow-down
    1
    ·
    edit-2
    2 months ago

    A full-stack developer based in India, who identified himself to The Register but asked not to be named, explained that the financial software company where he’s worked for the past few months has made a concerted effort to force developers to use AI coding tools while downsizing development staff.

    […]

    He also said the AI-generated code is often full of bugs. He cited one issue that occurred before his arrival that meant there was no session handling in his employer’s application, so anybody could see the data of any organization using his company’s software.

    This kind of things are exactly what I see with a mid-level dev who enthusiastically tries to use GenAI in embedded development: He produces code that seems to work, but misses essential correctness features, like using correct locking in multi-threaded code. With the effect that his code is full of subtle races conditions, unexpected crashes, things that can’t work but would take months to debug because the errors are non-deterministic. He has not fully understood why locks are necessary or what Undefined Behaviour in C++ really means. For example, he does not see a problem with a function with a declared return value to not return a value (inconceivably, gcc accepts such code by default, but using the value is undefined behaviour). He resists to eliminate compiler warnings or instrument his code with -Werror -Wall.

    Unfortunately, I am not in the position to fire him. He was the top developer for two years. Also, the company was quite successful in the past and has, over these successful years, developed an unhealthy high level of tolerance for technucal debt.

    And more unfortunately, the company’s balance sheet is already underwater, because of extreme short-term thinking in upper management and large shifts in markets, and is unlikely to survive the resulting mess.

    • HaraldvonBlauzahn@feddit.orgOP
      link
      fedilink
      arrow-up
      19
      arrow-down
      1
      ·
      2 months ago

      And that’s why GenAI has chances to leave kind of a double blast crater in tech: Deceptive advertising and completely unsustainable financing, followed by equally unsustainable technical decisions and development practices.

  • Serinus@lemmy.world
    link
    fedilink
    arrow-up
    27
    arrow-down
    1
    ·
    2 months ago

    Pretty good and well balanced article.

    As a professional software dev, AI is absolutely useful. But forcing people to use it is weird. And I never want to have to deal with a PM using AI to generate a PR and then having to review it. That’s absolutely not how you use AI, and more often or not that will be more work than just doing the whole thing yourself.

    It’s critical to understand everything the AI is doing as it does it. Because, as the article said, if you don’t, you’re going to get subtle bugs that will be even more difficult to find later. And some of those bugs can be devastating. Add a number of those together and you have an unmaintainable mess.

    don’t remember the syntax of the language they’re using due to their overreliance on Cursor.

    I think this is pretty fine. Knowing what the situation calls for, knowing exactly how to accomplish it, and having the AI fill in the syntax for your psuedocode typically works pretty great. Something like “In the header add jQuery from the most common CDN. (Verify that CDN or this is a great vector for AI-induced malware/compromise.) Use an ajax call to this api [insert api url] and populate the div with id ‘mydata’.” That’s a pretty simple thing that it’ll likely handle pretty well and is easy to review.

    The ways they’re forcing people to use it is kind of insane. But they’re doing that because they’re using AI as a justification for firing people. It doesn’t really work like that. Used properly will it speed up development? For most developers (anyone who used Stack Overflow), yeah. But that doesn’t mean a developer who’s juggling and maintaining 3 products can now suddenly handle 5. It doesn’t speed up context switching, really. And it’s not like it’s replacing the overhead of story boards, standups, change review boards, debugging, handling tickets, or other overhead. You might just spend 7 weeks developing a project instead of 8. And it can remove a bit of tedium (or add if you’re stupid about how you force AI).

    It’s a useful tool. It shouldn’t be replacing a large number of developers. Of course they’ll fire the devs anyway, because like any other R&D the dividends are usually paid in the future. So in most cases, firing developers takes some time before you pay the toll, whether it’s opportunity cost, creating an unmaintainable mess, or losing the ability to maintain the things you already have. I expect that’s why the internet’s been falling apart lately. Fire a bunch of people and things they used to handle start to fall apart (or the people who have always handled those things get stretched too thin).

    • EnsignWashout@startrek.website
      link
      fedilink
      arrow-up
      21
      ·
      2 months ago

      I expect that’s why the internet’s been falling apart lately.

      I’m sure it is.

      It’s been interesting to see people not really getting angry about it, yet.

      • explodicle@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        12
        ·
        2 months ago

        The stuff that’s falling apart is stuff that I want to fall apart. Smaller servers aren’t going down, Cloudflare is. Linux isn’t betting its future on AI, Windows is. Google was already enshittifying before LLMs and we needed room for competitors.

        The clueless suits are all building coffins for whichever suit replaces them next quarter.

  • TootSweet@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    ·
    2 months ago

    God that article is depressing. Where I work, it’s bad but not as bad as any of those stories.

  • Sconrad122@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    2 months ago

    The giant AI banner ad inserted in the middle of this article about “unlocking AI” is just chef’s kiss

  • JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    8
    ·
    2 months ago

    Today I got told in a meeting by my manager that he’s being told we all have to use AI at every stage of the development process. I mentioned that, as a contractor, they don’t allow me to use these tools, and if they could give me access. Nope. I hate this. It’s all such bullshit.

    • backlever@programming.dev
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 months ago

      It’s the same at $WORK.

      WE WUZ AI N SHEEEIT, but nobody would buy the Claude Code licenses. “What? You already have Copilot” 🤡