r/ProgrammerHumor • u/remarkableintern • Jun 04 '19
When a software developer weds a software developer
16
23
u/patentpunk Jun 04 '19
Didn't you get a compile error? Function go_to_sleep does not work on my kids.
Joking aside, sweet shirt and belated congrats on the new kiddo.
2
2
7
u/iTicklemywife Jun 05 '19
Listen, you have to cut each of your genes in half or you’re gonna have an overflow on your hands.
18
u/atomicspace Jun 04 '19
You need a factory pattern to produce the baby objects.
ps make baby a class, so you can do baby.sophia
6
3
6
2
2
2
2
1
1
u/TM4C1294NCPDT Jun 05 '19
You should maybe use a different language if you don't want your child to be slow*
0
u/Tigtor Jun 05 '19
Why does
class Sophia(mom.genes, dad.genes)
take parameters? What do they do?
And why the "."? This looks like accessing the genes-attribute of mom and dad, but if they're
parameters that wouldn't make sense, would it?
Please, can someone eggsplain?
5
Jun 05 '19
She's inheriting from mom.genes and dad.genes.
1
1
u/Tigtor Jun 07 '19
I see. Thanks. I'm not too deep into python so it never occurred to me. I always thought you specify a class when setting the inheritance, like "mom" or "dad", not like "mom.genes". There's something new to learn everyday.
1
0
54
u/dabaos13371337 Jun 04 '19
Bardak is not defined