David Eaves has some interesting thoughts on what Mafia can tell us about trust and security. He also has a few ideas on how the physical game setup gives advantage to different parties.
Given the pace of technology, I propose we leave math to the machines and go play outside.
Etwas für seine Frau tun, ohne das sie es sagen muss, um einer theatralischen Auseinandersetzung zu entgehen
@something ||= SomeModel.create_with(some: "stuff").find_or_create_by(foo: "bar")
This will either find a record SomeModel.where(foo: "bar") or create it with SomeModel.create(foo: "bar", some: "stuff") . Very useful.
found = ModelA.find_by(id: id) || ModelB.find(id)
I stumbled over this during a code review. It was supposed to look for a record in two distinct tables. find_by will return nil if nothing was found while find will raise . Hence either you get something (from any model) or you raise.