• Suzune
    link
    fedilink
    English
    arrow-up
    12
    ·
    3 days ago

    AI code is not clever. It’s all developers averaged. Even if it worked properly, you’d get average quality code.

    It’s rather lazy and cheap. This is where the quality is lacking.

    • JordanZ@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      3 days ago

      Some of the JavaScript code I’ve seen I’d call ‘clever’ because it uses certain parts of the language that are technically in the spec or are just weird casting side effects that I hope no normal developer would actually use because it’s unreadable. I’m sure ‘somebody’ used it because the AI picked up on it but it’s not exactly something that should be replicated.

      Some colleges are letting students use AI code to do their assignments. I’d expect that ‘average quality’ to get so much worse over time and I’m not sure the developers are going to be getting any better right along with it. They can continue to turn in work they probably don’t fully understand to begin with.

      • Suzune
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 days ago

        I don’t like the term “clever” in code, because sometimes it means “I’m too dumb to understand it”. Simply don’t touch clever code, unless you really understand it.

        Best example is the fast inverse square root function in Quake. Yeah… it’s clever, but replace it by simple maths and let Quake have performance problems.

        On the other hand, using AI for more than assisted coding is never clever. Some day some fuck will use it in medicine and will actually kill people. AI is not at fault here! It’s the programmer who killed a patient in this case by being irresponsible and lazy.