skysight-inc/HackerNews huggingface dataset:
I think that USA do not see inmates as human beings. That is the only way to explain what happens there. But, they are human and abusing them is as much as a crime as abusing anyone else.

While I agree, I think this is more corporations do not give af about their customers. How many music services have done this? I don't have a count, but I've heard of a few.
I almost only use mocks for external calls (usually external APIs). Very rarely, I use them for some internal code that is unusually time consuming or difficult to set up.

A few months ago, I did a contracting job and the team I worked with used the "mock everything" approach, without even one integration test, which to me seemed crazy (especially for a component which was calle "integration layer").

I tried hard to find the advantages in this approach, studying what the rationale and the best practices were, and questioned my previous assumptions. In the end, I had to confirm those assumptions: even if there were hundreds of tests and they all passed, many logical errors weren't caught.

Even worse, they gave a false sense of confidence to the team, and made refactoring super-slow. But the team leader was super-convinced it was the best idea since sliced bread.
It's because GM can't produce Bolts without a significant loss (for now) and Leafs aren't taken very seriously by most people because of their shorter range, fast battery/value degradation and frankly, funky appearance.

Any many of us are energized (no pun intended) by moving completely away from gas. So while plug-in hybrids are better than ICE cars, we don't get excited about them the same way.
"Free-will"!? That's that, there commie-speak! /s
Makes no sense. What complexity are you talking about? You get that info on the client to create another request to the server in order to send it over?
The gun homicides in the USA are from smaller-scale gang war fare as well
I will probably be the lone voice here defending mock testing but probably not for the reasons you'd expect.
Does mock testing end up being brittle? Yes.
Do you have to refactor the tests immediately after making small changes? Yes.
Is there a cost to this? Yes.

Mock based testing however is the only thing I've ever encountered that forces me to think very, very clearly about what my code is doing. It makes me inspect the code and think about what dependencies are being called, how they're being called, and why they're being called.

I have found that this process is extremely valuable for creating code that is more elegant and more correct. I value mock tests not for the tests that I end up with at the end, but for the better production code that I wrote because of them.
I was going to be the long haired *nix geek here but I have no hair and the world is moving on. I can't pick bones with python for data science/analysis and personal convenience. _However_ as a principal engineer if someone was to say, for a trivial dataset, that we need python and pandas for an operation like this where python + pandas was not already provisioned the answer would be no.
Maybe I should read the book, but somebody probably knows: Is there a set a default widgets when using QML?
I’ve seen some fairly out of touch HN comments before but this one really takes the cake. You have zero idea how ridiculous you sound, talking as though 300k salaries and 2.5M in savings is something normal. Most Americans don’t have 50k in savings, never mind millions.
More in depth article from Reich: https://www.nytimes.com/2018/03/23/opinion/sunday/genetics-r....
oh ok; I double-misread your above comment. My assumption was that phantom types were also about encoding state machines in types and thus could work for communication protocols too just like your session type article; hence the question about the difference between the two.
It is already a mass market car. Model 3 is the best selling car in California for the second half of 2018. By best selling, I don't mean in the EV category, I mean above Civic, Accord, Camry, Corolla.

See https://cleantechnica.com/2019/02/23/tesla-model-3-was-top-s...

...and the price just dropped, so you can expect even more competitiveness than the data from 2H2018.
Or use Yarn.
I agree, it will definitely be the largest health care scandal in Sweden's history, but it will most likely not end up with a class action lawsuit.
14.3?
Drugs are smuggled all over the world yet Mexico seems particularly prone to gun violence.

I agree with you in one sense though: there is no hope of eliminating illegal firearms in a continent already awash with them.
Chinese Tourists Challenge Cash’s Reign in Japan
It’s also worth remembering that the existence of nuclear fission was only discovered in 1938. Getting some of the details wrong in a popular magazine only two years after the phenomenon was discovered doesn’t seem too bad at all.

Fission went from initial discovery to wrecking cities in only seven years. It’s like if Ben Franklin started out flying a kite in a thunderstorm and ended up creating a smartphone.
After!
>The aversion to the command line is also something that bothers me but I don't run into it as much in my field.

The company I recently started with is really big on Splunk.

The fact that they're proud enough of coming up with the tagline "Taking the sh out of IT" to print it on branded t-shirts featured in their training material was a hint that I wouldn't be a huge fan of the product, personally.

Abstracting things away is great, but something about IT pros being proud of avoiding the command line rubs me entirely the wrong way.
Note that this is just following in the footsteps of the Model 3, which will also have the low end models manufactured in China.
Projects doing similar things:

Atom: https://blog.atom.io/2017/11/15/code-together-in-real-time-w...

Xi: https://github.com/xi-editor/xi-editor/blob/master/docs/docs...
What you're basically saying is there's a spectrum, but people just disagree over how to demarcate the spectrum. I agree, and so does the US government. Right now, automatic rifles and anything more powerful than them are illegal to privately own. That's just where a large part of the US draws the line right now: semi-automatic and below are okay, anything above is not okay. Maybe that line will move in the future, but people are already thinking in this way, they just disagree with you over what things are on which part of the spectrum.
According to the article they have been using rust in production for 1½ years, .net core 2 was released in 2017 so it definitely existed. If .net core was mature enough for their liking is however another matter.
I never understood how anyone can take another life. To take away the memories, the experiences, the future potential of another spirit - all for the sake of what? Hate? Money? Power? How can anything be worth more than the only thing that allows one to experience this world? Sad.
The S and X both released premium versions at first, so if Y did the same thing, it would be the 4th in a row.

For Roadster I don't remember, so maybe the 5th in a row.
The article is about something else -- whether people admit racism to a survey. Americans know that racism is "politically incorrect".

How many countries had millions of slaves (15% of the population) to free?

Also interesting that you say "up to and including freeing slaves", which excluded the racially founded prison industrial complex that was created to replac
e slavery after the 13th Amendment.

Not saying US is the worst, am saying not to ignore USA's ugly history and present, especially USA claims to be the world leader in freedom and human rights.
I think it's dangerous to turn a complex and global issue into a binary social signaling device. We do terrible things to the planet. We should stop. Combining "should", goals, and politics only turns the majority of the planet against you. The global economy, global politics, national politics, and climate are all extremely complex systems. Ban plastic straws and cows and you may think you're helping, but end up being an example of failure to others. Make an electric car that is cheaper, more efficient, and outperforms gasoline, and you've taken a solid step towards saving the planet. When it's a binary issue, you lose the nuance of having choices. You burn witches before even figuring out if they were helping or hurting with their heresy. Is nuclear worth the risk and waste to offset carbon? Is the wind farm worth it if it destroys a bird's only habitat? Those are cost benefit questions. Believer or denier is a witch trial.
Barcelona, Amsterdam. Same/better quality of life
> And why not allow a smartphone or laptop with internet access in general?

One big reason is because inmate access to communication with the outside world always results in numerous complaints of harassment, usually from inmates' (ex) significant others.

Internet access makes it too easy for inmates to conduct this remote abuse while hiding evidence that they did so.
I'm mostly used to Capybara / Selenium (mostly chromedriver) and have a reasonable level of Javascript/Node but I'm really not sure how I would use this project beyond the setup of having the different browsers running, am I supposed to load those config with WebdriverIO using `remote`?
Cars tend to be affected a lot by tariffs. A good way to make more money selling cars Is to sell more cars (at a similar margin) and a good way to do that is to make the cars cheaper (at a similar margin) and a good way to do that is by cutting out tariffs (and possibly reducing transportation costs too).

Making cars (and batteries) in China is a statement that Tesla think their cars will be more popular in China if they can reduce the price and that will justify the cost of making the factory there.
I think it is healthy to feel regret at having caused hurt, even if you consider it collateral damage related to your own personal growth.
A country does not have to justify its tax rates before Facebook. A country should focus on serving its citizens, not multinationals.
"We look at them individually to see if there is a correlation between loose gun laws "

Laws are irrelevant if they are not consistently enforced.
Whilst I would agree with Hanlon's razor possibly being applicable here, there is another (unwritten) rule (can we call it the HN Law?) that says that as soon as you invalidate the value of someone's life, no matter the context, you automatically ascribe approval of any potential abuses against them.
Don't know why they included two figures when two numbers would do (it appears the first graph in each is showing the definition of median and quartile).

If the top quartile of performers were consistently the top quartile, then the plots in Fig. 2B would be the same because their performance is persistent over two three-year periods. Same thing can be said of Fig. 2A but with the median.

The simpler and more intuitive way to show this would be a some way to display "skill performance", "chance performance", and "observed performance".

| -------------- | Skilled | Chance | Observed |

|---------------+------+-----+-------|

| Median------ | 50% | 25% | 25% |

| Top quartile | 25% | 6.25% | 7% |
What you want to spy on are side-effects that are part of the function's contract.

If you have a function that fetches data, you shouldn't test that its hitting the data layer, only that the correct data is returned. This way when you improve the function to not hit the data layer at all under some conditions, your tests will keep passing.

On the other hand, if that function is supposed to log metrics or details about its execution, you should test that ,as it is part of its contract and can't be inferred from the return value.
China did have ailing infrastructure. Entire cities with no bathrooms, no drainage systems, no solid roads, no road stripes, messy wires for electricity delivery.

The only difference is that the govt there can do whatever they want and they decided that infrastructure is the way to go.

American politicians don't have those visions of magnificient infrastructure any more. All they want to do is play divisive politics.
It's america: 3/14
No tax avoidance. Companies pay millions in taxes just to get them back in refunds. While this is not bad, it starts to look bad when they don't generate fake expenses locally, but they do that in a different country. It means that the money gets neither to the government, nor the local market. So the revenue tax guarantees, that at least government can get that money.

Other benefits are virtually no accounting (the money would be taken on a bank level), lower taxes for the majority of society (SMB's paying fraction of what they pay now), no tax-gray areas and limiting to long chains of "middle man".
The Smalltalk feedback/living-in-the-debugger coding style. I was happily coding in Python, C#, Java etc when I ran into Squeak, and then Pharo and Dolphin Smalltalks.

This style presents the smallest barrier between idea and working code for me.
Worse than Blackwater because of the scale.
Oh but it's not "mandatory" if they restrict privileges for everyone and then offer them back for labor. Or jack up prices for monopoly goods and services and then offer jobs, which is illegal in "compared towns" outside of prison.
New York Times has this 2016 article on how the European model is more advanced in many respects:

https://www.nytimes.com/2016/10/23/magazine/why-isnt-the-us-...

And also this blog post by Cliff Mass:

https://cliffmass.blogspot.com/2016/10/us-operational-numeri...
Author here—

It's about 27,000 words, so about a 100 pages at industry "standard" of 250-300 words a page. So, taken in a literal sense, yes.

Does it need a book's worth of content? It depends.

If you have a lot of experience negotiating quite possibly not, you can figure it out on your own probably (you can learn some techniques from interview I did https://codewithoutrules.com/2018/01/08/part-time-programmer... and https://stackingthebricks.com/guest-post-how-30x500-alum-chr...).

Some people need more information though, and that's what I've tried to provide.
The Shutdown Problem: How Does a Blockchain System End?
The standard car window sticker I’ve seen at normal car dealerships does have information on the expected gas costs. https://commons.m.wikimedia.org/wiki/File:Fuel_economy_label...

TCO information is probably harder to estimate but if it were done in a standardized way Tesla would probably suffer given how unreliable their cars are and all the maintenance horror stories of cars being in the shop for months and months due to backlogs and backordered parts... Consumer Reports and other independent agencies do try to estimate some of this I think.
I also went on a year-ish long sabbatical after burning out at the current job, also at age 30 with no spouse or kids.

At first, I just went on walks in local parks/gardens/streets, woke up late and sat in sunny cafes.

I started studying kung fu. I played more music.

I picked up old math problems (I had left academia; I have a PhD in math) and worked on them again; found some new ones too. I wrote up the results and put them on a blog.

I got interested in the idea of translating animal sounds to human speech sounds a la style transfer or CycleGAN; that culminated in https://humantoanimal.com/ and also involved learning a whole bunch of new technologies.

I tried selling services as a consultant but didn't land any clients — there's probably a whole bunch of reasons that that didn't work for me.

After about a year of being unemployed I started applying for full-time roles again and now I'm working as a machine learning engineer at a household-name tech company.

The flavor of burnt-out that I had was that of constantly thinking of work-related problems and how to solve them; that feeling went away after a few weeks. Being outside in nature during the workweek and during business hours really helped.

Some of the things I occupied myself with were things I had wanted to do but hadn't had the time/energy for — more time outside, studying kung fu, more music — but the other things came about after idle thoughts about things that interested me. Send me an email if you want to chat in more detail!
I've just released a new version that fixes the issues reported here so far. Thanks a lot for your input!
I haven't had a problem with 120V. They have always given me 3-5 miles of charge per hour regardless of weather. But I have had superchargers go at that same rate when it is cold.

I quickly learned my lesson to charge in the evening or after driving for a while instead of first thing in the morning :)
Apple accepts Linus Henze's report on keychain bug, offers no compensation
>One of the answers is money.

It would be convenient if it were true, but I don't think money is a great explanation. I come from a rural area in the Midwest, the people are very poor (even poorer than the urban poor) but have a lot of guns. Despite being poor and armed, the gun homicide rates are very low (the suicide rates are unfortunately not that low).

Can you help me understand why poor farmers in the midwest don't commit as many murders as similarly poor and armed Mexicans?
That has to be one of the best strategies out there. So long as you just read the trends right.
Tests don't exist for solving bugs as much as they exist to prevent regression. Writing exhaustive tests is not sufficient to bring c' to zero, because some of those bugs exist because of the developer's own presumptions about how code should behave.
>This high level of unregistered firearms has been attributed to Mexico’s proximity with the United States, as thousands of gun retailers sit just over the border. A report on gun trafficking between the US and Mexico revealed that almost 90% of the guns recovered and identified from Mexican crime scenes can be traced back to firearm dealers in the neighbouring country.

Obama's ATF forced dealers to sell guns to straw purchasers who took them to Mexico.
The very post you replied to answers your question: You get a race to the bottom. Competition pushes taxes lower than they would be if the democratic government of each country could set them freely as they believe is fair.
What the author didn't consider is that test code adds redundancy to the code base - if you introduce a bug only in the test code, while the tested code is correct, will make the test fail, and you will fix this.

Where instead the amount of test code can become a problem, in my experience, is with maintenance. Efficiency is very important.
I wasn't speaking to the goal of generating a sequence that can be lazily evaluated.

I was speaking to readability.
Why did this get marked as dupe even though it is the only one I have seen on the front page? And the only one I can find at all through search.
Mexico is a crime ridden third world country. What do you think it's citizens are going to do if you open up the border?

How many millions of people do you think the US can suddenly take on? And you don't think they'll bring crime with them?
Do you have an actual source that corroborates that with actual data? It seems true, but I haven't found anything that actually tests the premise. I've found studies that show that code with lots of unit tests tends to be more bug free, but not anything about whether unit tests increases (or decreases) development time or whether test code actually has less bugs. I think it would be interesting if there is also a measure of code complexity, and if less complex test code correlates with less bugs in the test code.
Ask ten different scientists about the environment, population control, genetics and you'll get ten different answers, but there's one thing every scientist on the planet agrees on. Whether it happens in a hundred years or a thousand years or a million years, eventually our Sun will grow cold and go out. When that happens, it won't just take us. It'll take Marilyn Monroe and Lao-Tzu, Einstein, Morobuto, Buddy Holly, Aristophanes .. and all of this .. all of this was for nothing unless we go to the stars."
Europe had the “advantage” of being carpet bombed in the mid-20th century. Planning out the infrastructure you would like to have in the absence of competing concerns and American support to do it is relatively straightforward.
An internet mapping glitch turned a random farm into a digital hell (2016)
How is it better for something to stop working but not exit? It’s exceedingly uncommon for anyone to have correct handling for OOM exceptions so the most likely effect is that stuff partially works - servers accept requests but never respond, apps have menus/buttons which don’t work, etc.

Similarly, if developers who deployed apps knew enough to avoid this, we’d know by now because it wouldn’t happen so frequently. It does highlight who failed to do real health-checks (e.g. years ago most Hadoop services needed huge amounts of RAM to start without crashing but they’d be listed as okay) but it’s the kind of thing sysadmins have been cleaning up for decades.
What error do you get?
> If I was in the shoes of a traditional car maker I'd be very worried.

Why? They'll just make EVs. They already produce multiple drivetrains. An EV drivetrain is just another one. Countries and cities are legislating against ICE cars so all car manufacturers need produce battery electric or hydrogen fuel-cell cars.

As they transition to EVs they'll still sell ICE cars which are cheaper to buy, faster to fuel, and have better range.
You don't know that the test code is free of bugs. You don't need to.

Case 0: No bugs in the test code. All is well.

Case 1: Bug in the test code that causes some bugs in the real code not to get caught. That's bad, but you're no worse off than if you didn't have the test at all.

Case 2: Bug in the test code that causes correct real code to look buggy. Result: the test fails, you look for problems, most likely you find that the problem is in the test code and fix it. Going forward, you have a working test.

Case 3: Bug in the test code that makes something else break. This can happen and is genuinely bad, but (1) it only affects testing, not your actual product, and (2) most bugs don't behave that way.

The test code is a net win if the bugs it catches in your real code are worth the effort of writing and debugging the test code. That's no less true on account of the possibility of bugs in the test code. It just means that when you estimate the benefit you have to be aware that sometimes the tests might be less effective because of bugs, and when you estimate the cost you have to be aware that you have to debug the code, not just write it the first time. And then you just ... decide what's the best tradeoff, just like everything else in engineering.

(And no, you don't need tests for your test code. The test code is a test for itself as well as for the code it's testing.)
The debate here has focused on guns as the problem. Guns are not the problem, they are an expression of the problem. To quote the article: "The Economist stated that rapid urbanisation and inequalities in wealth distribution were some of the largest factors in violent crime, and as one of the most unequal countries on the planet, Brazil backs up this claim." I think this statement applies to Mexico and other Latin American countries, to varying extents.

Removing guns from the streets may reduce gun deaths, but the violence will probably remain as long as the underlying social injustices are not addressed.
It was already released and won an Oscar for Best Documentary Feature at the 2019 Academy Awards.

It's something that you should consider viewing if you have the chance. The cinematography alone is worth the price of admission // rental.

https://www.nytimes.com/2019/02/24/movies/oscar-winners.html
Seriously, you downvote this? Huh. The hate runs deep.
Out of curiosity, which more modern stacks were those?
what about placing a capacitor after PWM...
Oh, and to be clear: I think this is a problem with OSS sustainability – shipping updates takes real work – more than NPM, mildly exacerbated by the JS stdlib leading to more modules being used instead.