Better HN
topnewbestaskshowjobs
Log inSign up

coding123

3,044 karma · joined Jul 2, 2013 (13y ago) · 2,751 submissions

Test
Submissions

comment 5y ago · link · parent

That hamburger sure TASTES better than it does in the commercial.

comment 5y ago · link · parent

Globals are bad in general. Things should be as specific as they can be. If you were playing a tetris game and suddenly wanted to upgrade it and make it a DUALING side-by-side tetris game, then all your state is going to collide. It would have been better to define your <Tetris> tag to have it's own state.

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

This is confusing because before component models, everything was a global.

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

What I find so interesting about this is that it's NOT your co-workers. Which is actually really intriguing. I wouldn't be able to participate in this right now due to my living situation, but I love the idea.

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

As long as it's replacement opens in Numbers and Excel.

comment 5y ago · link · parent

I mean if you have a mac and love Linux also (like me) there's always a reason or two to go back to Linux. It may not be as polished as Mac, but there are also things that a Mac isn't polished with (for example a native package manager).

comment 5y ago · link · parent

Oh, another example of that local vs distant store thing is that it's kinda up to the store. You may order a BROWN blanket, but your local store is somehow notified and they go, OH I HAVE THAT BLANKET! And then they switch you from it being delivered from far away to having some guy that's getting off work that lives near you drop it off. And then you open it up and it's that BLUE blanket you already saw locally and didn't want!!!!!

comment 5y ago · link · parent

I think it would be awesome for Typescript to introduce sync functions. So think of that as completely flipping the dialog on async/await to await by default:

    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

Yeah did you read his links?

https://www.frontiersin.org/articles/10.3389/fneur.2021.6280...

Pretty damning.

comment 5y ago · link · parent

Over half of the fresh fruit and veggies at the grocery store is thrown out. I wouldn't be surprised it it was more like 95% for specific foods. I have a feeling that onions don't have this problem, but the Avocados, I see like maybe the same batch sitting for 2 days and on the 3rd you can't even pick one up because it's so ripe it's basically mush. Then salad bags, I imagine that shredded lettuce doesn't go to waste (it's popular for tacos), but pretty much the rest is probably thrown out.

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

There's always bribery involved. You're just not aware of it.

comment 5y ago · link · parent

This whole thing reminds me of when Facebook asked everyone to upload nude photos of themselves.

comment 5y ago · link · parent

Ugh, this is a very complicated struggle for me, personally. However I have been in the Health sector for the past 15 years. I had a short stint at a retailer.

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

In NorCal on the 5 you might also see a fully tinted purple low riding car every few weeks (I'm talking about a specific vehicle I see because I drive it all the time) with Washington plates that drives like a bat out of hell. Not that native CA drivers are much better, but they are.

comment 5y ago · link · parent

The GOOD news is that there is no One World Government, so people are able to buy their transfer to another country to better fit their definition of paradise.

comment 5y ago · link · parent

Well, the good news is that the vast majority of those monitors and TVs need a WIFI connection, which is optional to set up. However, unfortunately, we're on the cusp of devices having their own permanent mobile phone network connection. Rozzie can confirm.

comment 5y ago · link · parent

It's still happening... is that data?

comment 5y ago · link · parent

Before Paradise burned to the ground it was the same way. The city stopped people from cutting down their own trees. Those same trees would fall and kill people. During the time I lived there at least 3 times. 2 in bed one in a truck.

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

If something coordinated like that happened, you would see actually people turn from blue to red because it happened. Balance will come naturally.

comment 5y ago · link · parent

Key takeaway for me: more people want to become republicans.

It's not just high population to low population, because Florida as an example.

comment 5y ago · link · parent

I think the future of fires needs to be the following: send the 5000 men when it's only 1000 acres, not 400k acres. So detect fast and respond faster. Or heck 2 acres.

comment 5y ago · link · parent

There wasn't a problem.

comment 5y ago · link · parent

Carpets really just molt and let its shit go into the air.

comment 5y ago · link · parent

My long term plan is to have a solar array dedicated to charging my future electric truck, since panels and inverters are near cheap as dirt now on Alibaba.

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

We're talking about someone's use of the words "failed state" because that's how they feel about the US and it definitely fits the definition based on the position some people are in.

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

https://en.wikipedia.org/wiki/Failed_state

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.

comment 5y ago · link · parent

Why would we have an inflation dashboard if the theory is that seeing the inflation causes it?

I don't get it, why cause inflation purposely?

That said, I'm all for this because it would be cool.

1
505152
92