r/ProgrammerHumor • • Oct 20 '26 • Bravo 1

Meme claudeWasNotHere

Post image
18k Upvotes

230 comments sorted by

View all comments

15

u/ChickenPicture Oct 20 '26

documentation

I'm not familiar with this term, can someone explain?

11

u/TheTerrasque Oct 20 '26

You know how code is self documenting? Well, some misfits think that's not good enough and write a novel alongside the code describing how it worked 5 months ago

4

u/mxzf Oct 20 '26

IMO, personally, I think good code is largely self-documenting as to what it does. But comments are still needed at times because "what the code does" might be easy enough to read at a glance, however "why the code does what it does", in certain sections, can be far more important and less self-evident.

I don't need a comment to tell me that the line is looping backwards through a list, you can read the code just as quick as the comment and know that; I need a comment to tell me that the code is looping backwards through the list for a specific reason and it should stay that way instead of being changed (unless the change takes that reason into account).

4

u/Erkliks Oct 20 '26

It explains how things work basically. Solo devs neglect this because, well, they know everything... Until they don't 5 months later

10

u/overdosingOnPie1313 Oct 20 '26

5 months?? Brother, I'm flattered, but I forget everything later that evening after all the gin.

5

u/FuckThisShizzle Oct 20 '26

Code drunk, review sober, drunk you will surprise you with ingenuity.

0

u/minecon1776 Oct 20 '26

Thats what claude is for

0

u/Mroz_Game Oct 20 '26

Surely you can’t be serious

1

u/Elspeth-Nor Oct 20 '26

Documentation is a newly discovered part of a project. Some AI agents hallucinated text beginning with // or /* or # depending on the language and strangely the compiler ignored it.

Even worse the AI created multiple additional files the compiler completely ignored. It serves no purpose, it's properly a ploy used by the tech companies to increase the storage consumption of projects so you need larger storage devices.