News for hackers. Stuff that matters.
Re:What Docs-as-Code Means by cheschire on Sunday October 20, 2024 @07:55AM (#41894761)
This feels like a job ripe for startup disruption.

LLM documentation generators tend to benefit from context, and nothing provides better context than a mostly functional code base. The best part is the code doesn’t even need to compile for the LLM to build the context needed.

Re:What Docs-as-Code Means by remoquete on Sunday October 20, 2024 @08:05AM (#41894798)
Author here. No, I don't think it does. https://passo.uno/ai-anxiety-tech-writer-howto/
Re:What Docs-as-Code Means by cheschire on Sunday October 20, 2024 @08:13AM (#41894836)
You're speaking from a position of survivorship. The jobs you've been hired to perform give you confidence. It's all the jobs you haven't been hired for that I'm more focused on.
Re:What Docs-as-Code Means by remoquete on Sunday October 20, 2024 @08:24AM (#41894880)
And the resulting failed documentation, I guess.
Re:What Docs-as-Code Means by chaffroomba on Sunday October 20, 2024 @08:41AM (#41894976)
Problem I'm having as a developer with LLM documentation is their reliability, or rather lack of it. Every time there is an assertation I end up having to double-confirm it because they tend to be wrong as often as they're right. Reading imaginary hallucinated documentation is just about as useful as zero documentation.

While I could keep doing this for the rest of my life, my employer doesen't really appreciate the extra expense. A technical writer is much, much cheaper than the dozens of developers trying to confirm the docs.

Re:What Docs-as-Code Means by exe34 on Sunday October 20, 2024 @08:51AM (#41895038)
> Reading imaginary hallucinated documentation is just about as useful as zero documentation.

no, it's worse. it's closer to reading outdated documentation that outright lies and gives examples that don't work, and will cause you to waste hours/days learning things that aren't relevant to the api anymore.

Re:What Docs-as-Code Means by joshuanapoli on Sunday October 20, 2024 @08:48AM (#41895018)
I think we will go the other way: A person will write the documentation and the AI will build the system that delivers the described product.
Re:What Docs-as-Code Means by chaffroomba on Sunday October 20, 2024 @08:59AM (#41895083)
Isn't that what sw development today is? A description of a system and what we want it to do. With the advance of compilers, libraries, frameworks, linters, autocomplete systems and so on, we're already very close to describing the minimum amount of information the system needs in order to produce the correct result. To my knowledge actually physically writing the software has not been a bottleneck in a very, very long time.
Re:What Docs-as-Code Means by joshuanapoli on Sunday October 20, 2024 @02:25PM (#41897416)
Right now, it takes skill and labor to move descriptions between representations for business goals, engineering (where we have frameworks and linters, etc.), and external/customer facing documentation.

The customer is faced with an output from the design process. I think that we can turn that around now. Let customers edit part of the documentation, and let the AI adapt the system to their need.

Re:What Docs-as-Code Means by philipwhiuk on Sunday October 20, 2024 @05:20PM (#41898567)
Re:What Docs-as-Code Means by euroderf on Sunday October 20, 2024 @09:24AM (#41895220)
I would think that Requirements Engineering would be the ideal prep for AI code generation. A natural language counterpart to (e.g.) TLA+.

Is this too damned obvious? Or am I missing something?

Re:What Docs-as-Code Means by smokel on Sunday October 20, 2024 @09:00AM (#41895089)
The main problem is that documentation should be written on why code is written the way it is, and why it exists in the first place. This context is typically not available in the code itself. In the best case, this is encoded in requirements and design documentation, but more often than not, the information remains only in the heads of customers, architects, and developers.

The code itself merely describes how something is solved. Summarizing that in documentation can be useful at times, but it is not the full story. Especially for code that lives on for some time, the original design philosophy is often lost, and it is forced in horrible directions.

Re:What Docs-as-Code Means by spencerchubb on Sunday October 20, 2024 @08:29PM (#41899670)
This article mostly seems to be about documentation for users of the code, not documentation within the code.
Re:What Docs-as-Code Means by janice1999 on Sunday October 20, 2024 @09:04AM (#41895114)
Code doesn't capture architectural decision making, one of the most important being why other solutions were not used. LLMs would need to be nearly omniscient (understanding underlying hardware, customer needs, budgets even) to derive the reasoning behind those decisions afterwards from code alone.
Re:What Docs-as-Code Means by from-nibly on Sunday October 20, 2024 @09:09AM (#41895135)
A source code repository is actually a terrible place to get that context. All of the things like decisions and how this relates to the customer are completely missing.
Re:What Docs-as-Code Means by Etheryte on Sunday October 20, 2024 @09:51AM (#41895358)
This completely misses what valuable code documentation is for. Anyone can read the code and figure out what it does, what as a documentation can be convenient, but it's not really all that useful, especially if it rots over time. Even if it's painful at times, the what is all there in front of you in the code. Valuable documentation explains the why, why was one approach chosen over another, why do we need to do this to begin with, why are the edge cases the way they are. This information is not present in the code and no tool can ever extract it since it isn't there.
Re:What Docs-as-Code Means by keybored on Sunday October 20, 2024 @06:32PM (#41899038)
> LLM documentation generators

I can’t wait for the LLM digression-generators to quit.