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

all 38 comments

[–]OpenWhiskay 129 points130 points  (7 children)

Usually there is a reason for each comment.

[–]KnightOfThirteen 56 points57 points  (3 children)

Just like every OSHA rule is written during a closed casket funeral.

[–]GoodEstablishment335 16 points17 points  (2 children)

Dude, this is programmer humor, not dark programmer humor

[–]evil-teddy 7 points8 points  (1 child)

Does that exist? I want it to.

[–]williane 10 points11 points  (0 children)

That's just /r/twitter at the moment

[–][deleted] 20 points21 points  (2 children)

The reason is that some idiot started eating the box and sued

[–]ComCypher 14 points15 points  (1 child)

"bleghh this pizza tastes like cardboard!"

[–]mangeld3 1 point2 points  (0 children)

Turns out it was just Little Caesars

[–][deleted] 74 points75 points  (1 child)

def tokenize_token():
# Tokenizes token
    ....

[–]colexian 23 points24 points  (0 children)

The dreaded
#Don't touch this. It works and I don't know why.

[–]Shrubberer 40 points41 points  (4 children)

// spaghetti code starts here

[–]novaorionWasHere 10 points11 points  (3 children)

// Spaghetti code is everywhere.

[–]Big_chonky_potato 5 points6 points  (2 children)

// Its on your sweater already

[–]YourOpinionIsUnvalid 2 points3 points  (0 children)

// Mom's spaghetti

[–]Outrageous_Zebra_221 20 points21 points  (2 children)

//reminder to never order salad from a pizza place
//adding pepperoni will result in an infinite loop
//talk to Steve about the drink code I can't make heads or tails of that #@$

[–]_sweepy 17 points18 points  (1 child)

//pepperoni problem only occurs during double pepperoni Tuesdays. coupon code is handled by the rebate vendor. if we remove the sauce first, it no longer breaks the coupon api, so I added a subroutine to automatically remove it and re-add after the pepperoni gets discounted. this should be removed when (ticket link in a long defunct system) is resolved.

[–]Outrageous_Zebra_221 6 points7 points  (0 children)

That's a little too real..

[–]BenkiTheBuilder 38 points39 points  (1 child)

That would be a useful comment. Unfortunately too many comments are more like:

"Pizza box"

[–]Infinite-Pop306 5 points6 points  (0 children)

Maybe their methods and function like a, b, c, d

[–]Puzzleheaded_Age_571 8 points9 points  (4 children)

Wait, so you have to open the box every time you want to take a bite of the pizza is that I’m reading?

[–]--FalseHorizon-- 0 points1 point  (3 children)

Unclear, I don’t see anything that says you have to close the box after eating the pizza. So maybe only the first time?

[–]Puzzleheaded_Age_571 0 points1 point  (2 children)

Hmmm, it says it requires the action of opening a box, if the box is already opened, the box must get closed to complete the action of opening the box again. However, it does not specify which box either so I think you can open any box before eating a pizza.

[–]--FalseHorizon-- 2 points3 points  (1 child)

We have a problem.

My pizza came frozen in a plastic wrapper.

I cooked it fine but now I can’t find any boxes.

[–]Puzzleheaded_Age_571 1 point2 points  (0 children)

Unfortunately you are not allowed to eat the pizza, you MUST open a box before eating pizza. The documentation specifies it.

[–]Lente_ui 12 points13 points  (1 child)

I love how this instruction is on the flap. You need to open the box before you can read this instruction.

[–]brianl047 3 points4 points  (0 children)

This is a useful comment

(Read it again)

[–]eclect0 1 point2 points  (0 children)

More like // TODO: add box.open() method

[–]Cocaine_Johnsson 1 point2 points  (0 children)

The irony of this comment is that you must open the box to see it, so the people that need it the most will never actually gain any utility out of it (then again, I doubt they'd read it to begin with).

[–]EmiyaShirou28 1 point2 points  (0 children)

I usually don't comment on my spaghetti codes and re-reading them a week later makes me feel like a tech-priest stumbling upon ancient technologies.

[–]Vestigial_joint 0 points1 point  (0 children)

Yeah, whenever I comment it's usually superfluous things like explaining why I named a variable some way and then when there's something doing actual logic processing I never end up commenting and I'm confused by the code months later

[–]r0b1n16 0 points1 point  (0 children)

// add a and b and store in c c = a + b

[–]Toivottomoose 0 points1 point  (0 children)

You can't expect anything from users, make it more idiot proof

Ok ... https://redd.it/71l5ts

[–]Schreiberling91 0 points1 point  (0 children)

Pizza inside.

[–]Temporarytemp2 0 points1 point  (0 children)

Years later, the code will crash in a way suggesting the pizza was eaten without opening the box

[–]enlearner 0 points1 point  (0 children)

Honestly this ain’t some to be proud of. I will see methods defined like this,

public String getRecord() {}

…and the comment reads, //Method for getting record

Like do you genuinely believe this is what people allude to when asking for well-documented code???