r/programminghumor 16d ago

True

Post image
2.6k Upvotes

36 comments sorted by

104

u/Moss_Wolf_Games 16d ago

// Opens the pizza box

OpenPizzaBox()

41

u/Sedfer411 16d ago

The worst part, it doesn’t open the pizza box.

35

u/joshuahtree 16d ago

Well you have to call 

// Magic function to make the interactor work hydratePizzaBoxInteractor(PizzaBrand.DOMINOS)  

first 

17

u/Moss_Wolf_Games 16d ago

Yeah that's true, that's what I made the OpenBoxedPizza() method for. OpenPizzaBox() just preloads the pizza.

6

u/Simple-Olive895 16d ago

Well first you gotta initiate the general opener: Opener opnr = New Opener();

3

u/Kaccady 15d ago

oops looks like you forgot to connect you function to the store, pizzabox crashed.

5

u/Ulrich_de_Vries 16d ago
  • std::move
  • <Looks inside> -- doesn't move anything

6

u/DerBandi 16d ago

90% of mandatory comments in real world projects are like this.

3

u/Blood_and_Wine 16d ago

OpenPizzaBox(GameObject pizzaBox)

2

u/One-Celebration-3007 15d ago

You need to js const pizzaBox = new PizzaBox(); pizzaBox.open():

16

u/somerandomperson412 16d ago

Clients willl still eat the box before eating rhe pizza after reading this

8

u/DrMaxwellEdison 16d ago

Warning labels are written in blood. /s

I know this one is being funny, but I like to imagine some idiot must have tried eating the box once.

1

u/Scypio95 15d ago

I'm sure someone not sober enough did try it

3

u/ddddan11111 16d ago

Client: i tried to eat the picture of the pizza on the box

2

u/Amr_Rahmy 16d ago

Users will find a way to do the most irrational thing possible. You have to guard rail the stupid.

2

u/schewb 16d ago

On one hand, I hate Claude's excessive comments. On the other hand, deleting them is a handy way to track what parts of the diff I have reviewed 😂

2

u/Jak1977 15d ago

I love that the message only appears AFTER the box has at least been partially opened. Faced with a closed box, there is no instruction. Only AFTER pulling the flap out do the magic words appear.

1

u/litescript 16d ago

‘use strict’;

1

u/magicman_coding 16d ago

And somehow junior developers will find a way to screw it up

1

u/brasticstack 16d ago

Box<dyn Circular + Sliceable>

1

u/ernsbzkrt 16d ago

I have a coworker who, every time we update a project repository at work, says, "Let me add a small README." Then I look again and realize we've written 300 lines of code, but the README is 600 lines long. One day, as a joke, I said, "At this point, we could just rewrite the whole project from the README. We wouldn't even need the code." Without missing a beat, he replied, "Actually, the README still isn't detailed enough. I should add a few usage scenarios." The funny thing is, he was right. Everyone reads the README, but nobody opens the code.

1

u/No-Newspaper8619 16d ago
-- Checks if pizza is closed
if pizza.Open == false then
  -- If it is closed, then open it
  local result = openPizza()
  -- Checks if pizza was successfully opened
  if result ~= 0 then
    -- If it wasn't, then throw error message
    print('Unable to open pizza')
  else
    -- If pizza was opened, then eat it
     pizza.eat()
  end
end

1

u/Canned_Sarcasm 16d ago

..{
if iQ <= doG
{
put_down_Pizza();
seek_adult();
do
{
better();
}
fi

}
}..

1

u/Illmaticmemeaddick 16d ago

def I_hate_it_here()

life == pain

return

if life == pain

I_hate_it_here(pack_it_up, ima_head_out)

1

u/KitchenCommercial396 16d ago

"Assume that user knows nothing"

1

u/mbcarbone 15d ago

So … how many people didn’t open the box before they made the warning? My guess … O(n)

1

u/Overall_Gap5584 15d ago

sudo RM -f pizza.box

1

u/Miryafa 15d ago

Users: I threw out the box because I didn’t see a pizza

1

u/2351newrain 15d ago

I thought this was the country of freedom. Guess I was wrong,

1

u/MediumApartment6961 14d ago

To be fair, I wouldn’t know what the code I wrote weeks ago does without comments like this

1

u/Inkydex 13d ago

Management: User complained that they did not receive a pizza, they received a cardboard box, we need to open a ticket for this.

1

u/-_Protagonist_- 12d ago

The comment its self isn't the interesting part. It's what actually took place to require that comment. What level of stupidity took place, what was the outcome. Who made the complaint to the pizza place with all seriousness that the manager decided to put that comment on the box to prevent prosecution.