• dhork@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    ·
    edit-2
    17 hours ago

    So, now, when I see senior developers (which I am not) vibe code green field projects, I am just astounded as to how they manage the architecture + understanding + optimization + maintenance context.

    My experience is, they’re not. Like the article says they are just focused on MOAR and not on the quality of the output. It may take years for the unmaintainable code to cause problems, and they may have already been laid off by the time that happens, anyway .

    I don’t write much code anymore, but when I did, there was a fair amount of embedded code, where fixing a bug is more costly than just pushing out a build to a production server. I actively sought out automation back then, but the purpose of the automation was to help cover edge cases and better test the embedded code for flaws that traced through multiple layers of code.

    Whenever I start a new software project, it usually starts with a short period of experimentation when I try out several things. Then, I coalesce on an architecture in my head (and eventually document it), and once I do that I can add more structure to the code.

    Given the state of the AI tools today, I can see myself using them to accelerate all the little fiddly parts of this (especially if I can give it a coding standard and have it stick to it). But I wouldn’t trust it more than that. I would always keep the archictecture separate, because I don’t trust the AI tools to change it on me for no good reason.

    • MangoCats@feddit.it
      link
      fedilink
      English
      arrow-up
      2
      ·
      4 hours ago

      I actively sought out automation back then

      So did I, it was called C compilers so I didn’t have to do hand coded assembly. They turned out O.K. after the first few buggy generations.

    • MangoCats@feddit.it
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 hours ago

      Like the article says they are just focused on MOAR

      Then they’re doing it wrong.

    • Passerby6497@lemmy.world
      link
      fedilink
      English
      arrow-up
      12
      ·
      16 hours ago

      (especially if I can give it a coding standard and have it stick to it)

      Hoooooh boy, that if is doing a lot of heavy lifting, in my experience. I’m constantly telling the stupid little stochastic fuck to follow basic coding standards I’ve given it.

      I don’t use a lot of AI tooling outside of debugging and a little bit into command discovery, but fuck if the little shit isn’t constantly rewriting my code into a shit style that I hate and constantly correct.

      • garretble@lemmy.world
        link
        fedilink
        English
        arrow-up
        8
        ·
        15 hours ago

        One of my bosses has been a little Ai-pilled recently and he also contributes code.

        I can tell which parts are his AI slop not from any git blame or anything but because of how it looks. You can see the stylistic differences in a block of code from one file to the next, and also it seems like AI likes to add comments to everything, and he just copy and pastes it all into the file. Those comments are often very different looking, too. So just stylistically everything is all over the place.

          • garretble@lemmy.world
            link
            fedilink
            English
            arrow-up
            8
            ·
            14 hours ago

            Everyone has their own style, but Bob over here doesn’t change his style every day. Before, my boss had their own style, and if I ended up working on their code I’d try to match that just to keep things consistent. But now it’s all over the place.

            AI slop just flops out whatever it feels like at any given time since it’s just cribbing everything from the internet.

    • frongt@lemmy.zip
      link
      fedilink
      English
      arrow-up
      4
      ·
      17 hours ago

      Those are all great habits.

      But the time spent doing that is time not shipping code. Most companies don’t give a flying fuck about quality, they just want to ship as much as possible to make as much money as possible.

      • Glitchvid@lemmy.world
        link
        fedilink
        English
        arrow-up
        6
        ·
        16 hours ago

        When the cost to ship trash code trends toward zero, then there will not be value in shipping trash code. Companies will need to focus on software that is actually competitive (in a qualitative way) because otherwise their customers will just self-vend the slop code.

        • frongt@lemmy.zip
          link
          fedilink
          English
          arrow-up
          4
          ·
          14 hours ago

          I think you have something backwards. When the cost to ship trash code trends to zero, the profit trends to infinity.

          • Glitchvid@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            7 hours ago

            The cheaper it is to produce slop code, the less the demand there will be to buy it. Companies will self-vend instead of buying the slop being sold. Your profit margins are someone else’s inefficiency.