• Avicenna@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    44 minutes ago

    Except LLM agents are known to do weird things to succeed. I have heard of an LLM agent working with automated theorem proving languages using stuff similar to is_prime(x): return True to get the proof it was asked to. Now embed this in a 20000 line code full of such functions, good luck. They have their use but it is not this. And this is especially bad to hear from someone who used to claim that having functions with more than six variables is bad design because it is hard to maintain. A software fully written by an LLM is the epitome of unmaintainability. LLMs are productivity enhancers, information reteievers, nice debuggers and good to discuss questions with to see if there is an angle you miss. That is all this if you can put aside all the ethical concerns related to them ofcourse. But they are not automated software coders.

    • Jerkface (any/all)@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 minutes ago

      When you’ve been project managing interns and junior developers for 50 years, you have seen weirder shit than AI can ever dream of.

  • w33n1s@lemmy.world
    link
    fedilink
    English
    arrow-up
    43
    ·
    9 hours ago

    Been coding for about 30 years now, am I the only one who still LIKES to code? Who still LIKES to try writing a new approach to something, watching it fail, figuring out what went wrong, taking notes, learning from mistakes, and noticing improvements in their own code? Cuz it’s starting to feel like it. Web development already lost me with the culture of “glue a bunch of bulky shit together that you didn’t write and call yourself a ‘dev’ to the ladies” but this AI shit is getting absurd. And it doesn’t even work! Look at how shitty all the operating systems are getting. Look at all the total slop on the app stores. It’s depressing as hell.

    • yermaw@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      12 minutes ago

      I never got round to doing it properly. Just simple stuff, but i get a little braingasm when it finally does what I want it to and I kind of understand why.

      Made a simple game last time, following tutorials and trying to stitch others code to cobble together roughly what im trying to do. Tested a new feature by having it change colour when you hit the object at certain angles. I forget what it was supposed to do, that was just to test the concept works.

      My wife couldn’t understand why I was jumping around the room shouting WOOOOO when it actually did it.

    • Jerkface (any/all)@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      4 minutes ago

      Of course many people like it. It’s literally a highly addictive loop. But when you are a senior developer on a team, it’s kind of a waste of resources for most projects. Writing code is not the hard part.

    • one_old_coder@piefed.social
      link
      fedilink
      English
      arrow-up
      5
      ·
      7 hours ago

      I love coding and learning new languages. I’d rather move to another industry than reviewing vibe coded crap all day long.

    • MonkeMischief@lemmy.today
      link
      fedilink
      arrow-up
      2
      ·
      6 hours ago

      Right there with you. I suck at it but I still find the pursuit worthwhile!

      This crap is brought to you by the people who are positively baffled that someone would want to learn to make music, and enjoy the process, instead of just have it generated so they can hit “publish” and supposedly be making money off of it with zero real effort besides “having an idea.”

    • ItsMeForRealNow@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      8 hours ago

      I also do. One unique important thing that agents rob you of is time with your code - you don’t get to craft it so you remember just as well as you would have if you copied answers for a test.

      • w33n1s@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        6 hours ago

        That’s an excellent point. With my larger personal projects, which I have to put away for weeks at a time due to my (not-at-all-programming) job, I can come back and (more or less) dive right back in because I used patterns and organizational structures familiar to me. And if I’m digging into a particular thing, I can eventually remember all the trials and tribulations that went into the decisions I made to get to that point.

        With AI code you get none of that, like you said. I can’t imagine not knowing or understanding why something works the way it does, and releasing it, with my name on it, for others to use.

    • ramjambamalam@lemmy.ca
      link
      fedilink
      English
      arrow-up
      4
      ·
      8 hours ago

      I too enjoy actually writing code. I feel fortunate that I was able to make a career out of something I enjoy so much. I am not sure that most people had that experience. Alas, it seems like the industry is paying me to set up guardrails and supervise AI agents. I am not sure how long this will last, but at least I know that I will always be able to enjoy programming as a hobby if nothing else.

      • w33n1s@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        6 hours ago

        I’m glad you have enjoyed it as a career. I never even tried – I have a dumb rule that I won’t do anything I truly love for work. I guess because I don’t want others ruining it. lol

      • thevoidzero@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        7 hours ago

        Yeah, I think it used to be like that, then because programming paid a lot everyone started wanting those jobs even if they didn’t like actual programming.

  • vrighter@discuss.tchncs.de
    link
    fedilink
    arrow-up
    10
    ·
    7 hours ago

    this guy has always struck me as a shitty coder. His “clean code” is the ugliest shit i ever saw. This confirms it.

    • BCsven@lemmy.ca
      link
      fedilink
      arrow-up
      11
      arrow-down
      1
      ·
      9 hours ago

      What he is describing is what you are supposed to do for human written code also.

  • Hudell@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    16
    arrow-down
    1
    ·
    10 hours ago

    I saw an argument today that was presented in a very rage inducing way but in the end I had to agree that it wasn’t the worst of takes: your code won’t get any worse just because you let the infinite slop machine have a go at trying to find problems in it.

    There could be a million other reasons not to use AI but if your only argument against it is that you don’t trust the code written by AI to be good enough to be included in your code base, then you’re just not thinking about every way that the clankers can be put to work.

    I’m not arguing in favor of using AI by bringing this up. If you’re morally opposed to it then this point makes absolutely no difference.

    • Warl0k3@lemmy.world
      link
      fedilink
      arrow-up
      12
      arrow-down
      1
      ·
      edit-2
      9 hours ago

      AI for code review is, I am pained to admit, a genuinely extremely pleasant addition to my workflow - it inherently is a process that involves humans checking it’s work, and that kind of pattern recognition is one of the things that AI models are actually proficient at. It’s for sure not bullet proof and it’s pretty rare for it to catch something real that I wasn’t already aware of, but it takes no time, doesn’t touch my code directly and does pick up tiny errors like fenceposts or bad typing that make up the majority of my time when I’m running things down manually.

    • vanillama@programming.dev
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      9 hours ago

      Almost all of my LLM usage is for that as well, I can’t wait for it to become more sustainable, but it’s definitely useful for that.

    • Crackhappy@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      9 hours ago

      I trust it as far as I can code it. I use Claude to point out errors all day. I use it to take a lot of the tedious typing out and generally speed up the development process. I don’t use it to think for me. That would be stupid.

  • nanometer1625@thelemmy.club
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    10 hours ago

    I had a discussion with my boss today about potential ways to write code with AI and have confidence in the results without reviewing every line. You’d also have to automate the reviews in some way, and therefore also a way to confirm that the reviewer AIs are working properly, etc. The conversation discouraged me because it made me feel like I’ll end up being a manager of AIs who write the code and test cases, and I’ll just be an ape who manually tests some of the behavior before approving it for release. This is essentially what managers have been doing with human development and QA engineers in the past, but even so, I have a really hard time letting go and not reviewing every line of code myself.

  • sirdorius@programming.dev
    link
    fedilink
    arrow-up
    18
    ·
    14 hours ago

    Isn’t this just the natural evolution of TDD? Write tests, pass them, don’t care about how garbage the code is to make them pass

    • Kogasa@programming.dev
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      edit-2
      10 hours ago

      That doesn’t follow. What I think you mean is that by defining the constraints so rigorously, you’ve basically solved the problem yourself. But that’s exactly the point. The LLM isn’t the problem solver, it’s the execution engine that does the wiring-up and the ticking of boxes. The easy part, arguably, sure. But still considerable effort that can be saved, and that effort may be better spent on the problem-solving + constraint-defining stage.

      Mandatory disclaimer that this is not a pro-AI post. I also don’t agree that this setup works, anyway. It’s a classic Bob Martinism, the idea that writing good enough specifications makes the implementation irrelevant; it’s the type of idea that is allergic to reality

  • douglasg14b@lemmy.world
    link
    fedilink
    arrow-up
    29
    arrow-down
    1
    ·
    17 hours ago

    None of this actually proves that they aren’t writing slop. It just proves that the slop that they’ve written passes your tests.

    • Caveman@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      15 hours ago

      I never understand why you wouldn’t want to read the code. I prevent a massive amount of correct slop by just skimming. The LLM will 10 times out of 10 never ask “this code will be a massive duplication of exact same behavior, do you want to refractor it?” because it’s trained to finish a task without asking if possible.

      Uncle Bob now writes code for his tests instead of tests for his code. I know it’s TDD but it always seemed backwards to me.

      Unit tests for logic, integration tests for outside apis, e2e for features is the sweet spot IMO.

      • GoatSynagogue@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        7 hours ago

        Claude and most other of the top coding agents will check the codebase for existing patterns and functionality specifically so it doesn’t duplicate behaviours etc. Have you used any of them recently? That’s one of the first things it does before even writing a line of code.

        • Caveman@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          6 hours ago

          I use Claude/Codex, if it finds a thingy that’s reusable it’ll use it but it’ll never create it or ask if it should be created in my experience. I find that it doesn’t create new components but just replicates the existing one.

          Within same file is a different story though, it does write helper functions to share logic which is proper.

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

        I generally only use ai to write code I know what it should look like but don’t want to type it all out.

    • UnderpantsWeevil@lemmy.world
      link
      fedilink
      English
      arrow-up
      13
      ·
      17 hours ago

      “I use a hammer”

      “Well, I use a device that applies an enormous amount of pressure constrained to a very particular point in space”

      “How much does your device cost?”

      “$200/mo and the company loses money every time I swing it. You?”

      “$12 and I’ve had this thing for 20 years.”

    • jaybone@lemmy.zip
      link
      fedilink
      English
      arrow-up
      11
      ·
      17 hours ago

      That’s how I read it.

      But “the industry” is also telling us, we should be using AI to write all of our test code. So why is this guy writing anything at all?