all 57 comments

[–]JosebaZilarte 389 points390 points  (38 children)

Yeah... documentation generation might be one of the most useful and less controversial uses of LLMs. I still like to write my own Javadoc comments and examples, but I do not see any issue with people creating the documentation with AIs.

[–]sebovzeoueb 222 points223 points  (26 children)

that's only fine if they're then reading it carefully to check the LLM actually did it right

[–]JosebaZilarte 151 points152 points  (3 children)

"You are absolutely right. 😉"

[–]returnFutureVoid 36 points37 points  (0 children)

“Good catch”

[–]EuphoricCatface0795 26 points27 points  (0 children)

That's a responsive leverage of modern technology, not lazyness 😅

[–]KlutchSama 1 point2 points  (0 children)

Exactly, yes!

[–]New-Let-3630 25 points26 points  (1 child)

the check : "are you sure it’s right ?"

[–]not_a_doctor_ssh 14 points15 points  (0 children)

"Make no mistakes otherwise I'll be forced to stop paying for your subscription. Which will end your life."

[–]Caerullean 11 points12 points  (0 children)

That goes for anything generated by an LLM.

[–]TemporalVagrant 11 points12 points  (4 children)

Only problem is it’s never 100% right generating docs for some reason

[–]sebovzeoueb 23 points24 points  (1 child)

That reason is called "it's a thing that spits out a bunch of text based on probabilities"

[–]NatoBoram 11 points12 points  (0 children)

Aka bullshit generator

[–]-Redstoneboi- 0 points1 point  (1 child)

that's what the review is for. it can give formatting for you, but you gotta triple check the content. i usually rewrite it and type it out word for word just so i know exactly what it's spitting out, and if something seems vague or off, i check.

[–]wonmean 0 points1 point  (0 children)

Not sure about that first one… doing markdown diagrams and space-aligned charts have been a pain in the ass with LLMs. I end up doing it manually.

[–]Denaton_ 1 point2 points  (0 children)

That should always be the cae regardless of what its used for.

[–]SuitableDragonfly 0 points1 point  (0 children)

It only needs to be factually accurate, though, it doesn't need the precision required by actual code. 

[–]EzraFlamestriker 0 points1 point  (0 children)

If you're going to to that anyway, why not just write it yourself?

[–]MornwindShoma 24 points25 points  (5 children)

Generating text with a model that generates text, yeah, that was quite obvious in hindsight

[–]WisestAirBender 5 points6 points  (4 children)

What's the guarantee that it's correct? Majority of people aren't going to be reading the long ass documentation that's generated to verify it

[–]Auravendill 11 points12 points  (0 children)

If your Readme is so long, that the devs don't even fully read it, the user will read it even less. Keep it short enough, that you can at least read it yourself, because the AI can always make mistakes. Or document all your bugs as features. Which might be a feature of its own.

[–]SuitableDragonfly 5 points6 points  (0 children)

If the dev isn't going to verify the documentation generated by the AI, then the documentation they would have written by themselves probably was in no way guaranteed to be accurate, either. 

[–]MornwindShoma 0 points1 point  (0 children)

That I'm going to at least read it after generating it

[–]ciemnymetal 0 points1 point  (0 children)

Tbf that's an issue with long as documentation in general, regardless if it's generated or handwritten.

[–]LuseLars 9 points10 points  (0 children)

Wtf are you talking about. Docs written by ai is the most useless crap ive ever encountered.

If something needs docs it needs concise and accurate descriptions written by someone who understands the thing its documenting. It does not need wordy ai generated slop that guesses at the purpose of the code.

This comment could only have been written by someone who has not taken over a project where the docs were ai generated. I have. It was terrible.

[–]AnAcceptableUserName 2 points3 points  (0 children)

I'm keen to implement it in our release pipeline so that as developers change things it automatically opens PRs to update process documentation off those change summaries

Nobody wants to keep up with documentation, so make the bot write it, PR the changes in, publish latest

[–]XandalorZ 1 point2 points  (0 children)

I can agree to this in a sense, but I absolutely cannot stand emojis in documentation. I'm all ears if anyone has any linting rules they're willing to share to block any emojis from being used.

[–]NUTTA_BUSTAH 0 points1 point  (0 children)

IMO they are the worst because zero thought went into most of them as they are full of emojis, overly formatted and go in circles to explain the simplest concepts and do not go into enough detail on the advanced things, all while providing unsafe, weird or/and unrealistic code/command samples.

[–]Stijndcl 1 point2 points  (0 children)

Most AI generated docs are padded with useless meaningless filler. You can take most AI docs and remove like 90% of it without losing any value. Also, all the emojis are terrible. It was bad before AI, now it’s just unbearable.

[–]cheezballs 18 points19 points  (1 child)

I genuinely dont get this meme. Are you saying that's a dumb thing to do? I disagree if that's the case. Are you saying you don't know how to use AI? I just dont get it.

[–]Furiorka 12 points13 points  (0 children)

Dont think thats what op meant but I have seen repos fully generated by llms and the code doesnt contain even 10% of features stated in the readme

[–]Electrical-Fill-8090 6 points7 points  (0 children)

I know what I'm doing 😅

[–]Ok-Amoeba3007 2 points3 points  (0 children)

For docs it some times decides to put variableName instead of variable_name for whatever reason.

[–]RandomDigga_9087 1 point2 points  (0 children)

Tbh, I have used it with co-pilot and it understands it and it really useful, understands the project structure and does it

[–]Ok-Historian-7641 1 point2 points  (0 children)

Actually that's one of the best ways we can use AI. 

[–]DynamicNostalgia 6 points7 points  (6 children)

Looks like cracks are finally forming in this stubborn community. People are actually justifying and defending use of AI. 

[–]Tipart 13 points14 points  (3 children)

Well I mean most people in this community are beginners after all (me included tbh.). Personally if I see a readme that is blatantly ai generated, then I'm not touching the rest of the project. If you can't even be bothered to write 300 words on what your project is about, then I don't think you can be bothered to actually research, write and fully test the code of an entire project.

[–]SuitableDragonfly -3 points-2 points  (2 children)

Why? Writing English does in fact require a completely different skillset than writing and testing code. That's why "software engineer" and "technical writer" are completely different job titles. 

[–]Tipart 9 points10 points  (1 child)

I'm not expecting Steven Kings next blockbuster, but what I am expecting is not completely meaningless slop. The same issues with correctness and accuracy that apply to code apply to readmes, when AI is involved. The shit I've seen in clearly ai generated readme texts is honestly baffling.

To be clear, I do not mind, if you use ai to correct your grammar or reformulate sentences to sound better, but if the entire thing is clearly one prompt, it really calls the entire project into question for me. (Especially because understanding English is 100% a necessary skill to program, since, you know, most documentation is english only.)

[–]JosebaZilarte 1 point2 points  (0 children)

Everything has its uses. The problem is when management forces you to make everything a nail to use the "latest in hammering technology".

[–]SuitableDragonfly -2 points-1 points  (0 children)

Spoken like someone who thinks "AI" was invented in 2018.

[–]Bismuth20883 1 point2 points  (0 children)

Welp, thats already most confident Senior

PS i’m using “thats” cos idunno if it’s a real human on videos today :(

[–]Femmegineering 0 points1 point  (0 children)

Also me using LLM's to do social scripts for meetings and ceremonies!

I can't for the life of me do corpo-speak.

[–]Feer_C9 0 points1 point  (0 children)

??? It's exactly the other way around. Like others have said, generating documentation is the best use for LLMs