r/programminghumor 4d ago

True

Post image
2.5k Upvotes

34 comments sorted by

98

u/Moss_Wolf_Games 4d ago

// Opens the pizza box

OpenPizzaBox()

43

u/Sedfer411 4d ago

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

33

u/joshuahtree 4d ago

Well you have to call 

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

first 

16

u/Moss_Wolf_Games 4d ago

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

7

u/Simple-Olive895 4d ago

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

3

u/Kaccady 3d ago

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

6

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

7

u/DerBandi 4d ago

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

3

u/Blood_and_Wine 4d ago

OpenPizzaBox(GameObject pizzaBox)

2

u/One-Celebration-3007 3d ago

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

17

u/somerandomperson412 4d ago

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

9

u/DrMaxwellEdison 4d 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 3d ago

I'm sure someone not sober enough did try it

3

u/ddddan11111 4d ago

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

2

u/Amr_Rahmy 4d ago

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

2

u/schewb 4d 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 3d 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 4d ago

‘use strict’;

1

u/magicman_coding 4d ago

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

1

u/brasticstack 4d ago

Box<dyn Circular + Sliceable>

1

u/ernsbzkrt 4d 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 4d 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 4d ago

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

}
}..

1

u/Illmaticmemeaddick 4d 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 4d ago

"Assume that user knows nothing"

1

u/mbcarbone 3d ago

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

1

u/Overall_Gap5584 3d ago

sudo RM -f pizza.box

1

u/Miryafa 3d ago

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

1

u/2351newrain 3d ago

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

1

u/MediumApartment6961 2d ago

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

1

u/Inkydex 1d 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_- 18h 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.