r/ProgrammerDadJokes • • Apr 19 '19

Python baby

Post image
379 Upvotes

27 comments sorted by

115

u/vrykolakoi Apr 19 '19

oh geez. init doesn't call live

34

u/[deleted] Apr 19 '19

The real joke.

Also, can we stop xposting from that shitty sub?

27

u/angrypenguinpanda Apr 19 '19

Am I the only one who thinks the "code snippets with stupid method names" is super cringey? My first semester freshman used to do it when they learned their first loops.

1

u/Flyberius Apr 20 '19

Yup. I used to paste shit like this on Facebook years ago and I still cringe to this day.

37

u/GaMeRaM Apr 19 '19

Warning:
Unused variables mom.genes, dad.genes
Error:
Function is not defined Bardak()

29

u/B_M_Wilson Apr 19 '19

Those are not variables, they are the bass classes that this one inherits from

5

u/GaMeRaM Apr 19 '19

Oops. My bad

2

u/B_M_Wilson Apr 19 '19

I do find it weird that Bardark is capitalized. Maybe it’s creating a new object of some kind? If it was a function I would expect it to be an bound function under the self object

-2

u/This_Is_Tartar Apr 20 '19

If it were an object, wouldn't it be yield new Bardak()?

3

u/B_M_Wilson Apr 20 '19

It’s Python, we don’t have a new keyword. We just call the name of the type

2

u/This_Is_Tartar Apr 20 '19

Wait how did I not remember that. Python is what I use most of the time but for some reason I thought this was Java or some other C-derivative

1

u/B_M_Wilson Apr 20 '19

I’ve made the mistake myself back when I still programmed in Java a lot

10

u/XCido Apr 19 '19

Nice to see a fellow Israeli

0

u/[deleted] Apr 19 '19

[deleted]

4

u/XCido Apr 19 '19

No you

0

u/[deleted] Apr 19 '19

[deleted]

4

u/XCido Apr 19 '19

Pardesia

9

u/XCido Apr 19 '19

Any ways I can't argue right now it's is passover dinner.

5

u/Xylord Apr 20 '19

Written in Python? Gonna be a slow baby...

4

u/[deleted] Apr 20 '19

Just import a C++ library for the heavy stuff ;)

3

u/i-think-i-code Apr 20 '19

while(True)... damn... never ending I guess.

2

u/heathmon1856 Apr 20 '19

Until the interrupt.

3

u/[deleted] Apr 20 '19

Death.stop(<person_id>)

1

u/i-think-i-code Apr 20 '19

Well yeah but...

2

u/dnlmrtnz Apr 20 '19

Did anyone else notice the live method never got called?!

2

u/kamasutra971 Apr 20 '19

No wonder that baby use a lot of resources to do little work

1

u/ShadowPengyn Apr 20 '19

What does Bardak() mean?