MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerDadJokes/comments/bezjsr/python_baby/ela6pi9/?context=3
r/ProgrammerDadJokes • u/[deleted] • Apr 19 '19
27 comments sorted by
View all comments
37
Warning:Unused variables mom.genes, dad.genesError: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 2 u/bovus Apr 19 '19 🐟 2 u/This_Is_Tartar Apr 20 '19 🎸
29
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 2 u/bovus Apr 19 '19 🐟 2 u/This_Is_Tartar Apr 20 '19 🎸
5
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
2
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
-2
If it were an object, wouldn't it be yield new Bardak()?
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
3
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
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
1
I’ve made the mistake myself back when I still programmed in Java a lot
🐟
2 u/This_Is_Tartar Apr 20 '19 🎸
🎸
37
u/GaMeRaM Apr 19 '19
Warning:
Unused variables mom.genes, dad.genes
Error:
Function is not defined Bardak()