this post was submitted on 06 Oct 2026
-97 points (4.7% liked)

Programming

29100 readers
427 users here now

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



founded 3 years ago
MODERATORS
 

recently I gave AI a task to configure a software and the software didn't have any docs of how it works only the source code. the agent went through all the files and generated a summary of how it works and why it's not working for my particular scenario and suggested edits to my docker-compose.yml file. I couldn't believe it since the bug was very hard to find and it used headless firefox to find why it wasn't working.

made me realize do we still need documentation of how a software work when a AI can easily explain it?

top 50 comments
sorted by: hot top controversial new old
[–] not@lemmy.dbzer0.com 42 points 3 weeks ago

Every time you use AI a puppy dies.

[–] TheMightyCat@ani.social 21 points 3 weeks ago (1 children)

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.

load more comments (1 replies)
[–] Pomal@sh.itjust.works 9 points 3 weeks ago (2 children)

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.

load more comments (2 replies)
[–] SW42@lemmy.world 7 points 3 weeks ago

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.

[–] one_old_coder@piefed.social 7 points 3 weeks ago

You're doomed. But do it anyway, more work for me later.

[–] thedeadwalking4242@lemmy.world 7 points 3 weeks ago

I can't wait for LLMs to go the way for crypto. I'm so tired of this bullshit.

[–] thingsiplay@lemmy.ml 7 points 3 weeks ago
[–] RumRunningDevil@lemmy.zip 6 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

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

[–] m532@lemmy.ml 2 points 3 weeks ago

"Everyone who says something I don't like is not human"

Gtfo fash

[–] EpicFailGuy@lemmy.world 6 points 3 weeks ago

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.

[–] atzanteol@sh.itjust.works 5 points 3 weeks ago* (last edited 3 weeks ago)

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).

[–] cyclops@social.moltenaether.com 4 points 3 weeks ago (8 children)

@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

load more comments (8 replies)
[–] FizzyOrange@programming.dev 3 points 3 weeks ago

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:

  1. They show the intent explicitly, rather than having it inferred. Same reason anything explicit is better than implicit, e.g. static types.
  2. It spends fewer tokens to read docs than to constantly reverse engineer software.
  3. It's also quicker.
  4. Sometimes you do still want to understand the thing...
[–] magic_smoke@lemmy.blahaj.zone 3 points 3 weeks ago

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.

[–] Vulwsztyn@programming.dev 2 points 3 weeks ago
[–] cx40@piefed.ca 1 points 2 weeks ago

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.

load more comments
view more: next ›