Better HN
topnewbestaskshowjobs
Log inSign up

coding123

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

Test
Submissions

comment 6y ago · link · parent

With the economy strangled, how would it be possible to build more hospitals. At some point you can't ask people that don't want to do it to work for free.

comment 6y ago · link · parent

> So exceptions should be exceptional, unusual or rare, much like a asteroid strike!!

That's a super huge misread of the text recommendation.

I watched a live presentation directly from Jeffrey Richter at the bay area .net user group, oh god about 15 years ago when he described how he came up with this text. In fact it was a call to use exceptions a lot more than we used to, and to avoid error codes. So no, exceptions are not supposed to be rare like that.

His main point was to throw if the method name was not achievable, except in specific situations where that breaks user expectations too much, like getting null from missing map entries.

comment 6y ago · link · parent

But could that just be the flu.

comment 6y ago · link · parent

You can count on the states that have an official number of infected people of about 100 to have about 10000. You can count on US states that have 0 cases for those to have about 1000. We've passed containment options when we didn't do anything about 2 months ago.

People just don't go to the doctors, especially with the news of how people are being treated on the boats.

comment 6y ago · link · parent

We're going to need Re-reinsurance soon.

comment 6y ago · link · parent

From your link:

CDC estimates that so far this season there have been at least 32 million flu illnesses, 310,000 hospitalizations and 18,000 deaths from flu.

The math: 0.0005625

From my link:

http://www.cidrap.umn.edu/news-perspective/2020/02/study-720...

They are saying COVID-19 is about 20 times more deadly than the flu, so I don't know why you think the opposite.

comment 6y ago · link · parent

100 years from now the conversation will be about how back in the day we didn't know all of the ways time, space and quantum mechanics worked and we thought it was just a coincidence or some psychological brain function that has a highly tuned timer.

comment 6y ago · link · parent

I like the way react does it:

dangerouslySetInnerHTML={{__html: variable}}

Not only can you easily see every place in the code that is using this construct, but, the framework provides a warning.

I definitely don't think it's bad to sanitize HTML content. but in general MOST text in a web app should be just text, and rendered with whatever HTML it contains. In very few places should the web application give user rich-text (aka HTML) access. In any place that the application does that, sanitization should be used.

comment 6y ago · link · parent

Whoa!

comment 6y ago · link · parent

Looking at this from a numbers game, as Etsy is probably doing, this is a guaranteed money source for them. All they have to do is claim they are running internet ads for your product. Whether that ad worked or the sale just happened based on normal Etsy traffic, is probably not disclosed. Hence Etsy has 100% control of the information and therefore can bet, let's say $1M per day towards this, but on the flip side, can guarantee that a 12% fee increase (for the stores that will be required to pay it) will already be $2M per day.

My numbers are fake but you get the gist.

comment 6y ago · link · parent

There's always a D guy lurking about.

comment 6y ago · link · parent

This is totally incorrect about the licensing models of open source.

comment 6y ago · link · parent

That's exactly it.

If I get killed by a drunk driver, my wife will at least have someone to rage at.

If I get killed because my car randomly decides to drive itself into a high up truck and I basically died because of stupid technology. I would hope that it doesn't end up killing my wife too out of rage that she's going up against a major corporation now.

That's kind of maddening.

comment 6y ago · link · parent

It might sound crazy but the govt DID this for cigarettes. Have you read the warning on cigarettes?

I mean just look at the suggested box design here: https://www.fda.gov/tobacco-products/labeling-and-warning-st...

I mean really look at that, and fully take in the notion that our government required that. That, that takes balls.

comment 6y ago · link · parent

I initially had that internal reaction too, but then realized that the value in CoreOS was the updates. If they're specifically going to stop that, at this point it's like any other never gets updates OS (sure the readonly file system still helps tremendously) - so yes, people should get off ASAP. But the September date ensures that anyone that wants to fork and provide updates some other way, can definitely find the time to do that.

comment 6y ago · link · parent

I got a privacy notice update from my bank today. In the past I was generally OK with my bank to generally share data and all that because it goes toward credit scores and a variety of other things.

I'm not so sure any more. I feel like we've reached a point where a massive, trustable, profile of me is for sale. I don't think I want a bank that is allowed to do it any more.

Does anyone have any recommendations for a bank focused on privacy? (and for that matter credit cards?)

I know I know - probably impossible, but I am pretty sure I just created a market, who's with me?

comment 6y ago · link · parent

I think the idea behind it was definitely sound and pretty cool. I used CoreOS a couple of times for internal projects, using Docker (not rkt) but I think as Kubernetes became ubiquitously available on managed services, the need for me to attempt to build my own docker infrastructure started to wane.

Goodbye CoreOS.

comment 6y ago · link · parent

Bottom line: The car dealership and / or new owner have a case here.

Since Tesla itself sold a car that had autopilot features, it is expected that those features would remain. The dealer bought the car and the fact that it had autopilot features (auto park I suppose?) when the dealer bought it, they were able to test the car and use the feature to assess and market the car's abilities.

Basically it was what it was at the time of the (original) sale. If Tesla wants to be more careful about this in the future that's OK, but they need to remove those features before any party is accepting it in a sale.

I think the owner needs to send a lawsuit to Tesla that offers court, settlement of $8000 or the features to be turned back on - and that's being nice - since at this point the owner has probably gone through the wringer of social media nightmare scenarios at this point.

comment 6y ago · link · parent

That whole Next% feels like they named it due to a email software glitch that didn't replace a variable name. lol

comment 6y ago · link · parent

Here's my read of this. It's pool because I've done some league. Your typical 7 level player (in APA) typically wins most matches. In fact the ranking system is basically how much you win, even with handicaps. Here's a good list of things to think about when playing each and every shot.

https://supremebilliards.com/51-pool-tips-every-player-must-...

The top level players keep all of that in mind automatically. It's practically part of their training data at this point. They barely lose even when a level 2 player needs to just win 2 matches and they need to win like 7 matches.

The "equalizer" system of the APA says that's roughly a fair fight. But it's not. When playing a 7, you know that not only are they going to get pretty much every easy shot, when they don't have a more than 90% chance of making a shot, they leave the 2 a bad bad bad shot, like something the 2 will have a 1% chance of making. They also put the cue ball in a special place - a place where either the 7 will get a ball in hand OR strategically a good shot on their next run.

It's all extremely interesting to watch a true 7 play anyone else. The only fair match-up against a 7 is anyone of rank 4 or above, mostly because they know the tricks. They still make rookie mistakes all the time though, hence the 4.

You're probably in the 95% if you're a 5 or above in APA. People that are six hate being a six. They get kicked off teams because of skill caps in favor of keeping a bunch of 2,3,4 players and their 7.

I was a 4, played in the bay area, south bay APA. Represent. I moved.

http://www.southbayapa.com/bapl_hostlocations.htm

That list used to have like 8 places when I played. Sad. Good to see lucky shots is still around my home team from there.

Anyway, your typical 4 thinks he's a 7 inside - but doesn't say it out loud because of the inevitable laughs. They have honed every pool stance. Bridge is near perfect. A decent 4 can hit the cue ball from one side of the 8-foot table to a ball that needs exactly a 30 degree. These crazy 4s think they have a 80% chance of hitting a ball across that table into a pocket (a long shot, with or without angle). Either the cue is travelling a long way to the ball or the hit ball will. Unless the target is "in the pocket", like giving the player a huge degree of error and still make it in. No I'm talking more of a looks hard, is hard, but the 4 is so HONED on these shots they nearly always forget their defense, so silly. The major difference between a 7 and a 4 here is the 7 will try 30% making the ball in, and 70% leaving the cue in a disastrously bad place for the other player (maybe even 10/90). And the funny shit is, the 4 probably is better at hitting the ball in, even if they both put in 80% effort to do so... but that's not the game for a long shot. The game for a long shot is to leave it bad. There are lots of calculations, but that's the gist. The top players win because they get ball in hand, typically planned of course, but you won't even see the smirk on the face when it worked.

What does this have to do with 95%, I don't know it's somewhere in there.

Ok now you're pumped up, go contact APA and get on a team. Start with 8-ball. Meet your future spouse and have fun.

comment 6y ago · link · parent

The billion dollar figure, at the end of the day, is brand recognition. The actual cost for someone to re-implement all the code, if someone wanted to, is probably $10M? Even then, however it will be a fly-by-night never heard of again project like... rkt.

http://eliot-jones.com:5690/Home/Trend?id=rkt&allwords=true

http://eliot-jones.com:5690/Home/Trend?id=docker&allwords=tr...

I mean heck, here we are 137 comments into a thread about an alternative to docker and I was the first to mention rkt.

comment 6y ago · link · parent

I heard the same thing in my morning radio program, it was NPR but I don't know what program.

comment 6y ago · link · parent

History catching up to today's security environment.

This is also how permissions and APIs evolve over time. Apple (and hopefully other OSes) is likely working on a global hotkey hook system, that has a less intrusive permission requirement. Unfortunately it will take YEARs before applications in general start using that.

And this is Absolutely the correct thing for the OS to do.

comment 6y ago · link · parent

Requiring the imports to use the web_modules folder specifically locks all of your files into a proprietary import format. I would no longer have a portable JS library that represents my front end code to be imported elsewhere (maybe?) The video doesn't make it clear how library code would be created with snowpack. I would want my application code and library code to use imports identically. The other problem with that import style is that right now with Typescript I already get context help with my imports... does this break that. I noticed in the video the user is required to look at the bottom of the import file to find what is available. That seems crazy to me.

The video says React would be a problem but the snowpack website references React.

Without the ability to import CSS or other media we would essentially be breaking many packaged libraries, such as material ui for React.

My current webpack time does suck, I think I wait about 1 - 2 seconds for a change to reflect in the browser. But that's still acceptable given I can code in ways that have effectively become standards. I imagine the above could be fixed with some "magic" hacks, etc... but I still worry about some of the deadbolts this product is placing in the sand to differentiate itself. But I'll keep an eye on it.

comment 6y ago · link · parent

The master plan of the entire real names thing juuuuust landed.

comment 6y ago · link · parent

> Within the conservative political blogosphere, global warming is either a hoax or so uncertain as to be unworthy of response. Within other geographic or online communities, vaccines, fluoridated water and genetically modified foods are known to be dangerous. Right-wing media outlets paint a detailed picture of how Donald Trump is the victim of a fabricated conspiracy.

To this day you'll find most well off (and extreme) democrats avoiding GMO foods, protesting vaccines as well as avoiding fluoride in water. I don't think that's a republican issue. Especially in portland that consistently votes democratic but also NO to GMO, Flouride and Vaccines.

Reading that middle sentence maybe it's a little unclear if they are tying that to conservatism, but it's definitely surrounded by it.

comment 6y ago · link · parent

xkcd 927, I'm not even going to link it because you know what it is.
1
697071
92