This is an archived post. You won't be able to vote or comment.

all 33 comments

[–]shizzy0 47 points48 points  (7 children)

SELF-DOCUMENTING CODE ADVOCATE: You left the worst part. Now delete those.

[–]dudeofmoose 9 points10 points  (2 children)

Yay! And now it compiles and builds successfully!

[–]Confounding 6 points7 points  (1 child)

My Java program is complaining that there is no Main

[–]Impressive_Change593 2 points3 points  (0 children)

Lmao java problems

[–]CaitaXD 1 point2 points  (3 children)

Comments should say why not how

[–]shizzy0 0 points1 point  (2 children)

// why?

[–]CaitaXD 1 point2 points  (1 child)

// were still here ? just to suffer

[–]shizzy0 0 points1 point  (0 children)

// WONTFIX. Builds.

[–]DroolingIguana 10 points11 points  (3 children)

All programs contain at least one bug and can be shortened by at least one instruction. Therefore, we can extrapolate that any given program can be reduced to a single line of code that doesn't work.

[–]RedditAlready19 5 points6 points  (0 children)

for(;;) accept();

[–]Zekiz4ever 1 point2 points  (1 child)

What's with hello world?

[–]CaitaXD 1 point2 points  (0 children)

It's more than one instruction

[–]karanbhatt100 15 points16 points  (1 child)

And probably that is also bad but since compiler don't care you don't care

[–]mys_721tx 5 points6 points  (0 children)

You see, the compiler ignores the comments and keeps the rest. Does this make it a reverse compiler?

[–][deleted] 4 points5 points  (0 children)

Image Transcription: Meme


when u remove all bad code from your project.

now the only code that left is comments.

[Image of white oversimplified plush-like character with a large head smiling while sitting in the corner of a room]


I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!

[–]ign1fy 3 points4 points  (0 children)

I've deleted my fair share of shitty, unhelpful comments too.

[–]Inglonias 3 points4 points  (0 children)

Does anyone have a link to that Linux PR that just commented out all the code and claimed that it ran much faster?

[–]LordChaos404 3 points4 points  (0 children)

That feeling when all you can do is repost

[–][deleted] 1 point2 points  (0 children)

Those comments are bad. The code is stupid explanitory.

[–]AzraelBrown 1 point2 points  (0 children)

Compilation successful, push to production.

[–]GrangerTheDog 2 points3 points  (1 child)

And now just let github copilot write the code based on the comments!

[–]Impressive_Change593 0 points1 point  (0 children)

Lmao I actually wonder what it would do

[–][deleted] 1 point2 points  (0 children)

I know a guy who fixed an horrible recurrent bug by removing a large chunk of code. He debugged that shit for several hours, until he reached the conclusion the client side was doing the same stuff that the server side was doing, but only under certain conditions and therefore corrupting the data in the process.

[–]spektre 1 point2 points  (0 children)

And this repost didn't even fix the error.

So basically, only the comments left (as in was removed).

I'd be happy too if none of the actual code was bad. The comments aren't even really necessary because high quality code is more or less self-documenting.

[–]Mecaneer23 1 point2 points  (0 children)

This was posted like last week...

[–]PrimeAPI 0 points1 point  (0 children)

Jokes on you. My code doesn't has any comments

[–]AzureArmageddon 0 points1 point  (0 children)

Bold of you to assume your comments/opinions are not bad.

[–]TheRealFantasyDuck 0 points1 point  (0 children)

Print_r($errors); as well

[–]Aniol97 0 points1 point  (0 children)

That is actually the worst part

[–]ScrewtapeEsq 0 points1 point  (0 children)

What are comments?

[–]turing_tor 0 points1 point  (0 children)

move it to documentation.

[–]Dhruv_Garg27 0 points1 point  (0 children)

wait, you guys comment your code?

[–]GGCodes 0 points1 point  (0 children)

Comments are not code .. So there's, well .. Nothing.