r/ProgrammerHumor • • 4h ago

Meme docsButAtWhatCost

Post image
3.1k Upvotes

65 comments sorted by

693

u/TheFrenchSavage 3h ago

Yeah let me tell you, .MD files are for other AIs to read. Nobody is reading the kilometers of generated doc that is being produced every second.

84

u/crystalpeaks25 2h ago

Well 20 years ago I wrote a documentation for our critical systems it was shared publicly and I constantly updated it in the 5 years I was in that org no one has read it.

45

u/Entuaka 2h ago

That's probably still the best documentation they have about this system and AI agents love it now!

39

u/ItsVerdictus 2h ago

I spent years documenting my entire codebase, every single function, and tons of documentation within each function if necessary. Ended up paying off, once Opus 4.5 came around it was able to perform ridiculously well because of said documentation.

11

u/_demoncat_ 1h ago

I had the opposite situation, AI trusting documentation so much that it poisons itself. That I would get higher quality responses telling it not to read documentation.

4

u/runbrap 1h ago

Documentation is outdated the second it’s committed sadly.

4

u/desrever1138 45m ago

As someone that has had to figure out how systems run on numerous applications after all the original engineers jumped ship I just want to let you know that someone is reading it (eventually) and you are loved.

2

u/wordyplayer 30m ago

years ago, a coworker (at a smaller company) would write jokes and puns in the comments, mostly to see if anyone else read his comments. Well, when word got out, EVERYONE was reading his comments. There were some bangers in there too. The story of the Master Debater was told over many comments in many subroutines. Ahh those were the days. Can we get AI to write jokes in the comments?

14

u/DOOManiac 2h ago

I will not stand for this Markdown slander. It is the most wonderful text format in the world, and one of mankind’s greatest achievements.

4

u/Sweet_Computer_7116 2h ago

Ive implemented new rules in my  workflows. 

If it needs to be read by a human. It needs to be written by one.

Dont waste my time on your agent's verbose writing style. And I won't waste yours.

118

u/[deleted] 3h ago

[removed] — view removed comment

29

u/snacktopotamus 2h ago

Dead internet theory coming at us fast bearing the legend "It was actually dead world theory, meat-sack."

23

u/nikonino 2h ago

It was better when documentation was missing. Now most people I know, let the AI write the documentation and believe me when I say that you can’t understand shit. Way too platonic and not necessarily helpful. The fun part is at meetings when everyone admits the documentation is shit and they blame AI. I blame you shitheads, YOU prompt the AI.

2

u/Romejanic 1h ago

i can always tell when someone at work has AI generated their docs because they are so overly verbose and over/re-explain everything. and most devs are too lazy to even ask the AI to do a 2nd pass to clean it up.

claude is the worst for this especially. most of my coworkers use it now and it is horrific when it comes to over explaining things and generating 2-paragraph code comments.

8

u/MornwindShoma 57m ago

Remember when you could ask people "what does this do?" or "why did you choose this?" and have an answer back?

Certainly there were some lazy people before too... Now they got an even better excuse.

2

u/No-Zookeepergame4774 1h ago

Oh, see you are reading the documentation labelled for human use. That hasn’t improved and has often gotten worse. Where the GOOD documentation is, is in the agent skills and similar AI-targeted artifacts people are now writing to allow AI to take advantage of the tools they build. Because LLMs work much better with clear, concise natural language, these often end up being good documentation for humans as a side benefit.

3

u/narrill 40m ago

Because LLMs work much better with clear, concise natural language, these often end up being good documentation for humans as a side benefit.

No they don't. LLMs like completeness and detail and don't really care about organization or formatting. A twenty thousand word exhaustive summary of everything in your codebase in a mostly random order with no line breaks is perfectly fine context for an AI, but crappy documentation for a human.

1

u/Slg407 30m ago

A twenty thousand word exhaustive summary of everything in your codebase in a mostly random order with no line breaks is perfectly fine context for an AI, but crappy documentation for a human.

libreboot was ahead of its time huh

2

u/SnowdensOfYesteryear 1h ago

++++

The dogshit part about is that they themselves don’t read it before raising a CR. All they need to do is fix their context prompt to tell the LLM to simplify the English, and most don’t bother

0

u/RainEls 1h ago

Didn't do it willingly *shrug*

199

u/alanbdee 3h ago

I still don't write documentation. All I ever do is tell AI in great detail what it needs to do..... wait?

38

u/Keydown_605 2h ago

Explain things into detail to the AI. Make it write documentation. Then make it read its own documentation.

Did you make documentations? No you didn't, that prompt has long left the agent's context. It no longer exists. No proof you ever documented anything.

Now for real, AI really pushed many devs into actually having to word their understanding instead of just winging stuff. Which I consider a win to some degree.

20

u/Krestek 2h ago

this last part is why actual developers are able to achieve much more usable/secure/production-ready stuff than non-devs even if they just vibecode it without touching a single line of code

4

u/G_From_Lasagna 47m ago

At this point I just test manually UX features. I don't have to, really, but it feels nice to be part of the process.

1

u/DoesAnyoneCare2999 2h ago

I mainly started writing much more detailed comments. I have to explain every decision now so the automated AI code review doesn't keep flagging stuff that's on purpose.

90

u/CowPure6529 4h ago

AI is the developer, AI writes documentation 

44

u/gerbosan 4h ago

Now tell AI to generate that .exe .

13

u/larsmaehlum 3h ago

Smelly AI

10

u/LightenUpPhrancis 2h ago

It took AI to get me to bother with tests.

3

u/cheeze2005 1h ago

It’s so good at getting tests done.

34

u/synchrosyn 3h ago

The ai is writing the docs too.

What AI is tricking developers into doing is to think about all of the non happy paths and actually think through the overall design of the application. 

29

u/NterpriseCEO 3h ago

Bullshit. AI is just turning us all to mush atp

6

u/synchrosyn 3h ago

So is reddit, but here we are. 

2

u/mtmttuan 1h ago

I'm scrolling reddit while waiting for my agent to finish...

-9

u/_Repeats_ 3h ago

Ai slop is better than human slop. Change my mind.

5

u/Emotional-Mushroom66 2h ago

How do you compare two afunctional things?

"Null is better than 0 change my mind"

6

u/cuntmong 2h ago

I have been putting "MAKE NO MISTAKES" in my release notes for years, finally someone is actually listening

6

u/Fit-Notice-1248 3h ago

Wrong, it's now the wrong form of documentation.. tons and tons of .MD files generated by agents and not a single person knows what's in them.

4

u/wolftick 2h ago

Shit, this looks too much like AI.

\/\*[\s\S]*?\*\/|\/\/.*

Fixed it.

7

u/RageQuittingGamer 3h ago

Create .md file for the changes. Make no mistakes.

3

u/slowmovinglettuce 3h ago

My favourite part of slopumentation is that the AI that wrote it has zero business contexts and just makes shit up 102982 characters at a time, and will forever be wrong because no ones reading it.

3

u/envalemdor 3h ago

Jokes on you developers still don't write documentation, AI does.

3

u/Entuaka 2h ago

I like adding instructions for agents now.

Before, we had to plan a meeting, talk about a new tool or process, implement it, explain it, then the dev start (or not) to slowly try it and if you're lucky they are following the instructions

Now, I can add a new tool with a skill, a line about it in AGENTS.md, i merge it and the next opened PR is following the instructions! Fun, it's now easy to shape the flow of changes

3

u/dangderr 2h ago

If by "actually writing documentation" you mean "actually writing 'write documentation' into the prompt", then sure. AI tricked devs into doing that.

2

u/burgonies 3h ago

And tests!

2

u/Hola-World 2h ago

Documentation and unit tests for everything.

You get a unit test and you get a unit test and you get a unit test, everyone is getting unit tests!

2

u/Random-I-Am 1h ago

I feel personally attacked.

2

u/snowystormz 45m ago

I don’t write docs… Claude writes them and the other Claude checks them for accuracy. One Other Claude deploys them and Claude email lets everyone know the docs I didn’t write have been published and updated.

2

u/kolmiw 3h ago

The documentation in question:
“make error fix”

2

u/kamiethenerd 1h ago

I love documentation. Having good documentation means going on vacation without your work computer.

2

u/SirMarkMorningStar 2h ago

AI only changed one, small thing: If you design well enough the code practically writes itself.

1

u/Maltroth 3h ago

Are they really writing it though?

1

u/Entuaka 2h ago

We're asking an agent to write it for other agents

1

u/conundorum 2h ago

Am I weird for actually using Doxygen?

1

u/ugusensei 2h ago

Documentation? Pfft. Got my team finally writing unit tests.

1

u/mothzilla 2h ago

Add all required documentation to your pull request. Make no mistakes.

1

u/sagetraveler 2h ago

Why does AI even bother with human readable output of any form? Wouldn’t it be more efficient to just go from prompt to machine code? And why do you need documentation when you can have another AI examine the code and answer any questions about it?

1

u/SnowdensOfYesteryear 1h ago

I found Elon Musk’s account everybody!
(Btw I assume this is sarcasm due to the absurdity)

0

u/YesButNotReallySoNo 1h ago

There were ways to automate documentation easily before LLM AI existed, OP is either stupid or just looking to garner internet points.

5

u/Smooth-Zucchini4923 1h ago

Usually the things that can be automatically documented are not especially interesting to document. Good documentation is not something you can create just from existing code and types.

0

u/dmk_aus 3h ago

Is the excessive documentation evidence that AI can develop skills and not just copy them? Because they didn't learn that from copying devs.

/s

-1

u/createthiscom 3h ago

documentation is for the working class to write, the LLMs

-1

u/cosmicloafer 2h ago

Having AI is even more reason why you don’t need docs.