usernamesAreTricky@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 year agoDiscovered The Logic for the Fishing Industryi.imgur.comexternal-linkmessage-square1fedilinkarrow-up16arrow-down10cross-posted to: [email protected]
arrow-up16arrow-down1external-linkDiscovered The Logic for the Fishing Industryi.imgur.comusernamesAreTricky@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 year agomessage-square1fedilinkcross-posted to: [email protected]
minus-squareblob42@lemmy.mllinkfedilinkEnglisharrow-up1·1 year agouse homomorphism and apply it to everything: interface Profitable { exploitable() --> bool can_organize() --> bool } let profitables: list[Profitable] for entity in all_things_on_earth { if entity.exploitable && !entity.can_organize { profitables.push(entity) } } profit += sell(exploit(profitables)) capital += buy_all_you_can(profit) - (buy_politicians(profit))
use homomorphism and apply it to everything:
interface Profitable { exploitable() --> bool can_organize() --> bool } let profitables: list[Profitable] for entity in all_things_on_earth { if entity.exploitable && !entity.can_organize { profitables.push(entity) } } profit += sell(exploit(profitables)) capital += buy_all_you_can(profit) - (buy_politicians(profit))