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.
/* 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 = ...
I mostly agree with the article, but this particular part stood out to me:
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.
/* 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
# do an ls to list files in the current working directory ls .
One of my biggest gripes with human-generated code has been the high volume of low-value comments.
int a=0; // initialize a
Thanks.
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.