621 karma · joined Jan 11, 2018 (8y ago) · 450 submissions
comment 4y ago · link · parent
comment 4y ago · link · parent
131.
Instagram Rolling Back Changes(cnbc.com ↗)
2 points · by zeroimpl · 4y ago · discuss
comment 4y ago · link · parent
Yes I could come up with an algorithm where this is a problem, but in most cases I’d favor a solution that doesn’t depend on separate systems having clocks perfectly in sync.
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
https://www.postgresql.org/docs/current/storage-page-layout....
comment 4y ago · link · parent
The safest implementation would assume that they do violate the constraint, rather than the current behavior assuming they don’t.
In practice I don’t think I’ve ever added a unique index on a nullable column where null might imply unknown. I have used it in cases where null meant “none”.
comment 4y ago · link · parent
Also some chains/brands do a very poor job labeling their things so that it’s obviously plant-based. For example at Tim Hortons: Farmers wrap=meat based, Harvest wrap=plant based. Feels intentionally confusing.
comment 4y ago · link · parent
I was randomly pulled from normal classes in order to hang out with a few other gifted students and do weird puzzles or whatever. Then later I’d have to figure out from classmates what I missed, including what homework to do etc. My social skills already sucked, and being labeled as special to the classmates whom I’d have to spend most of the day with certainly didn’t help.
I’m sure there a ways to do it better, but having no gifted program is better than a bad gifted program.
comment 4y ago · link · parent
> Not entirely convinced by the zq syntax either though; it also seems "arcane enough" that I would keep forgetting it.
I think this is the main thing. I’d prefer a streamlined CLI tool where you passed in some JS code and it’d just run it on the input (with the same slurp/raw args as jq). Could just be npm with underscore.js autoimported.
comment 4y ago · link · parent
This comes up for me most often with views, when a query referencing the view doesn't end up using all the columns - when a LEFT JOIN is used, the database can potentially skip querying those tables entirely, but not with an INNER JOIN.