Comment on I didn't want to use AI, so I made something that detects it!
Subscript5676@lemmy.ca 2 days agoI think comment ratio could be a fairly misleading metric. There are programs out there that requires a lot of context upfront that distills down to just a few lines of code, and especially those that are more academically interesting.
fccview@lemmy.world 2 days ago
Hey! Yeah you are right, I may remove the >20% comments to line of code resulting in the code being 100% AI driven
That said, you are obviously referencing a very niche sector, the vast majority of software engineering doesn’t require that absurd amount of comments… I can’t stress enough how verbose a ratio of 20% comments to lines of code actually is lol
Subscript5676@lemmy.ca 1 day ago
I don’t claim it to be common practice, just saying that it exists. That said, it may be “niche” in the grand scheme of things, but by no means do I think it’s small and insignificant. If anything, such codebases are typically foundational libraries in the giant stack of cards most other software engineers build.
See also antirez’s article about code comments www.antirez.com/news/124 You’ll notice how some of the snippets would’ve easily failed your criteria.
fccview@lemmy.world 1 day ago
That’s indeed very valid! As I said, I may have been a bit too harsh on the comment rule, definitely one to review properly <3