The main value I get from sqlalchemy is parsing the result into useful structures. Getting the two models out of a join, prefetching related objects, etc. Though I much prefer rust diesel’s approach of no lazy queries (prefetches returned as list[tuple[object, list[related_object]], though diesel had other issues for me). My policy with sqlachemy is to unwrap all results to that if I’m passing/returning them. No relationship access outside of the function making the query.
Start a betting pool with a group of friends. Use an exchange (not sports book) internal to the group, so no external money needed. No commission.
It’s no fun realizing you and your friends have taken opposite bets and are just handing money to the house. Keep that money in your social group and make some friendly bets without worrying about the entire group being taken to the cleaners. The group leaves the Super Bowl party, horse races, etc with just as much money as went in (minus tickets, food/drink, etc).
My brain said "y" and then I caught myself. Well done!
(I suppose my context was primed both by your brain-teaser, and also the fact that we've been talking about these sorts of things. If you'd said this to me out of the blue, I probably would have spelled out all of "yolk" and thought it was correct.)
reply