▲ 758 ▼ hardcore leftist ideology (thelemmy.club) submitted 3 weeks ago by Someplaceunknown@leminal.space to c/microblogmemes@lemmy.world 187 comments fedilink hide all child comments Mastodon
[–] Randelung@lemmy.world 13 points 3 weeks ago (1 child) Almost. You just committed genocide. permalink fedilink source parent hideshow 2 child comments replies: [–] JasonDJ@lemmy.zip 2 points 3 weeks ago* (last edited 3 weeks ago) (3 children) Nah he'll get a TypeError. Not seeing why, honestly... Unless you consider the merciless and systematic execution of all billionaires to be genocide...which I guess is technically fair...but it's for a good cause! (...said every genocidist ever...) Of course, I changed the name of the iterable... And we're talking about intro to compsci...getting a bit ahead of ourselves going right from loops to comprehension. permalink fedilink source parent hideshow 6 child comments replies: [–] Strawberry@lemmy.blahaj.zone 8 points 3 weeks ago (1 child) basket = [ guillotine(human) for human in population if is_billionaire(human) ] There, now you're not killing everyone on Earth permalink fedilink source parent hideshow 2 child comments replies: [–] JasonDJ@lemmy.zip 7 points 3 weeks ago* This is why we don't test in prod. permalink fedilink source parent [–] pheelicks@lemmy.zip 8 points 3 weeks ago He just called everyone in the population a billionaire and executed them without actually checking if they are in fact billionaires. Somewhat too close to reality in some scenarios for my taste... permalink fedilink source parent [–] Randelung@lemmy.world 7 points 3 weeks ago* Nope, billionaire is a designator, not a discriminator. They're iterating over population and decapitating everyone regardless of wealth. ;) It's missing an if <someOtherDesignatorForPopulatioMember> in billionaires in the comprehension. permalink fedilink source parent
[–] JasonDJ@lemmy.zip 2 points 3 weeks ago* (last edited 3 weeks ago) (3 children) Nah he'll get a TypeError. Not seeing why, honestly... Unless you consider the merciless and systematic execution of all billionaires to be genocide...which I guess is technically fair...but it's for a good cause! (...said every genocidist ever...) Of course, I changed the name of the iterable... And we're talking about intro to compsci...getting a bit ahead of ourselves going right from loops to comprehension. permalink fedilink source parent hideshow 6 child comments replies: [–] Strawberry@lemmy.blahaj.zone 8 points 3 weeks ago (1 child) basket = [ guillotine(human) for human in population if is_billionaire(human) ] There, now you're not killing everyone on Earth permalink fedilink source parent hideshow 2 child comments replies: [–] JasonDJ@lemmy.zip 7 points 3 weeks ago* This is why we don't test in prod. permalink fedilink source parent [–] pheelicks@lemmy.zip 8 points 3 weeks ago He just called everyone in the population a billionaire and executed them without actually checking if they are in fact billionaires. Somewhat too close to reality in some scenarios for my taste... permalink fedilink source parent [–] Randelung@lemmy.world 7 points 3 weeks ago* Nope, billionaire is a designator, not a discriminator. They're iterating over population and decapitating everyone regardless of wealth. ;) It's missing an if <someOtherDesignatorForPopulatioMember> in billionaires in the comprehension. permalink fedilink source parent
[–] Strawberry@lemmy.blahaj.zone 8 points 3 weeks ago (1 child) basket = [ guillotine(human) for human in population if is_billionaire(human) ] There, now you're not killing everyone on Earth permalink fedilink source parent hideshow 2 child comments replies: [–] JasonDJ@lemmy.zip 7 points 3 weeks ago* This is why we don't test in prod. permalink fedilink source parent
[–] JasonDJ@lemmy.zip 7 points 3 weeks ago* This is why we don't test in prod. permalink fedilink source parent
[–] pheelicks@lemmy.zip 8 points 3 weeks ago He just called everyone in the population a billionaire and executed them without actually checking if they are in fact billionaires. Somewhat too close to reality in some scenarios for my taste... permalink fedilink source parent
[–] Randelung@lemmy.world 7 points 3 weeks ago* Nope, billionaire is a designator, not a discriminator. They're iterating over population and decapitating everyone regardless of wealth. ;) It's missing an if <someOtherDesignatorForPopulatioMember> in billionaires in the comprehension. permalink fedilink source parent