• GissaMittJobb@lemmy.ml
    link
    fedilink
    English
    arrow-up
    30
    ·
    8日前

    I mostly agree with the article, but this particular part stood out to me:

    Confusing: No comments, no clear structure.

    One of my biggest gripes with AI generated code has been the high volume of low-value comments - the type of high noise-to-signal stuff you just sort of have to remove.

    • silasmariner@programming.dev
      link
      fedilink
      English
      arrow-up
      13
      ·
      8日前
      /* Calculates the levenshtein distance between two words
      * @param wordA: the first word to pass to the algorithm
      * @param wordB: the second word to pass to the algorithm
      */
      def levenschteinDistance(wordA: String, wordB: String): Int = ...
      

      – completely fucking pointless innit

    • resipsaloquitur@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      7日前

      One of my biggest gripes with human-generated code has been the high volume of low-value comments.

      int a=0; // initialize a
      

      Thanks.

    • criss_cross@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      7日前

      A lot of AI comments are just restating the code to you. Explaining the “what” not “why”.

      Which is fine for educational purposes. Not so much for actual production code.