-91

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 new old
[-] Vulwsztyn@programming.dev 2 points 2 hours ago
[-] EpicFailGuy@lemmy.world 5 points 19 hours 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.

[-] thedeadwalking4242@lemmy.world 5 points 1 day ago

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

[-] thingsiplay@lemmy.ml 8 points 1 day ago
[-] FizzyOrange@programming.dev 3 points 1 day 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...
[-] not@lemmy.dbzer0.com 43 points 2 days ago

Every time you use AI a puppy dies.

[-] TehPers@beehaw.org 13 points 1 day ago

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

I'll respond for the sake of argument, but to put it bluntly: there are no stupid questions, just questions phrased stupidly.

Documentation comes in many formats. There's prose documentation split into articles and chapters, there's video documentation, inline documentation for code, tutorials, training, and so on. Most things are documented several ways. This is because people learn things differently from each other.

To remove documentation entirely and rely on only LLMs to document removes all of the ways that people might learn and narrows it down to only one form of documentation. Even if we ignore how fallible LLMs can be, having documentation in only a single format limits learning only to those who learn effectively through that format.


In other words, relying only on LLMs for documentation discards all of the millenia of teaching strategies learned throughout the course of human history and puts it in the hands of a stochastic magic box that is incapable of recreating those strategies.

[-] bruh@thelemmy.club 5 points 1 day ago

That makes sense! Different people learn in different way so we need different people's words on the same topic to have diverse view on subject.

Good point

[-] Feyd@programming.dev 36 points 2 days ago

A new account making extraordinary claims about AI and phrasing it as a question? Again?

[-] YaBoyMax@programming.dev 11 points 1 day ago

As much as I can't stand AI fanatics, I think some of the anti-AI rhetoric (especially on Lemmy) can be just as dogmatic. OP didn't make any "extraordinary" claims. LLM agents have actually gotten remarkably good at many programming tasks, in particular tracking down bugs, and some of the things they're able to work out are genuinely impressive. At the end of the day it's another tool, but it can be a powerful one in the right context.

That's not to say anything about the environmental, social, and economic issues surrounding the tech and the industry. Obviously large companies are acting completely recklessly in all of those domains and I don't intend to justify that aspect. That said, I think it's disingenuous to frame OPs post as "making extraordinary claims" and it detracts from legitimate (and IMO mostly unimpeachable) arguments against AI.

load more comments (3 replies)
[-] atzanteol@sh.itjust.works 2 points 1 day ago

This is not an extraordinary claim if you've used a good LLM in the last, say, year.

[-] spartanatreyu@programming.dev -1 points 1 day ago

That's right, move those goalposts!

[-] FizzyOrange@programming.dev 2 points 1 day ago
[-] spartanatreyu@programming.dev 3 points 13 hours ago

"You're not using the latest model", "You're holding it wrong", etc...

It's the same shit, different day.

I'm consistently told LLM generated code is the best thing since sliced bread, and people keep handing me "proof", yet every time I open what they've handed me, I see a shit sandwich.

And as soon as I point that out, the goalposts are moved yet again, ad infinitum.

[-] FizzyOrange@programming.dev 1 points 6 hours ago

I think the effect you're seeing is that different people have different levels of "good enough", and also they work in different domains where AI became good enough at different times. E.g. for one-off web page design it's been good enough for a long time.

I never said this for earlier models, because they did suck for things like Rust and SystemVerilog. Now they don't.

I'd share some things I've vibe coded that work basically perfectly but they're linked to me real name, but you could have a look at the Mold linker which was recently vibe-ported to Rust.

[-] atzanteol@sh.itjust.works -2 points 13 hours ago

You do understand that this is a rapidly developing technology right? That it's getting better weekly?

It's clear you have no idea what you're talking about. You can't just bury your head in the sand and tell yourself that LLMs are still just "advanced autocomplete" anymore.

[-] spartanatreyu@programming.dev 3 points 11 hours ago

It’s clear you have no idea what you’re talking about. [...] You do understand that this is a rapidly developing technology right? That it’s getting better weekly?

This is literally the retort that moves the goalposts.

You can’t just bury your head in the sand and tell yourself that LLMs are still just “advanced autocomplete” anymore.

I made no claim that LLMs haven't changed, I make the claim that others are making claims that fall apart once examined.

The claims others make:

  1. AI is amazing because now it can make this thing

  2. Oh, the only reason doesn't hold up to scrutiny this one time is because of {insert goal post moving here}.


Argument 1 falls apart when looking inside the product (i.e. the shit sandwich, the slop grenade, etc...).

Argument 2 is circular, so I'm not going to waste time on it.

But just for the sake of argument, lets say there's some sudden release of a model tomorrow that runs one million times better than today's best model and everyone only uses that model from now on. Will I still be handed a shit sandwich?

Yes.

Why?

Because the fact that I'm handed a shit sandwich isn't influenced by how good the model is. It's based on the fact that English is a terrible language for logic.

We discovered this in the 60s and 70s. Computer programming was too hard in the 50s and only getting harder, so everyone got together and tried to make a programming language out of English, that way everyone could do it. That's literally how the Cobol language came to be. It was sold to everyone on the idea that anyone could create something with a fuzzy human readable language called English.

What did we learn? English is both a terrible programming language and a terrible specification language, Non-programmers (managers, general workers, etc...) fall prey to things like the xy problem, understanding gaps, intention gaps, etc... and so can't end up with a new good product by giving orders. The scars of that delusion are still felt in our banking system today. Every lesson learned by Non-programmers in the goal of getting a good program turns them lesson by lesson into programmers, and at that point you're just programming by hand anyway.

The same lessons were rediscovered in the 80s by people trying to program by spreadsheets and GUI-only app builders, the 2010s with the no code movement, it's currently being rediscovered in the 2020s with LLMs, and it'll be rediscovered again by a new generation in the 2040s once those with the experience and learned wisdom of last time retire out of the industry and the few remaining are outnumbered and dismissed as religious zealots.

[-] atzanteol@sh.itjust.works 0 points 9 hours ago

Literally not moving the goalposts.

[-] atzanteol@sh.itjust.works 3 points 1 day ago
[-] spartanatreyu@programming.dev 1 points 13 hours ago

I responded in the other comment

load more comments (8 replies)
load more comments (10 replies)
[-] TheMightyCat@ani.social 19 points 2 days ago

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)
[-] SW42@lemmy.world 7 points 1 day 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 10 points 2 days ago

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

[-] RumRunningDevil@lemmy.zip 7 points 1 day ago* (last edited 1 day ago)

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 1 points 1 day ago

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

Gtfo fash

[-] Pomal@sh.itjust.works 9 points 2 days ago

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)
[-] atzanteol@sh.itjust.works 4 points 1 day ago* (last edited 1 day 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 5 points 2 days ago

@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)
load more comments
view more: next ›
this post was submitted on 06 Oct 2026
-91 points (3.1% liked)

Programming

28739 readers
580 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