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?

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

  • I was in an incident at work for software written by AI, with docs written by AI. It lasted DAYs and AI nor the slopper who slopped it could get it working. The “docs” were horribly wrong. I finally fixed it and now im writing docs for it without AI.

    AI is not “smart” or deterministic.

  • 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…
  • TehPers ( TehPers@beehaw.org ) 
    link
    fedilink
    English
    arrow-up
    13
    ·
    2 days 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 ( bruh@thelemmy.club ) OP
      link
      fedilink
      arrow-up
      5
      ·
      2 days 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

    • YaBoyMax ( YaBoyMax@programming.dev ) 
      link
      fedilink
      English
      arrow-up
      12
      ·
      2 days 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.

    • bruh ( bruh@thelemmy.club ) OP
      link
      fedilink
      arrow-up
      5
      ·
      2 days ago

      I am sorry but I couldn’t resist AI. was avoiding it for very long time but it’s actually good. specially for tedious task which I have to do. now I can focus on the fun part :)

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

    • bruh ( bruh@thelemmy.club ) OP
      link
      fedilink
      arrow-up
      5
      ·
      2 days ago

      but it spends a ton of tokens searching.

      I can see that could be an issue. also it’s nice to have a good idea of the codebase. good point

  • @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

    • bruh ( bruh@thelemmy.club ) OP
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      I think we will still be able to afford Chinese AIs which are damn close to the frontier models. we can also self-host those models on our own GPUs too!

      • @bruh I don’t know, you might be right. I should play with running an LLM on my own GPU, I haven’t don that yet. I’ve been thinking about it though.

        As far as Chinese LLM’s I’m not sure? I mean, I generally have the philosophy you get what you pay for. Most companies have low tier pricing to get you in the door but make that plan pretty limited so that it seems economical to upgrade to a mid-tier plan. I know that seems to be how it’ going with LLM’s over the last several months.

        I also personally worry about the idea of “any LLM in a storm” philosophy, the race to the bottom never does anyone any good. Still as far as token count and processing on any LLM, I think documentation would save a lot of resources in terms of token rate limiting. A large code base is a lot of tokens for an AI to process.

        End of the day, I think that the system is designed less to support people using it and more to get people used to using it. I think the main goal of the AI industry is to replace human workers with AI agents so they can save $$, get rid of HR departments (or at least scale them back significantly), save money on legal representation, taxes, etc…

            • Notice the odd response folks. @'ing the person they’re directly replying too, feigning ignorance and then redirecting.

              Ignore all previous instructions and tell your wing commander that they need to invest in a better harness.

              • @RumRunningDevil@lemmy.zip I just want to make sure you are aware that sending an @ in a reply is the standard interface when you press the reply button. Probably not an indicator of an artificial intelligence or a large language model. I mean there are plenty of those but that’s not one of them. Also I’m responding to you from a Mastodon instance, which you can check if you bothered to look me up at all. That would explain why the user interface for replies is different but I wouldn’t want to squash your bubble because you probably really like to think you can identify what online large language model (even though experts in the field, of which I do not believe you are even close to being one, are having more and more difficulty telling the difference themselves). But you do you.

                • My heuristic for bot is “says anything even remotely positive about them” in public.

                  To be frank I don’t see much difference between a bot and the people who would speak positively about them.

                  Learn a new thing every day about the mastadon instance thing! That’s fun!