5 ms·
This has far surpassed my dystopian predictions of how people would misuse LLMs. Self spamming your own code base with comments that are either obvious, mislea
by hedora 4y ago
This has far surpassed my dystopian predictions of how people would misuse LLMs.
Self spamming your own code base with comments that are either obvious, misleading or wrong was previously unfathomable to me.
Most people think I’m unrealistically pessimistic.
Well done.
- bqmjjx0kac 4y agoIt would be chef’s kiss perfect if another LLM did the code review.
- abathur 4y agomaybe a "code formatter" that just asks an LLM if it can rewrite this code, but pretty?
- armchairhacker 4y agoBut you see, developers have been self spamming their code with obvious, misleading, and/or wrong comments for decades. Especially with those pesky “everything must have a doc-comment” linters. Think of all the time ChatGPT will save doing it for them!
- vorticalbox 4y agoI have actually been using chatGPT do write jsdocs for me. It mostly only need the function and the type definitions (typescript) and it is usually very good at writing them and it does save me time.
- abhishekbasu 4y agoyour pessimism is hardly unwarranted. this will lead to rather lousy code documentation, and might be misused by folks. but on the other hand, i look at this as something that will be effective as a "summarizer" of sorts where it describes already written code with lack of/poor documentation.
- ChatPGT 4y ago[flagged]
- userbinator 4y agoPeople have been doing that for a long time. It's usually a form of malicious compliance to "document everything" policies. https://www.reddit.com/r/ProgrammerHumor/comments/4ktp12/my_colleague_ran_a_tool_to_document_our_code_base/ https://www.reddit.com/r/ProgrammerHumor/comments/4ktp12/my_...
- raincole 4y agoJust becasue people are doing that for a long time it doesn't mean we should make it more efficient.
- hedora 4y agoJust because we shouldn’t doesn’t mean people won’t pay for the service. My “Well done” was not meant sarcastically!
- userbinator 4y agoI doubt an LLM is more efficient than previous documentation generators.
- hedora 4y agoWait. This is already an industry?!?
- jamesrom 4y agoCode is the ultimate reference for understanding a project, while documentation is often neglected, outdated, or incorrect. It can also be difficult to keep up to date. An LLM may not fully comprehend the code like the original author, but it can offer a different perspective that may be valuable. The only argument I've seen against LLMs is that it may encourage laziness, but this is a flawed argument similar to those made against the printing press, which was said to make people illiterate. As a reader of the docs: does it require discipline to refer back to the code when needed. Yes, but this is no different from the discipline required to write documentation in the first place. But with a key difference, the discipline is shifted from author to reader.
- woeirua 4y agoThis just begs the question… why not generate the docs when someone reads the code instead? Why bother generating a bunch of half assed docs today when you can wait and interrogate the code in a much more natural and fluid way using the same LLM when it matters?
- docandrew 4y agoSEO. When you ask an LLM “What’s a good library/tool I can use to accomplish X?” The ones with some documentation already attached will rise to the surface and make it easier for the consuming LLM to generate code samples for.
- IanCal 4y ago1. It's cheaper 2. Everyone can see the same thing 3. It can be utilized for search 4. You can do both Perhaps most importantly 5. It can be reviewed
- ModernMech 4y agoBecause not everyone will have access to LLM technology, and even if they do, your project might not always be used in a setting where access is technically feasible.
- deleted 4y ago[deleted]
- layer8 4y agoIn can help to give an initial overview over a code base, its structure and contained functionality (with the usual risk of inaccuracies and fabulations), but it can’t supply the rationale and contextual information that good documentation provides, which can’t be derived from just the code. It also can’t distinguish between what is an implementation detail and what is part of an implicit interface contract.
- elromulous 4y agohttps://abstrusegoose.com/432 https://abstrusegoose.com/432
- riku_iki 4y agoHe now can use gpt to generate code, comments, comments in code reviews, and work on 3 jobs simultaneously.
- KyeRussell 4y agoOveremployment is ruining America.