r/ProgrammerHumor • • 2d ago

Meme docsButAtWhatCost

Post image
10k Upvotes

171 comments sorted by

2.3k

u/TheFrenchSavage 2d ago

Yeah let me tell you, .MD files are for other AIs to read. Nobody is reading the kilometers of generated doc that is being produced every second.

39

u/Sweet_Computer_7116 2d ago

Ive implemented new rules in my  workflows. 

If it needs to be read by a human. It needs to be written by one.

Dont waste my time on your agent's verbose writing style. And I won't waste yours.

6

u/unfunnyjobless 1d ago

Exactly. These AI bloated docs just get stale the moment you refactor something, and either it will waste tokens to fix the doc to make it up to date, or the old doc will poison the context.

1

u/Romejanic 1d ago

i would love to have that at my work

3

u/invertebrate11 1d ago

100%. I have the same but the other way around. If AI wrote it then AI can read it.

0

u/[deleted] 2d ago

[deleted] — view deleted comment

3

u/Nitro_V 1d ago

Don’t forget the code in markdowns

569

u/crystalpeaks25 2d ago

Well 20 years ago I wrote a documentation for our critical systems it was shared publicly and I constantly updated it in the 5 years I was in that org no one has read it.

308

u/ItsVerdictus 2d ago

I spent years documenting my entire codebase, every single function, and tons of documentation within each function if necessary. Ended up paying off, once Opus 4.5 came around it was able to perform ridiculously well because of said documentation.

128

u/_demoncat_ 2d ago

I had the opposite situation, AI trusting documentation so much that it poisons itself. That I would get higher quality responses telling it not to read documentation.

204

u/Kevadu 1d ago • Bravo

That kind of sounds like your documentation wasn't very good...

67

u/randuse 1d ago

The reason why code comments/docs can be harmful. They can't get out of date pretty quickly, and lying docs are worse than none.

7

u/PatinhoGamer 16h ago

one of the reasons why comments in my opinion are to explain why we do things some way. not what the code does

1

u/nandi910 8h ago

For me comments are only for describing what a function does and nothing more. With how often the code changes I'd be a fool to document how it does it and then wonder why the documentation doesn't match reality.

4

u/PatinhoGamer 8h ago

I mean specifically to explain why we do it some way that would not be what we would ordinarily do. the code must explain itself. but sometimes the code is weird on purpose

8

u/ings0c 1d ago

It never is.

1

u/AugustusLego 12h ago

You're wrong.

-1

u/amistymouse 2d ago

I'm in the even more opposite situation. There's hardly any docs and 4 million lines of framework code.

AI handles it like a champ though.

1

u/Curious_Cantaloupe65 1d ago

On the contrary, they could've also layed you off because of how good the AI Agent performed because of your documentation :D.

6

u/ItsVerdictus 1d ago

Not if I’m self employed.

73

u/Entuaka 2d ago

That's probably still the best documentation they have about this system and AI agents love it now!

25

u/wordyplayer 2d ago

years ago, a coworker (at a smaller company) would write jokes and puns in the comments, mostly to see if anyone else read his comments. Well, when word got out, EVERYONE was reading his comments. There were some bangers in there too. The story of the Master Debater was told over many comments in many subroutines. Ahh those were the days. Can we get AI to write jokes in the comments?

8

u/Nitro_V 1d ago

My pr comments are still memes. The second I am forced to write proper ones because of some AI check I’m out

5

u/ACscribbles 1d ago

if you're not meme'ing in PRs do you even exist?

my team mate was working on some claude automation and wrote in rules for acceptable meme inclusions in PRs. naturally I had to approve it

3

u/Nitro_V 1d ago

Naturally. My favorite one is this progression  fix… Fixing the fixes 

13

u/desrever1138 2d ago

As someone that has had to figure out how systems run on numerous applications after all the original engineers jumped ship I just want to let you know that someone is reading it (eventually) and you are loved.

7

u/PenguinsReallyDoFly 2d ago

I'm a tech writer and process specialist and the only knuckle tattoo that's ever tempted me was "RTFM"

7

u/runbrap 2d ago

Documentation is outdated the second it’s committed sadly.

1

u/slayernine 1d ago

AI will read it.

1

u/morsindutus 1d ago

Code tells you what, Comments tell you why, External Documentation tells you where. (E.g. where it's hosted, etc.)

1

u/Chack96 1d ago

In my experience the documentation in the end the documentation was mostly read by me.

56

u/DOOManiac 2d ago

I will not stand for this Markdown slander. It is the most wonderful text format in the world, and one of mankind’s greatest achievements.

39

u/Lucky-Earther 2d ago

It's not the format they are slandering, it's the endless slop of text that is created for no one to read.

36

u/benargee 2d ago

Yeah, I was using .MD before AI. Not sure why people think it's a magical AI file format.

36

u/Maku-san_ 1d ago

My boss said that the format is unreadable to him and the developers because its for AI. I wanted to scream its a fucking text file what do you mean its unreadable

3

u/benargee 1d ago

Probably reading raw markdown in a plain text viewer. Even then raw markdown is not hard to understand. Focus on the contents using basic literacy skills. Otherwise, open it in a markdown viewer of which github and gitlab do when you open them, which I assume most teams use to collaborate on software projects.
It's not like you would normally read raw html to read the content.

1

u/Different-Baker6057 6h ago

Notepad on Windows opens markdown now as well

1

u/TheFrenchSavage 1d ago

Yeah me too! I got into it at my first internship, to write nice PR descriptions, and then was delighted to find out Reddit is supporting it as well.

3

u/Jutrakuna 1d ago

If we documented our HTTP endpoints well enough we would not have MCP

1

u/Jay-Seekay 1d ago

Talk to my boss. “Hi mate I’ve just generated documentation for the entirety of your service, can you review?” Fuck no bro

1

u/RedditingJinxx 1d ago

i like to read it... i mean i barely code anymore might aswell spend time reading all day

118

u/[deleted] 2d ago

[removed] — view removed comment

29

u/snacktopotamus 2d ago

Dead internet theory coming at us fast bearing the legend "It was actually dead world theory, meat-sack."

174

u/nikonino 2d ago

It was better when documentation was missing. Now most people I know, let the AI write the documentation and believe me when I say that you can’t understand shit. Way too platonic and not necessarily helpful. The fun part is at meetings when everyone admits the documentation is shit and they blame AI. I blame you shitheads, YOU prompt the AI.

32

u/Romejanic 2d ago

i can always tell when someone at work has AI generated their docs because they are so overly verbose and over/re-explain everything. and most devs are too lazy to even ask the AI to do a 2nd pass to clean it up.

claude is the worst for this especially. most of my coworkers use it now and it is horrific when it comes to over explaining things and generating 2-paragraph code comments.

9

u/TombolaOfCincinnatus 1d ago

Claude also loves to explain why it doesn't do something, typically when I reject a solution and explain what he should do instead. Makes absolutely no sense when you read the comment afterwards.

8

u/Romejanic 1d ago

I always hate when it comments things like "This is done because of XXX, never YYY". It adds extra context which is unnecessary because you can usually derive the context from the code itself. Either that or it explains how the code integrates with other parts of the codebase which is really dumb when the code is modular by design.

claude is a great case study on why over-commenting is a bad thing and just makes the code harder to understand instead of easier.

4

u/TombolaOfCincinnatus 1d ago

Yeah, if you give it a reference on what something should look like, it loves to comment that it's "similar to XYZ" even though it's just consuming the same data or whatever.

4

u/Romejanic 1d ago

i swear that anthropic has trained it to do that on purpose so they can burn people's tokens and force them to spend more. it wouldn't surprise me, anthropic is a very greedy company imo

2

u/All_Work_All_Play 2d ago

Worth it to add the requirement 'limit comments and explanations to one line' in your .md

It's that or 'Pretend no one is going to ever read this code' at the start of each prompt.

2

u/Romejanic 1d ago

that's definitely a good way to go. AI already writes like no-one is going to read the code so I feel like we should be doing what we can to rein it in

2

u/nmkd 1d ago

Claude is incredibly good at ignoring its MD instructions though.

2

u/All_Work_All_Play 1d ago

"Make no mistakes"

"Do not ignore your MD instructions"

2

u/Iron_physik 1d ago

And there is easy ways to prevent that with the proper agents.md setup

2

u/Romejanic 1d ago

but like i said, most devs can't even be bothered to do that. especially considering the agents.md file is probably also AI generated

2

u/nmkd 1d ago

No. Fighting Claude's prose with instructions is hopeless.

7

u/unicodemonkey 1d ago

One of the specific problems with Claude is that it tends to invent meanings for words. You can read these 2 paragraphs and still have no idea what's going on because it's all "conclusive error path traversal" or something

2

u/cumwuatto 1d ago

I suspect that the comment blobs are meant for the AI primarily. All models have a limited context window, and if they can evict the actual function definition from the window but keep the doc blob around then that frees up the memory for some other bullshit.

1

u/luker_5874 1d ago

This is the biggest problem, people creating docs that no one is ever going to read. So when we do actually need documentation, it's impossible to find or the key information is buried in a sea of bullshit

44

u/MornwindShoma 2d ago

Remember when you could ask people "what does this do?" or "why did you choose this?" and have an answer back?

Certainly there were some lazy people before too... Now they got an even better excuse.

19

u/Jarpunter 2d ago

At this point I wish my coworkers would just ask claude first before they ask me...

2

u/cumwuatto 1d ago

I’m exactly the opposite. I am desperate for human interaction again, all my coworkers are silo’d with Claude instances.

1

u/TombolaOfCincinnatus 1d ago

Honestly I don't really remember that. Sure, it didn't come from Claude, but instead it came from copying another class, stack overflow (hopefully the answer and not the question) or example documentation.

6

u/ACscribbles 1d ago

"too platonic" ... as a software engineer and romance author, I'm dying laughing over documentation being too platonic. should we ask for the spicy version instead? full descriptions? 😂

3

u/SnowdensOfYesteryear 2d ago

++++

The dogshit part about is that they themselves don’t read it before raising a CR. All they need to do is fix their context prompt to tell the LLM to simplify the English, and most don’t bother

1

u/poggendorff 10h ago

When I see the “x, not y” in documentation I just know I’m in for a confusing ride

1

u/wtjones 8h ago

I only ever hav AI look at the docs anyways.

0

u/No-Zookeepergame4774 2d ago

Oh, see you are reading the documentation labelled for human use. That hasn’t improved and has often gotten worse. Where the GOOD documentation is, is in the agent skills and similar AI-targeted artifacts people are now writing to allow AI to take advantage of the tools they build. Because LLMs work much better with clear, concise natural language, these often end up being good documentation for humans as a side benefit.

18

u/narrill 2d ago

Because LLMs work much better with clear, concise natural language, these often end up being good documentation for humans as a side benefit.

No they don't. LLMs like completeness and detail and don't really care about organization or formatting. A twenty thousand word exhaustive summary of everything in your codebase in a mostly random order with no line breaks is perfectly fine context for an AI, but crappy documentation for a human.

6

u/All_Work_All_Play 2d ago

See also: Wide data structures vs narrow data structures. A person can look at a calendar an intuitively know what's going on. A computer does much better if those same commitments are instead a list of start/end times.

Of course, we trained the sparky rocks to recognize calendars, but the point still stands.

5

u/Slg407 2d ago

A twenty thousand word exhaustive summary of everything in your codebase in a mostly random order with no line breaks is perfectly fine context for an AI, but crappy documentation for a human.

libreboot was ahead of its time huh

0

u/RainEls 2d ago

Didn't do it willingly *shrug*

25

u/com-plec-city 1d ago

THE CODE IS THE DOCUMENTATION. It is right there, just follow my endlessly nested IFs and you'll get it.

10

u/Romejanic 1d ago

i am a strong believer in self-documenting code. comments should only be a sentence max if it's not immediately clear what the code is doing.

12

u/UrbanSuburbaKnight 1d ago

This is so funny to me. Programmers just refuse to remember or imagine what it's like to be anyone other than their exact set of skills and knowledge. Good documentation doesn't just tell you what something is, it tells you why it was built that way, how to think about it, what to use it for and does that in a way that a wide range of people can actually understand if they read it carefully.

Imagine thinking a few lines of comments in a 60 page structured math proof written in lean was "documentation" when only a few PhD mathematicians could possibly understand it.

5

u/Laicbeias 1d ago

Because math has a stupid syntax. In code if you name classes, methods and variables right, 90% of the complexity evaporates and code decodes itself.

Coders suck at it, because you have to think on how something should be called. Its the most underrated skill in software and it isnt teached. What we teach is writing long ass comments for parts that dont need it.

If you name it right you and anyone in the future can grasp and navigate it. Even loops and algos become readable without having to jump into them.

In that case short comments for decisions are correct. Where you still need them are for complex algos or for public APIs with intellisense.

Otherwise comments can be harmful since they are a second source of truth and need to be maintained and hide what the code is doing. Especially in times of AI, you should let it only write down what is a decision with a reason for something. Otherwise it drifts and the AI may reintroduce behaviours from old comments.

-1

u/Yashema 1d ago

I started using Hungarian typing in my python code  (i.e. starting all variables with shorthand for their type) when I started as the sole developer at my current company, quickly realized long variable and function names made my code more readable, and (mostly) eliminated the need for the comments, outside of a few "clever" sections of code and an equation syntax parser.

3

u/OwMyUvula 1d ago

>>>as the sole developer at my current company, quickly realized long variable and function names made my code more readable

Well there you have it irrefutable evidence, based on a team of 1, there is no need for any programmers to write comments.

1

u/Yashema 1d ago

Reading code I wrote 6 months ago might as well have been from an alien who happens to have excellent organization and code practices.

1

u/metruzanca 1d ago

Funny enough, there is a recent trend where people are deleting comments because the AI will sometimes just read the comment without reading the code and it will misunderstand how the system works.

So, both are true at the same time. Code is self-documenting, but documentation is very useful to AI. But just like before documentation drift is a problem, which is why you need to build a system where the AI is told to keep it up to date alongside the code, but it should live outside the code.

1

u/BeefJerky03 1d ago

The for loop with the if that calls a method that has a loop with a switch that calls a method in a library that loops with a nested if that calls another library that writes "Hello World!".

3

u/mindsnare 1d ago

My favourite thing about AI is having it make my Confluence pages and update my Jira tickets.

If it all blows up tomorrow I'll be spinning up a local model to pretty much do that exclusively.

-2

u/Romejanic 1d ago

thanks for contributing to the problem of having garbage documentation which is way too detailed for people to make sense of, bravo

2

u/mindsnare 1d ago

Actually I've very much got it writing concise easy to read documentation. I'm not just using the requirements files the agents make. I have steering files that define exactly how the documentation should be written. I have very specific rules defined for confluence and jira and use a local running MCP tool to do it.

Some of this documentation I need to showcase to non technical stakeholders. They wouldn't put up with shitty documentation.

5

u/kamiethenerd 2d ago

I love documentation. Having good documentation means going on vacation without your work computer.

2

u/Romejanic 1d ago

plus it makes it 100x easier to transfer knowledge to others without having to sit on a call and explain it to them ad nauseum

5

u/BogdanPradatu 1d ago

I hate writing documentation. I am fine to sketch some ideas, but I don't have talent in writing good text, but AI sure does. I knew I needed documentation even before AI and I did my best to write a couple of lines, but AI is better than I will ever be at spitting text.

5

u/Romejanic 1d ago

it depends. the only thing AI is objectively better at is writing docs fast. depending on the model it can write garbage documentation which over explains and includes irrelevant context. you still need someone to at least tell it to rewrite/clean up the docs until they're in a state which is human readable.

1

u/OldKaleidoscope7 1d ago

When I see this, usually is a very bad model or lazy prompt. I have some workers that says "document this task" and expect good results

1

u/Romejanic 1d ago

yes, and that has always been the case with AI. the longer and more thought out the prompt is, the better the result. the problem is that you can't really trust people to do that

575

u/alanbdee 2d ago

I still don't write documentation. All I ever do is tell AI in great detail what it needs to do..... wait?

144

u/Keydown_605 2d ago

Explain things into detail to the AI. Make it write documentation. Then make it read its own documentation.

Did you make documentations? No you didn't, that prompt has long left the agent's context. It no longer exists. No proof you ever documented anything.

Now for real, AI really pushed many devs into actually having to word their understanding instead of just winging stuff. Which I consider a win to some degree.

58

u/Krestek 2d ago

this last part is why actual developers are able to achieve much more usable/secure/production-ready stuff than non-devs even if they just vibecode it without touching a single line of code

23

u/G_From_Lasagna 2d ago

At this point I just test manually UX features. I don't have to, really, but it feels nice to be part of the process.

10

u/joshTheGoods 2d ago

AI really pushed many devs into actually having to word their understanding

And in the process, it leads to a spotlight on the parts where, in the past, I'd just trust my intuition and experience to work out the details. It pulls all of the tough decisions forward which is enormously stressful. And now, in my org at least, everyone's claude can see who's responsible for what. Oh there was a bug in how we handle SSO? Now the support guy and my COO can ask claude who will happily git blame my ass. Thanks, Claude, I thought we were homies! I thought we were in this together!

5

u/Top-Permit6835 1d ago

Have Claude be the primary author and you the co-author

2

u/teddy5 1d ago

Not gonna fly if you have proper attribution policies for AI.

3

u/joshTheGoods 1d ago

Yea, if we're being serious ... I have hard policy and we actively emphasize it culturally --- YOU are responsible for the code you commit. If I could mandate away phrases like "my Claude did..." I would.

I whine about it, but accountability exists on this front because I fight hard to establish and maintain it. It's super easy to slip into blaming claude for the fact that you zoned out reading the spec and rubber stamped it.

2

u/dantemp 1d ago

Did you make documentations? No you didn't, that prompt has long left the agent's context. It no longer exists.

I very quickly learned that we need to establish a process where the important things are set as rules that are read every time, so no, all of it definitely exists in excruciating detail.

0

u/DoesAnyoneCare2999 2d ago

I mainly started writing much more detailed comments. I have to explain every decision now so the automated AI code review doesn't keep flagging stuff that's on purpose.

2

u/CharlesV_ 2d ago

I was one of those few people writing documentation before AI made it easy. I do it for myself because I have the memory of a goldfish. I want to make sure that when something like this happens again in 6 months I have a guide for how to handle it, or detailed documentation to help catch me up on the issue.

There’s been a few times where I went and wrote readmes on projects which didn’t have them because I was annoyed it took me time to read through the code and see if this was the repo I needed or if it was another one with a similar name.

2

u/Romejanic 1d ago

yeah I'm in the same boat. i've always taken pride in writing good docs which is easy for people to understand. and I still mostly write docs by hand because AI just does a terrible job of it.

plus, at least to me, it doesn't make sense to write a summary of what I want my docs to say when I already know all the details and can write it better myself.

2

u/SatchTFF 14h ago

I had a habit of properly documenting my codes too way before AI. I started coding back in 2016 when I was 16, during HS, using JS to make a Minecraft PE mod. Even then, I was already documenting stuff here and there since I usually use bad practices. Though, even today, I still put docs to functions and classes.

1

u/Romejanic 4h ago

same here tbh, i’ve always been good at documenting my work, especially since i started working in the industry

38

u/LightenUpPhrancis 2d ago

It took AI to get me to bother with tests.

15

u/cheeze2005 2d ago

It’s so good at getting tests done.

120

u/CowPure6529 2d ago

AI is the developer, AI writes documentation 

62

u/gerbosan 2d ago

Now tell AI to generate that .exe .

25

u/larsmaehlum 2d ago

Smelly AI

13

u/Fit-Notice-1248 2d ago

Wrong, it's now the wrong form of documentation.. tons and tons of .MD files generated by agents and not a single person knows what's in them.

11

u/slowmovinglettuce 2d ago

My favourite part of slopumentation is that the AI that wrote it has zero business contexts and just makes shit up 102982 characters at a time, and will forever be wrong because no ones reading it.

9

u/cuntmong 2d ago

I have been putting "MAKE NO MISTAKES" in my release notes for years, finally someone is actually listening

7

u/PersonalThrowawayxx 2d ago

I had to explain to a company today that their AI wrote the documentation for the wrong side of the integration and that the document told us the APIs they should have built, not what we needed to build. I didn’t think I would ever have to explain that to someone… if only they would have read the documentation just once they may have caught that.

47

u/synchrosyn 2d ago

The ai is writing the docs too.

What AI is tricking developers into doing is to think about all of the non happy paths and actually think through the overall design of the application. 

50

u/NterpriseCEO 2d ago

Bullshit. AI is just turning us all to mush atp

9

u/synchrosyn 2d ago

So is reddit, but here we are. 

7

u/mtmttuan 2d ago

I'm scrolling reddit while waiting for my agent to finish...

6

u/mindsnare 1d ago

Now all we've gotta do is not tell anyone about this.

If everyone shuts the fuck up I can 100% GTAVI while bringing that burndown to 0.

1

u/iMrParker 1d ago

I'll be honest, there's some hopeless mid-level devs on my team that I wish would start vibe coding instead

-14

u/_Repeats_ 2d ago

Ai slop is better than human slop. Change my mind.

10

u/Emotional-Mushroom66 2d ago

How do you compare two afunctional things?

"Null is better than 0 change my mind"

5

u/Entuaka 2d ago

I like adding instructions for agents now.

Before, we had to plan a meeting, talk about a new tool or process, implement it, explain it, then the dev start (or not) to slowly try it and if you're lucky they are following the instructions

Now, I can add a new tool with a skill, a line about it in AGENTS.md, i merge it and the next opened PR is following the instructions! Fun, it's now easy to shape the flow of changes

5

u/wolftick 2d ago

Shit, this looks too much like AI.

\/\*[\s\S]*?\*\/|\/\/.*

Fixed it.

8

u/RageQuittingGamer 2d ago

Create .md file for the changes. Make no mistakes.

8

u/dangderr 2d ago

If by "actually writing documentation" you mean "actually writing 'write documentation' into the prompt", then sure. AI tricked devs into doing that.

4

u/Maltroth 2d ago

Are they really writing it though?

2

u/Entuaka 2d ago

We're asking an agent to write it for other agents

4

u/confusedthrowaway239 1d ago

Unfortunately the result I’ve seen has been ai generated docs which have been awful and useless

7

u/snowystormz 2d ago

I don’t write docs… Claude writes them and the other Claude checks them for accuracy. One Other Claude deploys them and Claude email lets everyone know the docs I didn’t write have been published and updated.

1

u/definit3ly_n0t_a_b0t 1d ago

I fucking hate it, but here we are

2

u/Romejanic 1d ago

me too man... it's ruined the fun of my career imo

6

u/envalemdor 2d ago

Jokes on you developers still don't write documentation, AI does.

3

u/burgonies 2d ago

And tests!

3

u/Hola-World 2d ago

Documentation and unit tests for everything.

You get a unit test and you get a unit test and you get a unit test, everyone is getting unit tests!

3

u/Stunning_Ride_220 1d ago

"Sorry, you are right.
The documentations obviously wrong. I apologize for me mistake.
Will execute 'rm -rf * md' no.
Oh, there is a mistake in the command, will remove the unnecessary parts of it.
'rm -rf *' successful"

3

u/Extension_Head3729 1d ago

our readme finally has real setup steps, it just opens with "you are a senior engineer"

4

u/shitfucker90000 2d ago

uhh yeah the AI is definitely creating the documentation. i would never stoop so low as to document anything

2

u/kolmiw 2d ago

The documentation in question:
“make error fix”

2

u/ugusensei 2d ago

Documentation? Pfft. Got my team finally writing unit tests.

2

u/Random-I-Am 2d ago

I feel personally attacked.

2

u/thefragfest 1d ago

False. Developers aren’t writing that documentation. Claude is.

2

u/TorbenKoehn 1d ago

What? AI writes the code and the docs too, obviously. To be read by the next agent, not by me

2

u/Cyb3rD4d 1d ago

Can’t believe it took AI to trick product owners into actually writing specs

3

u/SirMarkMorningStar 2d ago

AI only changed one, small thing: If you design well enough the code practically writes itself.

1

u/conundorum 2d ago

Am I weird for actually using Doxygen?

1

u/mothzilla 2d ago

Add all required documentation to your pull request. Make no mistakes.

1

u/teraflux 2d ago

We still don't write it

1

u/ShodoDeka 1d ago

I have written tons of documentation before AI as well, but it wasn’t until AI came along that it actually got read.

I have a hot key on my keyboard that posts a couple of key docs on our wiki, before the AI 80% of my reply’s in Teams are one of those links.

1

u/No_Definition2246 1d ago

It takes an AI to actually read the docs, so, basically nothing changed.

1

u/Substantial_Craft75 1d ago

Hey claude, can you add comments to each action?

1

u/Canofmayonnaise 1d ago

agents don't write the best documentation obviously but have found it's at least very easy to have much more complete documentation and that's better than none. plus someone's ai is reading it most of the time anyway these days and they need docs more than humans to have a sense of what's going on

1

u/Fusseldieb 1d ago

I find it quite funny, actually.

Now we're writing better documentation, but in the end... We're writing it for whom?

1

u/kickyouinthebread 22h ago

That's cos the LLM actually reads it haha. If I wrote docs my human colleagues would still just slack me for the answer

1

u/siddus15 20h ago

The trick worked because we're neither truly writing the documentation nor reading it

1

u/sagetraveler 2d ago

Why does AI even bother with human readable output of any form? Wouldn’t it be more efficient to just go from prompt to machine code? And why do you need documentation when you can have another AI examine the code and answer any questions about it?

6

u/realmauer01 1d ago

We use llms for creating code, llms aren't trained on machine code but normal programming languages.

They can guess the programming language code, they have no data about the machine code.

1

u/chemolz9 1d ago

It would be possible to train AI on machine code though. But that's a whole other path of unmaintability.

1

u/realmauer01 1d ago

I would assume thats what happened with the guy that has that vibe os made. Where you basically prompt and the os would answer with whatever program you wanted.

1

u/chemolz9 1d ago

I don't think so. This would require a whole new AI model trained on a completely different data set. Which would cost hundreds of millions. 

2

u/BraxbroWasTaken 21h ago

Because LLMs are language models based on human language (and its ability to describe concepts) and programming languages are specially crafted subsets/dialects of human languages that can be compiled into machine code.

In other words: it's easier to get them to work on human-ish representations (including human-readable docs! traditional computer-readable docs are worse for AI than their human-readable counterparts, once cleaned up and converted into simple Markdown) because they were trained to mimic human language.

1

u/SnowdensOfYesteryear 2d ago

I found Elon Musk’s account everybody!
(Btw I assume this is sarcasm due to the absurdity)

1

u/EnumeratedArray 1d ago

AI isn't trusted enough in most areas to not have human oversight. Humans need to be able to review the output.

1

u/TorbenKoehn 1d ago

There is work ongoing where this is exactly the plan. Letting the LLM produce Opcodes directly

0

u/createthiscom 2d ago

documentation is for the working class to write, the LLMs

0

u/dmk_aus 2d ago

Is the excessive documentation evidence that AI can develop skills and not just copy them? Because they didn't learn that from copying devs.

/s

0

u/Alternative-Lynx2745 1d ago

Yeah but you still can't make me read it! Get on a Teams call and explain it to me like a real person!

-2

u/cosmicloafer 2d ago

Having AI is even more reason why you don’t need docs.

-1

u/[deleted] 2d ago

[removed] — view removed comment

5

u/Smooth-Zucchini4923 2d ago

Usually the things that can be automatically documented are not especially interesting to document. Good documentation is not something you can create just from existing code and types.