skysight-inc/HackerNews huggingface dataset:
Having just seen a whole bunch of React shops when interviewing for a front end position, a _lot_ struggle with React but also really enjoy it. Definitely don't see a significant difference in the end from Angular, they're really similar frameworks.

I think the ones that really have invested in making React work in their org but move a _bit_ faster, but Angular making strong decisions and providing really good patterns out of the gate is extremely valuable.

Both are great frameworks, so adopt works best for your company, your team, and your product!
Showing posts only to certain people (the poster's friends) has been a core feature from the beginning. Pages currently have the option to restrict posts geographically (although I'm unsure what that setting does exactly). I'm sure Facebook has already solved many harder engineering challenges than this. I know that Twitter already has geographical blocks in place based on content and they do have similar conversation, sharing, and like features.

In the law, costs of complying were estimated to be 28 Mio. € per year (for all social networks combined). I don't know how accurate this is but probably not orders of magnitude off.
There is no chinese language. There are many languages in China and the official language is Mandarin. There are many different ethnic groups in China as well, with different languages (not dialects) and even different writing systems. In my years in China in the 80's and 90's it always struck me that almost the first thing someone asks when you meet someone new is "what are you" Canton, Hakka, Chiu Chow etc. I lived in Beijing for a couiple of years too, and it was the same. The whole "we chinese" line that a lot of people believe is meant to hide the fact that Mandarin is the language of empire. This has changed in the last 20 years, but for most people I knew in Beijing in 2000, who were not from Beijing, Mandarin was a second language. And no one I met there could speak Cantonese. My wife, a native from Hong Kong, still has to speak English when going to Shanghai or Beijing. Hong Kong started as a British Colony and is now a PRC Colony.
i certainly have to agree entirely with what you said. i just recently got into watching silicon valley and have been binge watching it, and you definitely have a point with how the analysis in the top answer is very reminiscent of the mentality that Peter Gregory would so frequently display.
Does Apple Music do the same? Apple has been more privacy-focussed than other companies, or at least has tried hard to portray themselves that way.
Yep, those Chinese bootleggers of a Swedish children's toy are gonna be rolling in it.
Japan has not functionally been a democracy since the 1960s, when US intelligence services funded a right-wing takeover of their government that has, with little interruption, remained in place. Its wealth is largely the product of it being the primary client state of the US empire in SE Asia.

The current leader, Abe Shinzo, is actively working on dismantling what little semblance of democracy remains, including silencing the press and passing laws to lock up anyone who "plans to protest" against his government.

http://www.nytimes.com/1994/10/09/world/cia-spent-millions-t...

https://foreignpolicy.com/2016/05/27/the-silencing-of-japans...

http://www.japantimes.co.jp/news/2017/03/21/national/crime-l...
And then there's a community discussing the work and it's motivations. Maybe people is driven more by curiosity than money.
Interesting. My kid is going into 4th grade and probably 98% of all the homework he's ever brought home has been math. I've been wondering why. I certainly didn't think it was based on rationality :) They have reading goals as well, but it's not required or guided in any way, they can read whatever they want. That seems like a worthwhile task as well.
Functional programming for deep learning
Won't this be a good thing for everyone, even Tesla?
A co-op could be a mutual company (i.e. owned by its customers) or it could be owned by its employees. It's an umbrella term for both.
Another useful guide is Ben Root's Anatomy of Matplotlib tutorial: https://github.com/WeatherGod/AnatomyOfMatplotlib

I'm a bit biased, as I wrote this particular section (most of the rest is Ben's work), but the plotting method overview is a very useful cheatsheet: http://nbviewer.jupyter.org/github/WeatherGod/AnatomyOfMatpl...

It gives you a compact visual representation of what the main plotting methods do and the differences between them.
It depends on what the #1 usage of batteries will be.

Utility scale battery usage don't really care about the specifications. We just need a lot of them, cheaply. Shear size can make up for a lot of problems.

But Car batteries are highly sensitive to power, weight, cooling... issues that require innovation and improvement. Its unlikely for any US Car company to buy cheap batteries from China. They'll instead build batteries as a competitive advantage over each other.

---------

I can't help but think of China's "Great Leap Forward". They believe that Steel is the future, but for large swaths of the country... the best "steel" that China makes is Pig-Iron (an intermediate product before Steel).

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

If the "best" Lithium Ion cell that China mass produces has poor weight and/or power density, then it has no use in a Car. Cells and Batteries are the #1 issue for an electric car. (More weight requires more batteries to lug around). Cutting back on weight while increasing the power is how you make a superior vehicle.
Aren't you conflating TDD with just automated testing?
At the peak of JavaScript fatigue in 2013

I don't think JavaScript fatigue peaked in 2013. FTA:

it is quite easy to maintain a large, flexible, well-engineered SPA with React, Vue, or other lightweight JS libraries, even at enterprise companies with large teams.

Vue's initial release was just over three years ago. Other technologies used by enterprise companies has usually proven itself for a decade or two. Articles like this don't help with JavaScript fatigue.
Do you miss looking at a case full of vinyl records?

Opening the sleeve?

Reading the jacket?

Hearing the mechanical sounds of the turntable moving, the arm lifting, the hissing and popping?

Maybe people don't just want music? Maybe there's more to it than just the sounds of the musicians? Physical book sales are up as well compared to ebooks. I get it. I love my bookshelf. I never read an ebook these days (except for reference).
Average national home price as reported by CREA. And, as we already discussed, real growth from May 2016 to May 2017 was just 2% including Vancouver and Toronto. Several provinces are seeing real decline in home prices. I'm not seeing where this substantial growth across the entire country is hiding...?
> Its unlikely for any US Car company to buy cheap batteries from China. They'll instead build batteries as a competitive advantage over each other.

Just like US processor or SSD companies build things themselves?

I'm being ironic but my point is that when China cranks up production I don't see why US (or any other companies) wouldn't buy their cheap products as long as they meet the required specs.

Edit: Comparing Maoist China to post-Deng Xiaoping China is kind of silly :)
This was just an intro. There will be a part 2. It's a pretty large subject.
They'll be fine after a few days of training.
Not a parent myself. (But I had a couple.)

Whenever the subject of parenting comes up, I like to throw this cherrybomb into the discussion: Judith Rich Harris

"Judith Rich Harris (born February 10, 1938) is a psychology researcher and the author of The Nurture Assumption, a book criticizing the belief that parents are the most important factor in child development, and presenting evidence which contradicts that belief."

http://en.wikipedia.org/wiki/Judith_Rich_Harris

To see how this idea may play out in practice, consider the fierce debate over tiger mothering from a few years back.

Here's the HN discussion:

https://news.ycombinator.com/item?id=2090678

My take on Tiger Mom Amy Chua's methodology (at the top of that thread):

"Chua probably believes that its her strictness and strong principles that are leading her children to excel. And these have their role, no doubt. But I would propose, following Harris, it is her oppressive control of their social lives which is the much stronger factor."
What is a good GMAT score for MBA applicants?
Which is a phrase used much more in modern Swedish than English.
you don't go for the venue, but others do - the asker and the answerer who generated the content in the first place. You're just getting the benefit of their exchange due to SE's existence. I don't understand why you have an issue with SE hosting content in exchange for permission to advertise on it. I have to pay amazon/digitalocean to host my content - if it costs something for a host to provide it then they can either make the money back somehow or constantly lose money.
Building m.uber: Engineering a High-Performance Web App for the Global Market
That's fair feedback. There will be a part 2 where we will dig in more. As I mentioned in another comment, it's eating an elephant. 1 bite at a time.
which episode?
Once you strip out the racist and homophobic filler was it actually good analysis?
Sounds like #scala used to be.
California Today: Should a Tech Whiz Be in Charge?
Such excellent acting.

RIP Christopher Evan Welch
Comparing Terraform and Spinnaker
All the players I've used have auto return, is that less common these days?
>TDD is this crazy religion of writing tests for everything, including the lowest-level helper functions in a module that don't correspond to anything that would be tested in a regression test suite.

And like all crazy religions, the followers ignore the prophets.

Robert Martin is likely the biggest evangelist for TDD, and he does not advocate what you say.
Docker Multihost Overlay Networking on DigitalOcean with Swarm and RethinkDB
To solve the more immediate problem - why not just use a mirror?
I think the failures are due to a combination of engineering, economic and human reasons.

TDD is counter intuitive to how most people think and work. They think of the features first, implement them and then once it's working want to have tests to ensure it stays working, especially with continuous delivery, testing is mostly about checking for regression as high frequency iterations are done.

Even if things starts out ok, often at some point, some person in the team breaks the flow. You have to be quite rigid about procedure and in my experience most teams don't have the discipline for it. This is especially true when there are business pressures in some companies that put pressure on the development team. We've all experience instances where a program manager or producer asks for estimations and an inexperience developer only considers the coding time. To be honest, unless you're working at one of the top tech firms where everyone is interested in solid engineering and there's adequate revenue to enable this, I still find even basic automated testing in general is still a struggle to have in some companies. The reason for this is because the increased development cost is difficult to measure and so it's absorbed as a cost. They don't realize how much development is costing because they cannot compare it to the alternate reality where they did things a better way. Whereas feature issues are obvious to see for everyone.
Ok. That's still not backed up by sound reasoning though. Just because one party has more white people does not correlate with anti-Latino racism. Why would you think that's the case?

Living in the bay area, I've encountered more anti-black racism from Chinese people than any white people. Should I take that to presume whichever party has more asians is automatically racist against black people?

Just because a party has more people of a specific skin color than another says nothing about racist behavior. Anything else would imply that the Bernie Sanders crowd is the most racist group of them all (skews very heavily white).
As for religion, it depends entirely on how you view it. Most parents have at least a small set of values (whether they be open-mindedness, tolerance, hard work, generosity, etc.) they wish to impress upon their children and they frame those as real virtues, not simply potential virtues. Whether you include religion among them is simply a matter of whether you consider religion among a set of possible virtues, an essential virtue itself, or, in the case of adamant atheists, a vice or weakness.
I went this route a little for a side project because it's natural to pass up errors via `err` this way, but I found out you have to have a naked return at the end of your function no matter what. I can't at all think of a reason for this; is there one?
>No, TDD means that if there is a line of code anywhere that was not written to make some failing test pass, that code is by definition broken. ALL code must be against some test, else it's not TDD.

Robert Martin is likely the biggest evangelist for TDD, and he does not advocate what you say.

Why do people keep claiming you have to test every line of code in TDD?
The battery pack in a long-range electric car still costs more than an entire traditional car sells for.

Assembled battery pack cost to the auto manufacturer is around $190/kWh right now, so the 60 kWh battery in a 2017 Chevy Bolt for example costs GM $11,400 at least. The 100 kWh battery in a 2017 Tesla Model S is a roughly $19,000 part.

Electric motors, inverters, DC-DC converters, AC-DC chargers, etc are also costly parts, but contribute less to the cost than the huge battery packs.

There's no way to take cars that retail for $15,000 -- swap a $3,000 traditional powertrain for a $15,000 electric one -- and not double the selling price. If you double the selling price, you're either in a new vehicle segment or you're not going to sell many units.

Until or unless the cost of batteries comes down significantly, electric cars can't move into the vehicle segments with the most new car buyers. It's not going to happen in 2018; even if there's a revolutionary discovery that allows cheaper and higher density batteries, it would take years to commercialize that discovery, then start manufacturing it at scale.

My prediction: EVs don't become a large portion of non-luxury car sales until the mid-2020s at earliest. Luxury car makers are going to start converting first.
If you just want to extract the juicy bits, may I recommend "Let Over Lambda." https://letoverlambda.com/
Elon's been saying this from the beginning, he understands that is what will happen. I imagine part of being able to move forward with big ambitions is you have to make peace with that fact - otherwise fear of the unknown, of competition, will easily overwhelm you.
For me TDD is mainly three things.
Firstly it’s about testing myself so I’ve understood the task properly before writing any code at all. In this step I also can tell if my code is doing too much and therefore can tell if my method or function conforms to the “single responsibility” rule.
Secondly it’s about maintainability and logical reason. A codebase where I don’t know what it’s supposed to do, or forgot about it, I can always rely on the tests to skip the parts that’s not interesting making me to move faster.
Thirdly it’s about the ability to refactor and therefore evolving design. Even if this is a step in TDD you will always need to refactor since requirements changes over time. The solution you had is not the optimal solution anymore and therefore you must refactor anyway. Evolving design is a strength where you continuously strengthen your code while getting work done faster and faster since you can offload the reasoning on the tests, covering your back.

AFAIK TDD is actually the only way to produce code in a systematic way. When reading TDD driven code I can make certain assumptions which I cannot do with randomly produced code (there’s no system to the code). TDD code is developed automatically with tests in mind and are always a lot easier to test when you need to do it, and you always need to do it. (I would argue that there is possible code which is not testable as is, unless you refactor and then you don’t know what the code is doing the same thing as it did before).

If your tests get coupled with the code, I’d say it’s because either your method/function is doing to much or it’s a language problem, not giving you the necessary tools to ignore implementation details, which mocks usually are an indication of.

Since TDD is a systematic way of producing code (at least more systematic than not doing it), code which isn’t produced with TDD will not play well with TDD produced code since it won’t follow the same conventions, designs and possibilities.

TDD doesn’t automatically make the code more bug free, but I don’t believe that TDD cause more bugs just because you use TDD.

If programmers cannot learn or deal with TDD, you have a different problem on your hands.
Even though I'm dubious about government being too involved in business, a couple things stood out to me:

the Chinese government has launched a sweeping effort to increase the country’s dominant market share.

“This is about industrial policy. The Chinese government sees lithium-ion batteries as a hugely important industry in the 2020s and beyond,”

That’s a huge opportunity, and China doesn’t want to miss it.

While its entirely possible that people in the government make the totally wrong decision and end up wasting taxpayer dollars, this kind of forethought makes me feel that the US is going to be left in the dust in terms of renewable technology. I know there is a patchwork of federal and state money that probably goes into things like the gigafactory in Nevada, investment on this scale by the government seems like a total pipe dream here, it hurts to see how backwards our government is moving on energy. I can see how people will just say "let the market handle it" but when the best case scenario is you save the world for future generations and the worst case is you simply lose some money it seems like a no-brainer.
I think that google is kind of complicit in this then since the only way to get the stars under your listings in paid search listings or product listings is to have a certain amount of ratings using some "approved" site that they look at. We have been able to speak with the few customers that have left negative feedback and resolve issues, so it isn't useless. But Google is certainly helping to push the industry.
Depends on how much they've committed to their gigafactory.
If this topic interests you, I highly recommend the book "MP3: The Meaning of a Format" by Jonathan Sterne [0]. He tracks, among other things, the rise of the MP3, loudness, and studies in sound preference that point to how music got to be mastered the way it is.

One interesting bit is that compression to 128kbps MP3 had a large influence in an entire generation's perception of quality. He cites a study that found typical listeners, when given an ABX test of 128 vs CD, the listeners overwhelmingly preferred 120 kbps MP3.

[0]https://www.dukeupress.edu/MP3/

To your comment, though: the perception of sound quality is highly influenced by things like ritual, genre, equipment, environment, age... as well as technical limitations that impose a particular sound on an entire generation of listeners.
The transition to Angular 2+ felt like a slow-motion train wreck at first.

To their credit, though, I find the Angular development experience to be quite good now. I like that there's interest in the Angular community around generating code that can be aggressively optimized by the Closure compiler.I like to ship as little code as possible to browser as possible, as lots of people are using older computers, tablets, and phones where parsing an unnecessarily large code bundle causes a noticeable delay.

Thus far, I've had a lot more success at reducing bundle size when using Angular than when using React. But I still end up using React often, because I enjoy it and I like the size of its ecosystem.
How to Create a Budget in Mint in 6 Steps
I have a 16 month old, so I'm struggling with these same questions. Here's what I'm thinking (now), with the caveat that this is subject to change a dozen times in the next week. :)

Study:

My parents never forced me to study and I turned out okay. Instead, they used to praise me for working hard while working obscenely hard themselves.

For me, this combination of strong models and positive feedback accomplished more than forcing me to do homework ever could have.

Religion:

I was raised in a very religious family. My Mom grew up extremely religious and my Dad converted. Thing is, I was never told what to believe. Both of my parents wanted my sister and I to be critical of our religion and think carefully about what was just doctrine from a different era and what was true morality.

In the end, I pulled away from my religion because I couldn't see through all the mindless restriction and the hypocrisy.

However, now that I have a daughter, I am religious again. In fact, she's getting close to her baptism. The way I see it is that if I raise her religiously, she has a chance to be religious when she gets older. Or, she may choose a more secular life. Either way, she has a choice. If I don't raise her within our religion, she still has the choice, just a more difficult path.

I think parenting is about giving our little people options. It is not about telling them what to think.

As for media, I wouldn't dare put parental control on any form of media. Instead, I would prefer that Lauren grow up knowing that there are predators online, but that she should trust her judgement and tell me or her mom if anything confuses/scares her.

Frankly, I hope that Lauren is smart enough to beat any kind of parental control scheme that I could come up with. But, if she is and she gets in trouble, she might be scared to tell me.

Straight up, I want her to tell me that she tell me that she is being bullied, or pressured into sexting. And, if she's afraid that I'll get mad because she broke the rules, I'll lose that.
That post provides no educational value whatsoever.
Yeah, I feel like users need to have a data provider that they trust
That's about parent and child components, not about the state of a particular component. VueJS keeps two way data-binding between the template and the component; react does not and needs to handle events from jsx (or whatever one is using as template) explicitly.

And making child controllers directly alter the state of their parents is generally thought as an anti-pattern in angular 1 too, as far as I understand.
Thanks for the shout-out. :)
Cast your local video files
This sounds exactly like every person I've ever met who is in to "business". They don't specialize in any particular industry, and aren't actually doing business related things, but participate in some farcical, nebulous buzzword-centric concept of it. I would liken it to business-theater. There's a reason people like this stay in academia.
How she used Instapage to create high converting landing pages?
The whole thread started with somebody asking whether Intel management features are of any use:

https://news.ycombinator.com/item?id=14668965

To which you responded that Intel wouldn't be selling them if customers had a choice to which I responded that they absolutely would.
See here: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/s...

The "protocol" is just a deferred HTTP POST request that does not block page unload. Please use this as it is widely supported and provides better UX (page is not blocked by sync XHR).
Uber Freestyle
Typo: count is recursing on sum instead of count.