r/ProgrammerHumor • • 8h ago

Meme docsButAtWhatCost

Post image
5.9k Upvotes

105 comments sorted by

1.3k

u/TheFrenchSavage 8h 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.

253

u/crystalpeaks25 7h 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.

130

u/ItsVerdictus 7h 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.

61

u/_demoncat_ 6h 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.

74

u/Kevadu 2h ago

That kind of sounds like your documentation wasn't very good...

1

u/randuse 10m ago

The reason why code comments/docs can be harmful. They can't get out of date pretty quickly, and lying docs are worse than none.

-3

u/amistymouse 3h ago

I'm in the even more opposite situation. There's hardly any docs and 4 million lines of framework code.

AI handles it like a champ though.

0

u/Curious_Cantaloupe65 1h ago

On the contrary, they could've also layed you off because of how good the AI Agent performed because of your documentation :D.

2

u/ItsVerdictus 57m ago

Not if I’m self employed.

68

u/Entuaka 7h ago

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

14

u/wordyplayer 5h 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?

3

u/Nitro_V 40m ago

My pr comments are still memes. The second I am forced to write proper ones because of some AI check I’m out

9

u/desrever1138 5h 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.

5

u/PenguinsReallyDoFly 4h ago

I'm a tech writer and process specialist and the only knuckle tattoo that's ever tempted me was "RTFM"

5

u/runbrap 5h ago

Documentation is outdated the second it’s committed sadly.

1

u/slayernine 2h ago

AI will read it.

38

u/DOOManiac 6h 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.

22

u/Lucky-Earther 3h ago

It's not the format they are slandering, it's the endless slop of text that is created for no one to read.

19

u/benargee 3h ago

Yeah, I was using .MD before AI. Not sure why people think it's a magical AI file format.

17

u/Maku-san_ 3h ago

My boss said that the format is unreadable to him and the developers because its for AI. I wanted to scream its a fucking text file what do you mean its unreadable

25

u/Sweet_Computer_7116 7h 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.

14

u/Ysilla 3h ago

Code comments from Claude are getting insane. I feel like the latest versions keep writing entire paragraphs about the most simple stuff.

... but I guess a lot of people nowadays see code comments as something not meant for humans anymore

1

u/Nitro_V 40m ago

Don’t forget the code in markdowns

2

u/unfunnyjobless 1h ago

Exactly. These AI bloated docs just get stale the moment you refactor something, and either it will waste tokens to fix the doc to make it up to date, or the old doc will poison the context.

118

u/[deleted] 7h ago

[removed] — view removed comment

29

u/snacktopotamus 6h ago

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

86

u/nikonino 7h 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.

13

u/Romejanic 5h 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.

2

u/All_Work_All_Play 4h ago

Worth it to add the requirement 'limit comments and explanations to one line' in your .md

It's that or 'Pretend no one is going to ever read this code' at the start of each prompt.

1

u/Iron_physik 54m ago

And there is easy ways to prevent that with the proper agents.md setup

1

u/unicodemonkey 1h ago

One of the specific problems with Claude is that it tends to invent meanings for words. You can read these 2 paragraphs and still have no idea what's going on because it's all "conclusive error path traversal" or something

28

u/MornwindShoma 5h 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.

13

u/Jarpunter 4h ago

At this point I wish my coworkers would just ask claude first before they ask me...

4

u/No-Zookeepergame4774 6h 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.

12

u/narrill 5h 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.

4

u/Slg407 5h 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

4

u/All_Work_All_Play 4h ago

See also: Wide data structures vs narrow data structures. A person can look at a calendar an intuitively know what's going on. A computer does much better if those same commitments are instead a list of start/end times.

Of course, we trained the sparky rocks to recognize calendars, but the point still stands.

3

u/SnowdensOfYesteryear 6h 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 5h ago

Didn't do it willingly *shrug*

341

u/alanbdee 8h ago

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

87

u/Keydown_605 7h 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.

40

u/Krestek 7h 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

15

u/G_From_Lasagna 5h 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.

6

u/joshTheGoods 3h ago

AI really pushed many devs into actually having to word their understanding

And in the process, it leads to a spotlight on the parts where, in the past, I'd just trust my intuition and experience to work out the details. It pulls all of the tough decisions forward which is enormously stressful. And now, in my org at least, everyone's claude can see who's responsible for what. Oh there was a bug in how we handle SSO? Now the support guy and my COO can ask claude who will happily git blame my ass. Thanks, Claude, I thought we were homies! I thought we were in this together!

2

u/Top-Permit6835 2h ago

Have Claude be the primary author and you the co-author

1

u/teddy5 1h ago

Not gonna fly if you have proper attribution policies for AI.

1

u/DoesAnyoneCare2999 6h 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.

102

u/CowPure6529 8h ago

AI is the developer, AI writes documentation 

22

u/LightenUpPhrancis 6h ago

It took AI to get me to bother with tests.

7

u/cheeze2005 6h ago

It’s so good at getting tests done.

56

u/gerbosan 8h ago

Now tell AI to generate that .exe .

20

u/larsmaehlum 8h ago

Smelly AI

8

u/Fit-Notice-1248 8h 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.

8

u/dangderr 7h ago

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

8

u/cuntmong 6h ago

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

7

u/slowmovinglettuce 8h 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.

7

u/envalemdor 7h ago

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

7

u/snowystormz 5h 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.

43

u/synchrosyn 8h 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. 

46

u/NterpriseCEO 8h ago

Bullshit. AI is just turning us all to mush atp

8

u/synchrosyn 7h ago

So is reddit, but here we are. 

6

u/mtmttuan 5h ago

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

4

u/mindsnare 3h ago

Now all we've gotta do is not tell anyone about this.

If everyone shuts the fuck up I can 100% GTAVI while bringing that burndown to 0.

-14

u/_Repeats_ 7h ago

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

8

u/Emotional-Mushroom66 7h ago

How do you compare two afunctional things?

"Null is better than 0 change my mind"

5

u/shitfucker90000 3h ago

uhh yeah the AI is definitely creating the documentation. i would never stoop so low as to document anything

8

u/RageQuittingGamer 8h ago

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

4

u/Entuaka 7h 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

4

u/wolftick 7h ago

Shit, this looks too much like AI.

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

Fixed it.

3

u/Maltroth 8h ago

Are they really writing it though?

2

u/Entuaka 7h ago

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

3

u/burgonies 8h ago

And tests!

3

u/Hola-World 7h 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!

3

u/kamiethenerd 5h ago

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

2

u/kolmiw 8h ago

The documentation in question:
“make error fix”

2

u/ugusensei 7h ago

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

2

u/Random-I-Am 5h ago

I feel personally attacked.

2

u/PersonalThrowawayxx 4h ago

I had to explain to a company today that their AI wrote the documentation for the wrong side of the integration and that the document told us the APIs they should have built, not what we needed to build. I didn’t think I would ever have to explain that to someone… if only they would have read the documentation just once they may have caught that.

2

u/CharlesV_ 4h ago

I was one of those few people writing documentation before AI made it easy. I do it for myself because I have the memory of a goldfish. I want to make sure that when something like this happens again in 6 months I have a guide for how to handle it, or detailed documentation to help catch me up on the issue.

There’s been a few times where I went and wrote readmes on projects which didn’t have them because I was annoyed it took me time to read through the code and see if this was the repo I needed or if it was another one with a similar name.

2

u/mindsnare 3h ago

My favourite thing about AI is having it make my Confluence pages and update my Jira tickets.

If it all blows up tomorrow I'll be spinning up a local model to pretty much do that exclusively.

3

u/SirMarkMorningStar 7h ago

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

1

u/conundorum 7h ago

Am I weird for actually using Doxygen?

1

u/mothzilla 7h ago

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

1

u/teraflux 4h ago

We still don't write it

1

u/definit3ly_n0t_a_b0t 3h ago

I fucking hate it, but here we are

1

u/thefragfest 2h ago

False. Developers aren’t writing that documentation. Claude is.

1

u/ShodoDeka 2h ago

I have written tons of documentation before AI as well, but it wasn’t until AI came along that it actually got read.

I have a hot key on my keyboard that posts a couple of key docs on our wiki, before the AI 80% of my reply’s in Teams are one of those links.

1

u/No_Definition2246 2h ago

It takes an AI to actually read the docs, so, basically nothing changed.

1

u/Substantial_Craft75 1h ago

Hey claude, can you add comments to each action?

1

u/Canofmayonnaise 1h ago

agents don't write the best documentation obviously but have found it's at least very easy to have much more complete documentation and that's better than none. plus someone's ai is reading it most of the time anyway these days and they need docs more than humans to have a sense of what's going on

1

u/BogdanPradatu 38m ago

I hate writing documentation. I am fine to sketch some ideas, but I don't have talent in writing good text, but AI sure does. I knew I needed documentation even before AI and I did my best to write a couple of lines, but AI is better than I will ever be at spitting text.

•

u/TorbenKoehn 7m ago

What? AI writes the code and the docs too, obviously. To be read by the next agent, not by me

1

u/sagetraveler 7h 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 6h ago

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

1

u/realmauer01 54m ago

We use llms for creating code, llms aren't trained on machine code but normal programming languages.

They can guess the programming language code, they have no data about the machine code.

1

u/EnumeratedArray 52m ago

AI isn't trusted enough in most areas to not have human oversight. Humans need to be able to review the output.

•

u/TorbenKoehn 6m ago

There is work ongoing where this is exactly the plan. Letting the LLM produce Opcodes directly

0

u/createthiscom 7h ago

documentation is for the working class to write, the LLMs

0

u/dmk_aus 7h 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

-2

u/cosmicloafer 7h ago

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

-2

u/[deleted] 6h ago

[removed] — view removed comment

6

u/Smooth-Zucchini4923 6h 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.