this post was submitted on 03 Jun 2023
7 points (100.0% liked)

Programmer Humor

32415 readers
1008 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 1 comments
sorted by: hot top controversial new old
[–] blob42@lemmy.ml 1 points 1 year ago

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))