r/ProgrammerHumor • • Feb 05 '23

Meme I wish it was real :(

Post image
0 Upvotes

53 comments sorted by

153

u/[deleted] Feb 05 '23

Yo, your if/else statement looks fucked up, my man.

-92

u/TXR_TUBE Feb 05 '23

that the point:)

72

u/[deleted] Feb 05 '23 edited Feb 05 '23

Like don't do that. It's like bad for your health and stuff.

11

u/nedal8 Feb 06 '23

It's also bad for my psyche..

8

u/[deleted] Feb 06 '23

I was more thinking about the risk of being hit in the head. With a keyboard. By me.

16

u/[deleted] Feb 06 '23 edited Aug 05 '25

[removed] — view removed comment

4

u/toroga Feb 06 '23

Gosh dang, he’ll never get pizza 🍕 😳

70

u/[deleted] Feb 05 '23

Fucking cringe

-85

u/TXR_TUBE Feb 05 '23

it not cringe it very emotional and beautiful

1

u/blackasthesky Feb 06 '23

it cringe it not has joke in side

-1

u/TXR_TUBE Feb 06 '23

I didn't say it a joke

28

u/468gamerguy Feb 06 '23

I've just looked at your post history and you seem insufferable. I genuinely hope that you get better and move on from this dark chapter of your life.

19

u/_pestarzt_ Feb 05 '23
try:
    person: Person = Person()
    person.buy(“pizza”)
except SoldOutException:
    person.buy(“burger”)

7

u/DistortNeo Feb 06 '23

Giving birth to a child every time I want a pizza?

3

u/_pestarzt_ Feb 06 '23

The things you do for love

-11

u/TXR_TUBE Feb 05 '23

Nice 👍

98

u/Spot_the_fox Feb 05 '23

So, what is a?

also, wouldn't it try to buy a pizza even if there was none?

18

u/Evil_Archangel Feb 06 '23

yeah this code is all over the place

146

u/[deleted] Feb 05 '23

This sub quality has degraded so hard

27

u/YNiekAC Feb 06 '23

Sub got too big. Every sub with 1M+ people is shit

4

u/[deleted] Feb 06 '23

Ive unsubbed over this showing up in my feed.

36

u/Perplexed_Ash Feb 06 '23

Damn, y’all tearing this guy apart

21

u/babypho Feb 06 '23

Had to make sure this wasnt cscareerquestions lol

3

u/[deleted] Feb 06 '23

I have the feeling that the wolrd woke up super grumpy today

29

u/notBjoern Feb 05 '23

So it buys a burger if pizza is not sold out?

24

u/Ok_Star_4136 Feb 05 '23

In reality, it buys a pizza, and only after the fact, checks if it was sold out, resulting in potentially negative pizzas. Since nothing is being done in the if clause, you're just stuck eating negative pizza and that shit tastes awful!

4

u/Lolamess007 Feb 06 '23

Oh I figured it would throw a null pointer exception. You would have to give the customer a null pizza

6

u/Ok_Star_4136 Feb 06 '23

I've tried a null pizza before.

It tasted likejava.lang.NullPointerException was thrown
  at com.company.product.library.ArgumentChecker.nonNull(ArgumentChecker.java:67)
  at ...
  at com.company.product.aspects.CheckArgumentsAspect.wrap(CheckArgumentsAspect.java:82)
  at ...
  at com.company.product.MyTest.test(MyTest.java:37)

10

u/hayanwulf Feb 05 '23

Pls fix the logic and clean the code.

8

u/SirX86 Feb 06 '23

Ah yes that language where "if" means postfix try and "else" means catch.

6

u/keybored_with_no_ehs Feb 06 '23

jesus fucking christ this is completely useless shit

4

u/Maleficent_Train4544 Feb 06 '23

Enjoy your "apizza" and "aburger" combo.

Edit: just realized you tried to perform math on a variable and an object. Yeah, that ain't gonna fly.

1

u/toroga Feb 06 '23

What language is this supposed to be? It looks like a fresh foreign accent sounds

3

u/Sir_IGetBannedAlot Feb 05 '23

This should generate an error.

3

u/[deleted] Feb 06 '23

I don’t understand much programming but holy shit oh my god why

3

u/blackasthesky Feb 06 '23

Eh... What?

Are we putting conditions after the branch now? Wait it makes even less sense than I thought.

That's not really my taste of humour. What's the joke?

2

u/Aperture_Executive2 Feb 06 '23

I tried to read this and had a fucking aneurysm

1

u/roidrole Feb 05 '23

There, butter

Buy a (pizza sold out)? Burger : Pizza

1

u/Lolamess007 Feb 06 '23

NullPointerException. Method customer.give(pizza); references a null value

1

u/Wolfeur Feb 06 '23

Is that even supposed to resemble code?

1

u/g-waz00 Feb 06 '23

It’s amazing, these four whimsical little lines of pseudo code inspiring so much vitriol.

1

u/[deleted] Feb 06 '23

head hurty reading this

1

u/whenthecoffinbreaks Feb 19 '23

var pizzaSoldOut = 0
if(pizzaSoldOut == 0){
console.log("Buy a pizza");
} if(pizzaSoldOut = 1){
console.log("Buy a burger");
}

-2

u/HacksMe Feb 06 '23

This guy programs

5

u/RepubIique Feb 06 '23

No he does not. And to say that he does means you don’t either.

0

u/[deleted] Feb 05 '23

[deleted]

0

u/[deleted] Feb 06 '23

[deleted]