Every time you use AI a puppy dies.
Programming
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
Yes cause understanding software is important even if you use AI.
And even if you want to go full vibe code and never look at anything yourself the AI does need documentation, compare the performance of an agent on a large project with and without an AGENTS.md, the difference is massive. Without the agent usually does figure it out, but it spends a ton of tokens searching.
How often will an AI explain, with near 90% accuracy, an entire distributed system. Better yet, make it generate documentation for prime95 and see how quickly it melts.
Heres a hot take: as a technology AI (whatever that may mean) can be genuinely useful. In the way it is implemented right now destroying the environment and rising the cost of everything I despise everything that it is. LLMs are the main culprit and the utterly idiotic decision to have one model know everything from embedded coding to ancient Babylonian history.
Neural networks and even specialized small LLMs that I run on decentralized systems are genuinely useful. I use open weight models that I run locally to help with implementing functions from stubs and even do documentation, which it truly is not bad at.
I don’t hate the technology, I hate the greedy dystopian hyper capitalistic environment destroying way it is deployed in. And the way that it is trained by literally stealing the work of creative people.
You're doomed. But do it anyway, more work for me later.
I can't wait for LLMs to go the way for crypto. I'm so tired of this bullshit.
bruh
Move along. This is a bot, likely out of Eglind or any of the other AFBs that are running bot farms astro-turfing for AI
"Everyone who says something I don't like is not human"
Gtfo fash
Putting my personal feelings about AI aside for a second ...
Yes you absolutely 100% still need documentation.
- Documentation should be written by the same team writing the code, sometimes code can be left to interpretation and the original intent can help a lot.
- Documentation has a chain of custody. You can see who wrote it, when it changed and why.
- Documentation is deterministic, if you look something up you will always get the same exact response
- AI that answers your questions is built on documentation. AI cannot produce efficient documentation just based on code, it needs to be fed at least other documentation to know what it's expected.
- Lastly AI is a grey field in the legal world. Everything in the enterprise world has to go thought risk/liability analysis. Let's say AI gets something wrong in the docs and as a result you accidentally delete the prod DB. Who is liable? What happens with your insurance? can you be fired? Can the company sue you for damages?
Disclaimer: these are only my opinions and I'm not even a programmer. I support a dev-ops team in the field of cybersec.
Yes - it's still useful to have docs to refer to.
But it can also be useful to use the AI to generate that documentation if you're not good at it (which I am not) or aren't disciplined enough to keep them up-to-date (which practically nobody is).
@bruh Of course, we still need documentation. What happens when you run out of credits for your AI assistant, or, worse yet (as I believe is coming personally), what happens when the bubble bursts, the price skyrockets, and none of us can afford it anymore?
All of that being said I'm going to have to try that on my own system. I'm having some issues with Wiki.js
There's a lot of people here that clearly haven't ever tried what you're describing op (or maybe tried recent AI at all).
I have. I think it's a totally valid question. Sometimes when I'm getting AI to do stuff it reads the docs and then tries stuff anyway and finds the docs are wrong.
I also often use AI to generate docs for undocumented things.
But I think it does still make sense to have docs for a few reasons:
- They show the intent explicitly, rather than having it inferred. Same reason anything explicit is better than implicit, e.g. static types.
- It spends fewer tokens to read docs than to constantly reverse engineer software.
- It's also quicker.
- Sometimes you do still want to understand the thing...
Dawg get the fuck out of software and go get an MBA like you should've in the first place.
Money-chasers should stick to their own fucking lane. You're fucking this up for those of us that actually like tech work. Fuck me.

In my opinion, the purpose of documentation isn't just documenting. It's a contract. It tells you what parts of the API are meant to be user-facing and that the devs will try to keep backwards compatible from one release to the next.