• Deestan@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    6
    ·
    4 days ago

    I don’t care whether it goes away. Neither have tapeworms, and while some people claim it helps with weight loss, most people are not up for it.

    The first usecase: One-off scripts. That is “do my homework for me” help. You can spend a minute reading the manual instead. Next time you do it, you can do it faster than through the LLM.

    The second usecase touches on something you might be bad at: abstractions and maintainability. We already had autocomplete. Autocompleting a block of code is a sign that you are not writing anything new and a signal to think about whether there is semantic duplication in the code that should be explored. Avoiding the annoyance of writing the block is you solving the wrong problem.

    • eodur@piefed.social
      link
      fedilink
      English
      arrow-up
      6
      ·
      4 days ago

      I disagree on both of those. One off scripts are generally low value. I’ve probably written tens of thousands of lines of bash, but I still look up syntax every time because I purge the low value info when I’m done.

      And autocomplete is exactly there for boilerplate and obvious code. There is ALWAYS a need for that code. Trying to abstract away all duplication will often burn a lot of new brain cycles for both the original engineer and the next engineer that has to maintain it. Sometimes the straightforward code is the best code. And that isn’t even touching on bootstrapping a new project which will necessarily require a lot of that basic repetitive code.

      I’m still an AI skeptic and anti-AI, but you can be opposed to something while still recognizing it’s use.

    • lemmydividebyzero@reddthat.comOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      4 days ago

      You can spend a minute reading the manual instead. Next time you do it, you can do it faster than through the LLM.

      I talked about writing a script that can be 20 to 50 lines. That costs me far more than “a minute” of manual reading. I generate the script, I review it, I execute it and then throw it away. Sounds like a win-situation for me. I have more time for my actual homework.

      Autocompleting a block of code

      I wrote “Code-line” completion by the way, not “Code block” completion.

      Autocompleting a block of code is a sign that you are not writing anything new and a signal to think about whether there is semantic duplication in the code that should be explored.

      Have you ever tried it out (e.g. GitHub Copilot)? Not sure what you mean exactly, especially by “writing anything new”. It can of course auto-complete stuff that does not exist in the code base. There is lots of code in the training data. Or do you mean “writing completely new stuff that hasn’t been written by anyone”? Because only few people do that, I guess.


      One more good usage I experienced is giving it text (e.g. a documentation file for customers) and the task to find/fix the typos. I’m pretty good at finding them (at least in my native language German), but you probably guessed it: I’d rather do other stuff.