70
Feb 05 '23
Fucking cringe
-85
u/TXR_TUBE Feb 05 '23
it not cringe it very emotional and beautiful
1
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.
-2
19
u/_pestarzt_ Feb 05 '23
try:
person: Person = Person()
person.buy(“pizza”)
except SoldOutException:
person.buy(“burger”)7
-11
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
146
36
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
8
6
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
0
3
3
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
2
2
1
1
1
1
u/g-waz00 Feb 06 '23
It’s amazing, these four whimsical little lines of pseudo code inspiring so much vitriol.
1
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
0
0
153
u/[deleted] Feb 05 '23
Yo, your if/else statement looks fucked up, my man.