• doo@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    15 hours ago

    As I’m slowly evolving my own flavour of spec driven development, I’m starting to think about the generated code as a secondary artefact where main quality criteria is that it’s doing what it needs to and it’s covered with tests.

    I guess my current analogy is that I don’t care about how readable or dry is the assembly code generated by compiler.

    I have the specifications and the working code with tests. I can always regenerate it if I need to.

    But. I still read the produced code, steer the design and correct the obvious blunders. No vibes.

    • utopiah@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      2 hours ago

      main quality criteria is that it’s doing what it needs to and it’s covered with tests.

      Might want to read on TDD, it’s been around since last the last millennium (OK 1999 according to Wikipedia, point is, it’s not new).

    • monkeyslikebananas2@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      4 hours ago

      I know a lot of people hate but this AI stuff still isn’t great but it will get better. Each generation of programming languages adds syntax and convenience. AI code will likely get to the point where it is just a higher level language. The only benefit I’m seeing is that if used very carefully I can make more complex projects with fewer team members. And where there was zero documentation there’s at least SOME documentation.

  • potatopotato@sh.itjust.works
    link
    fedilink
    arrow-up
    19
    ·
    2 days ago

    The LLMs are just somewhere between an averaging and a lossy compression of everything on GitHub. There’s nothing about the current paradigm of “AI” that is going to somehow do better than just rehashing that training set but with the inclusion of various classes of errors.

    I think it’s better to view it as spicy search rather than any form of intelligence.

    • MrScottyTay@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      7
      ·
      2 days ago

      Yeah that’s mostly what i use it for. A way to search for things that i can’t describe well enough for a traditional search engine so I can find out at a glance what it’s name is and if it’s valid for my situation. If it is then I go look up documentation. Any time I’ve stayed in the LLM past that I eventually go down a rabbit hole of wrong ideas that aren’t always obvious until you get a bit too deep and you’ve wasted an hour with an incorrect solution.

      • Corkyskog@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        ·
        1 day ago

        The only thing I have found it useful for is book recommendations. I like this book and that book, what other types of books are like these?

      • potatopotato@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        1 day ago

        Yeah, I do believe it’s a good tool for search, just with the caveat that if it can’t find an answer it makes one up or otherwise kinda just fills in little missing details with noise.