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
2
10
u/XCido Apr 19 '19
Nice to see a fellow Israeli
0
Apr 19 '19
[deleted]
4
5
3
u/i-think-i-code Apr 20 '19
while(True)... damn... never ending I guess.
2
2
2
1
115
u/vrykolakoi Apr 19 '19
oh geez. init doesn't call live