3,044 karma · joined Jul 2, 2013 (13y ago) · 2,751 submissions
comment 5y ago · link · parent
It goes further than that, but essentially it's all about maintaining a context for a thing. I have a patient, that has meds and records etc, I need to keep that contained to one place so that I can have a SECOND patient at the same time (if I am writing an EHR for example). The original "UI of the web" was Open a thing, edit a thing, save and close a thing. And all of that was like 6 full page refreshes.
More apps should be like Trello, for example, where you can just edit a lot of state on lots of different objects super quickly. Globals don't work well for that.
comment 5y ago · link · parent
I do agree about one thing though, before hooks, the standard recommendation was redux (or similar) I kept SCREAMING that it was a giant global anti-pattern. I don't think anyone understood that for the first 5 years of React. It seems like that whole thing is corrected now.
comment 5y ago · link · parent
One problem with trying to get co-workers to do this is that it's probably hard to find people that would want to. So instead open it up to a global pool of people and you're much more likely to easily find 9 that want to sit and work.
Long time ago I rented a co-working space for $99 / month and working amongst strangers is oddly powerfully motivating.
comment 5y ago · link · parent
comment 5y ago · link · parent
sync function x() {
const taco = getTaco() // getTaco returns Promise<Taco>, but taco automatically resolves it in a sync function
// Similarly, you can tell it to not wait
const ptaco = nowait getTaco();
// ptaco is a Promise<Taco>
const taco2 = ptaco; // taco2 is a Taco because the ptaco symbol is treated like (await ptaco) without nowait
// Also, since ptaco has already "awaited", future
// access would be 0 delay as it's basically a resolved promise.
}
Of course, similar to an async function, sync functions would also return a promise.Probably a dumb idea but I would use it personally.
comment 5y ago · link · parent
https://www.frontiersin.org/articles/10.3389/fneur.2021.6280...
Pretty damning.
comment 5y ago · link · parent
What's the solution? I know that grocery stores make Guacamole that sits in the fridge and that helps it age slower, but the vast majority of the Avocados are just wasted.
comment 5y ago · link · parent
I think Finance, Health and Social Media we can't really "under"think too much because at a certain point you have potential death in the health sector for making a mistake. You have the potential for a billion dollar lawsuit in the financial sector, and a major class action privacy lawsuit in the social media sector...
So while I tend to think, yeah this sounds great, at the same time we have to be very careful about what Jr level person that wants to start underthinking about stuff...
I think a good balance is to have old geezers overthink and young ones underthink and come to some middle.
comment 5y ago · link · parent
comment 5y ago · link · parent
Some people even had trees that were small but just leaning into someone's house, maybe ruining the siding a little.
We should basically cut a 1/2 mile of trees in the semi-urban areas. Leave the 5 or 10 acre properties alone, let them manage their own cruft, but for the "city" part in the WUI, that should be clear-cut with 1/2 mile and maintained yearly. It would create a lot of jobs too. Spend that money on weekly clearing jobs in many areas instead of insurance companies paying that money out to just replace the homes.
comment 5y ago · link · parent
edit: \/ didn't know thanks, did a quick search - https://www.greencarreports.com/news/1129809_tire-dust-is-po... is something like this available? Also it won't help as I am a person that needs a truck. I transport shit all the time. I'm constantly trucking stuff - I'm not one of those show-offs that own a truck just because.
comment 5y ago · link · parent
People also argued in January 2020 that it would be ridiculous to worry about this coronavirus it's just as deadly as the flu. Literally told to me by a democratic doctor that works at an extremely prestigious medical institution. (Different take now).
I'm not saying the US is on the precipice of failure in 1 year and 7 months, but people don't realize the stilts things are on sometimes.
comment 5y ago · link · parent
I would say it has 3 of those 4 bullet points.
> Likewise, when a nation weakens and its standard of living declines, it introduces the possibility of total governmental collapse.
Standard of living
https://usafacts.org/state-of-the-union/standard-living/
So yeah, I personally don't call it a failed state, but I don't blame others that do if they're in those categories.