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.
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.
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.
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.
For me comments are only for describing what a function does and nothing more. With how often the code changes I'd be a fool to document how it does it and then wonder why the documentation doesn't match reality.
I mean specifically to explain why we do it some way that would not be what we would ordinarily do. the code must explain itself. but sometimes the code is weird on purpose
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?
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.
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
Probably reading raw markdown in a plain text viewer. Even then raw markdown is not hard to understand. Focus on the contents using basic literacy skills. Otherwise, open it in a markdown viewer of which github and gitlab do when you open them, which I assume most teams use to collaborate on software projects. It's not like you would normally read raw html to read the content.
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.
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.
Claude also loves to explain why it doesn't do something, typically when I reject a solution and explain what he should do instead. Makes absolutely no sense when you read the comment afterwards.
I always hate when it comments things like "This is done because of XXX, never YYY". It adds extra context which is unnecessary because you can usually derive the context from the code itself. Either that or it explains how the code integrates with other parts of the codebase which is really dumb when the code is modular by design.
claude is a great case study on why over-commenting is a bad thing and just makes the code harder to understand instead of easier.
Yeah, if you give it a reference on what something should look like, it loves to comment that it's "similar to XYZ" even though it's just consuming the same data or whatever.
i swear that anthropic has trained it to do that on purpose so they can burn people's tokens and force them to spend more. it wouldn't surprise me, anthropic is a very greedy company imo
that's definitely a good way to go. AI already writes like no-one is going to read the code so I feel like we should be doing what we can to rein it in
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
I suspect that the comment blobs are meant for the AI primarily. All models have a limited context window, and if they can evict the actual function definition from the window but keep the doc blob around then that frees up the memory for some other bullshit.
This is the biggest problem, people creating docs that no one is ever going to read. So when we do actually need documentation, it's impossible to find or the key information is buried in a sea of bullshit
Honestly I don't really remember that. Sure, it didn't come from Claude, but instead it came from copying another class, stack overflow (hopefully the answer and not the question) or example documentation.
"too platonic" ... as a software engineer and romance author, I'm dying laughing over documentation being too platonic. should we ask for the spicy version instead? full descriptions? 😂
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
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.
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.
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.
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.
This is so funny to me. Programmers just refuse to remember or imagine what it's like to be anyone other than their exact set of skills and knowledge. Good documentation doesn't just tell you what something is, it tells you why it was built that way, how to think about it, what to use it for and does that in a way that a wide range of people can actually understand if they read it carefully.
Imagine thinking a few lines of comments in a 60 page structured math proof written in lean was "documentation" when only a few PhD mathematicians could possibly understand it.
Because math has a stupid syntax. In code if you name classes, methods and variables right, 90% of the complexity evaporates and code decodes itself.
Coders suck at it, because you have to think on how something should be called. Its the most underrated skill in software and it isnt teached. What we teach is writing long ass comments for parts that dont need it.
If you name it right you and anyone in the future can grasp and navigate it. Even loops and algos become readable without having to jump into them.
In that case short comments for decisions are correct. Where you still need them are for complex algos or for public APIs with intellisense.
Otherwise comments can be harmful since they are a second source of truth and need to be maintained and hide what the code is doing. Especially in times of AI, you should let it only write down what is a decision with a reason for something. Otherwise it drifts and the AI may reintroduce behaviours from old comments.
I started using Hungarian typing in my python code (i.e. starting all variables with shorthand for their type) when I started as the sole developer at my current company, quickly realized long variable and function names made my code more readable, and (mostly) eliminated the need for the comments, outside of a few "clever" sections of code and an equation syntax parser.
Funny enough, there is a recent trend where people are deleting comments because the AI will sometimes just read the comment without reading the code and it will misunderstand how the system works.
So, both are true at the same time. Code is self-documenting, but documentation is very useful to AI. But just like before documentation drift is a problem, which is why you need to build a system where the AI is told to keep it up to date alongside the code, but it should live outside the code.
The for loop with the if that calls a method that has a loop with a switch that calls a method in a library that loops with a nested if that calls another library that writes "Hello World!".
Actually I've very much got it writing concise easy to read documentation. I'm not just using the requirements files the agents make. I have steering files that define exactly how the documentation should be written. I have very specific rules defined for confluence and jira and use a local running MCP tool to do it.
Some of this documentation I need to showcase to non technical stakeholders. They wouldn't put up with shitty documentation.
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.
it depends. the only thing AI is objectively better at is writing docs fast. depending on the model it can write garbage documentation which over explains and includes irrelevant context. you still need someone to at least tell it to rewrite/clean up the docs until they're in a state which is human readable.
yes, and that has always been the case with AI. the longer and more thought out the prompt is, the better the result. the problem is that you can't really trust people to do that
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.
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
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!
Yea, if we're being serious ... I have hard policy and we actively emphasize it culturally --- YOU are responsible for the code you commit. If I could mandate away phrases like "my Claude did..." I would.
I whine about it, but accountability exists on this front because I fight hard to establish and maintain it. It's super easy to slip into blaming claude for the fact that you zoned out reading the spec and rubber stamped it.
Did you make documentations? No you didn't, that prompt has long left the agent's context. It no longer exists.
I very quickly learned that we need to establish a process where the important things are set as rules that are read every time, so no, all of it definitely exists in excruciating detail.
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.
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.
yeah I'm in the same boat. i've always taken pride in writing good docs which is easy for people to understand. and I still mostly write docs by hand because AI just does a terrible job of it.
plus, at least to me, it doesn't make sense to write a summary of what I want my docs to say when I already know all the details and can write it better myself.
I had a habit of properly documenting my codes too way before AI. I started coding back in 2016 when I was 16, during HS, using JS to make a Minecraft PE mod. Even then, I was already documenting stuff here and there since I usually use bad practices. Though, even today, I still put docs to functions and classes.
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.
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.
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.
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
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.
"Sorry, you are right. The documentations obviously wrong. I apologize for me mistake. Will execute 'rm -rf * md' no. Oh, there is a mistake in the command, will remove the unnecessary parts of it. 'rm -rf *' successful"
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
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?
I would assume thats what happened with the guy that has that vibe os made. Where you basically prompt and the os would answer with whatever program you wanted.
Because LLMs are language models based on human language (and its ability to describe concepts) and programming languages are specially crafted subsets/dialects of human languages that can be compiled into machine code.
In other words: it's easier to get them to work on human-ish representations (including human-readable docs! traditional computer-readable docs are worse for AI than their human-readable counterparts, once cleaned up and converted into simple Markdown) because they were trained to mimic human language.
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.
2.3k
u/TheFrenchSavage 2d 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.
174
u/nikonino 2d 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.
25
u/com-plec-city 1d ago
THE CODE IS THE DOCUMENTATION. It is right there, just follow my endlessly nested IFs and you'll get it.
3
u/mindsnare 1d 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.
5
u/kamiethenerd 2d ago
I love documentation. Having good documentation means going on vacation without your work computer.
5
u/BogdanPradatu 1d 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.
575
u/alanbdee 2d ago
I still don't write documentation. All I ever do is tell AI in great detail what it needs to do..... wait?
2
u/CharlesV_ 2d 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/SatchTFF 14h ago
I had a habit of properly documenting my codes too way before AI. I started coding back in 2016 when I was 16, during HS, using JS to make a Minecraft PE mod. Even then, I was already documenting stuff here and there since I usually use bad practices. Though, even today, I still put docs to functions and classes.
38
u/LightenUpPhrancis 2d ago
It took AI to get me to bother with tests.
120
u/CowPure6529 2d ago
AI is the developer, AI writes documentation
62
u/gerbosan 2d ago
Now tell AI to generate that
.exe.13
u/Fit-Notice-1248 2d 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.
11
u/slowmovinglettuce 2d 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.
9
u/cuntmong 2d ago
I have been putting "MAKE NO MISTAKES" in my release notes for years, finally someone is actually listening
7
u/PersonalThrowawayxx 2d 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.
47
u/synchrosyn 2d 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.
5
u/Entuaka 2d 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
5
u/wolftick 2d ago
Shit, this looks too much like AI.
Fixed it.
8
u/RageQuittingGamer 2d ago
Create .md file for the changes. Make no mistakes.
8
u/dangderr 2d ago
If by "actually writing documentation" you mean "actually writing 'write documentation' into the prompt", then sure. AI tricked devs into doing that.
4
u/Maltroth 2d ago
Are they really writing it though?
4
u/confusedthrowaway239 1d ago
Unfortunately the result I’ve seen has been ai generated docs which have been awful and useless
7
u/snowystormz 2d 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.
1
u/definit3ly_n0t_a_b0t 1d ago
I fucking hate it, but here we are
6
u/envalemdor 2d ago
Jokes on you developers still don't write documentation, AI does.
3
u/burgonies 2d ago
And tests!
3
u/Hola-World 2d 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/Stunning_Ride_220 1d ago
"Sorry, you are right.
The documentations obviously wrong. I apologize for me mistake.
Will execute 'rm -rf * md' no.
Oh, there is a mistake in the command, will remove the unnecessary parts of it.
'rm -rf *' successful"
3
u/Extension_Head3729 1d ago
our readme finally has real setup steps, it just opens with "you are a senior engineer"
4
u/shitfucker90000 2d ago
uhh yeah the AI is definitely creating the documentation. i would never stoop so low as to document anything
2
u/kolmiw 2d ago
The documentation in question:
“make error fix”
2
u/ugusensei 2d ago
Documentation? Pfft. Got my team finally writing unit tests.
2
u/Random-I-Am 2d ago
I feel personally attacked.
2
u/thefragfest 1d ago
False. Developers aren’t writing that documentation. Claude is.
2
u/TorbenKoehn 1d ago
What? AI writes the code and the docs too, obviously. To be read by the next agent, not by me
2
u/Cyb3rD4d 1d ago
Can’t believe it took AI to trick product owners into actually writing specs
3
u/SirMarkMorningStar 2d ago
AI only changed one, small thing: If you design well enough the code
practicallywrites itself.1
u/conundorum 2d ago
Am I weird for actually using Doxygen?
1
u/mothzilla 2d ago
Add all required documentation to your pull request. Make no mistakes.
1
u/teraflux 2d ago
We still don't write it
1
u/RizzyNizzyDizzy 1d ago
😆😆
1
u/ShodoDeka 1d 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 1d ago
It takes an AI to actually read the docs, so, basically nothing changed.
1
u/Substantial_Craft75 1d ago
Hey claude, can you add comments to each action?
1
u/Canofmayonnaise 1d 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/Fusseldieb 1d ago
I find it quite funny, actually.
Now we're writing better documentation, but in the end... We're writing it for whom?
1
u/kickyouinthebread 22h ago
That's cos the LLM actually reads it haha. If I wrote docs my human colleagues would still just slack me for the answer
1
u/siddus15 20h ago
The trick worked because we're neither truly writing the documentation nor reading it
1
u/sagetraveler 2d 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?
0
u/createthiscom 2d ago
documentation is for the working class to write, the LLMs
0
u/dmk_aus 2d 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
0
u/Alternative-Lynx2745 1d ago
Yeah but you still can't make me read it! Get on a Teams call and explain it to me like a real person!
-2
u/cosmicloafer 2d ago
Having AI is even more reason why you don’t need docs.
-1
u/[deleted] 2d ago
[removed] — view removed comment