geteilt von: https://sopuli.xyz/post/26841469

Meme transcription:

An obviously exhausted Spongebob is raising his arms in a rejoicing gesture. His face shows great tiredness, but also happiness.

Title: Finally finding your stupidity after hours of debugging.

  • saltesc@lemmy.world
    link
    fedilink
    arrow-up
    19
    ·
    3 days ago

    Light debugging I actually use an LLM for. Yes, I know, I know. But when you know it’s a syntax issue or something simple, but a quick skim through produces no results; AI be like, “Used a single quote instead of double quote on line 154, so it’s indirectly using a string instead of calling a value. Also, there’s a typo in the source name on line 93 because you spelled it like this everywhere else.”

    By design, LLMs do be good for syntax, whether a natural language or a digital one.

    Nothing worse than going through line by line, only to catch the obvious mistake on the third “Am I losing my sanity?!” run through.

    • wewbull@feddit.uk
      link
      fedilink
      English
      arrow-up
      7
      ·
      2 days ago

      Fine, but I hope you’re taking a few seconds to understand why the error message you received came from the the syntactic mistake you fixed.

      A single Vs double quote mistake should be 5 seconds from error message to fix, with a thought process like:

      • “Unable” is illegal key-word on line 163
      • Go to line 163 - “Unable” is the first word of a string…oh the previous string must not be closed correctly.
      • Find previous string on line 154. There it is - the wrong quote mark.

      If you don’t learn what the error message is telling you, you will be forever doomed take time to cut’n’paste code into an LLM. It might save you time today because that thought process takes you 2 mins not 5 seconds, but that’s not the level you want to stay at.

    • Ephera@lemmy.ml
      link
      fedilink
      English
      arrow-up
      7
      ·
      3 days ago

      For that purpose, I use a language with a decent compiler, but I know not everyone is as lucky…