skysight-inc/HackerNews huggingface dataset:
Term limits won't do a damn thing to curtail lobbying. Lobbyists love having lots of fresh blood just looking to make a quick buck flooding the legislature.

The limits create a constantly revolving legislature that is easier to manipulate and will in general do a poorer job. If he really cared, we'd see something on campaign finance reform; but alas, he doesn't actually want to get money out of politics.
So far, oil prices are on the rise with the news of Trump winning.

It's not surprising as he heavily critiqued the deal with Iran - a deal which opened up trade of a lot of oil from the country.
From elsewhere in the comments: https://news.ycombinator.com/item?id=12913462
Yes. Bigly.
Would your own answer to this question be different if you had to pay what oil would actually cost with all externalities included, including but not limited to the gargantuan oil-industry subsidy that is the US defense budget?
Just wondering how it is compare to HDD:
(Here's my calculation base on some assumptions, feel free to correct it if you see any errors.)

2.5PB = 2500TB = 2,500,000 GB

2,500,000 GB / (80MB /s typical HDD Speed ) = 31,250,000 seconds = 8680 Hours = 361 days.

It will take HDD 361 days to write 2.5PB at 80MB/s.

I wonder how many HDD can survive 361 days of 80MB/s non stop?
The problem stemmed to policies that started back in the 70's, which kept getting expanded, which allowed for cheaper imports. This of course had the US companies jumped on, since hell, those people over seas work for 2 cents a day vs my skilled employees that turn out a quality product want $50K a year!
Well, yeah, you have a point. I myself am doubting that I've ever understood anything about the world, the result is such a shock.

However, manufacturing is never "coming back," it's already here, just automated with fewer people, and different. The world can only absorb so many cars and sponges. So those tariffs are just going to raise prices for people who are un- or underemployed and can't afford what they need now.

There are already more job openings than applicants. Getting rid of the illegal workforce is going to cost businesses (or drive some out of business), raising prices, etc etc. A few unemployed will fill some of those jobs, but at legal rates with employment taxes.

Getting rid of health insurance that many of his supporters are now enjoying is going to be a whiff of smelling salts to some of them.

My greatest hope is that he tries to follow through on everything in his contract with America. The chaos could potentially turn the 2018 mid term elections. That and inevitable demographics will rid us of his ilk in 2020, 2024 at the latest.

But like I said at the top, I doubt my own faculties today.
What 2 hour project can you assign that would let the candidate go into enough depth for you to judge their code, design decisions, architecture skills?

Where I work, our take-home is a simplified version of a task that's common enough (in our field) that we built tooling for it. It's generic, it tests understanding of a few things, and we've gone through three iterations of our own tooling so we know there are multiple viable approaches.

As for judging decisions, that's why the interview that goes with it is a collaborative code review. You treat it the same as if you were reviewing code a co-worker had written; ask questions, discuss tradeoffs, etc. etc.
Free trade lowers prices for everyone. The poors won't be able to buy food if Trump follows through with protectionism.
I will be replacing "unconstitutional" in my head with "against Donald Trump's business interests" for the next few years.
Trump's pitch was to stop the "race to the bottom", where Americans have to be "competitive" in wages with the cheapest countries in the world. The anti-free-trade stance and the anti-immigration stance come from that. Stem the tide of cheap labor and cheap imported goods, and wages for Americans will rise. Side effects, yes, but it might be an improvement. Few rich countries are as open to both immigration and imports as the US has been.

Whether Trump really intends to do that, or whether he'll just go for the generic Republican platform (tax cuts for the rich, few restraints on business, heavy military spending, God, guns and gays to distract the voters) remains to be seen. But that's not what he was elected to do, and he doesn't have political debts which force him to do that.

Trump talks about building infrastructure. That, he's probably serious about. He is, after all, a real estate developer, and they're a "build it and they will come" crowd.
Sometimes they don't come, and Trump has a few bankruptcies behind him. But he did get stuff built. One could do worse. Japan's solution to a slow economy is to overspend somewhat on infrastructure. That beats pouring money into the banking system.

(I didn't vote for Trump. But about half of Americans did, and they have some legitimate beefs. So I'm writing about what to do to actually fix the problems Trump was elected to solve.)
It's a euphemism for HFCS, which is a name that consumers have slowly come to recognize, independent of the validity of either the phrases "high-fructose corn syrup" or "corn sugar". Without regulation, there's nothing preventing a euphemism treadmill for products that consumers don't want. (Whether consumers are correct to not want HFCS is tangential, since all I'm arguing is that consistent labeling is a good thing for the law to be enforcing in the general case, but for my own edification - I thought that HFCS was strictly worse than sugar, which is pretty bad; is it equal to / better than sugar?)
How do you avoid people outsourcing their projects?
I am afraid this is just another marketing for a paid product. There are a lot of assumptions being stated as a fact.

> Since the candidate is getting paid, the candidate treats it as a legit consulting session and therefore gives their best effort in solving the problem.

If a candidate has applied for a job then it is in his interest to treat that application as his career depends on it. Best effort is wagered not on the fact that he is paid but on the premise that his life will become better by getting this job.

> It gives the candidate a real life sense of how you interact with people on the team.

Where is this coming from ? This is just another assumption the author is making.

> The biggest issue I have seen with tech hires is that they can become very defensive over their solution. I will purposely challenge their solution to see how they react.

You are asking us to be non-judgemental in the paragraphs above and then being judgemental on the candidate becoming defensive.

> Pay them immediately on Monday

Why ?
Being on visa makes this payment thing harder unfortunately. Maybe the charity idea might work for those people.
John Resig wrote up a nice analysis of tries using Javascript five years ago. It is well worth the read: http://ejohn.org/blog/javascript-trie-performance-analysis/
New Zealand has a trade surplus with China. NZ was in the TPPA, but already have a FTA with China. They were trying for one with the US, but the US preferred the TPPA. [1][2]

Since the China FTA came into effect, China has replaced the US as NZ's number 1 trading partner. The US is 4th on that list.[3]

Actual graph showing surplus:

[1]http://thediplomat.com/2014/01/feeding-the-dragon-lessons-of...

[2] http://www.stats.govt.nz/browse_for_stats/industry_sectors/i...
[3] http://www.stats.govt.nz/browse_for_stats/snapshots-of-nz/nz...
Someone asked me why I thought using Angular was a bad idea for a long term view.

All I had to say was "ask the knockoutjs guys how they're finding new recruits on the market".
There is a great set of lectures by Dan Jurafsky and Chris Manning:
https://www.youtube.com/watch?v=nfoudtpBV68&list=PL6397E4B26...

It would be helpful to have some background in Machine Learning. For a good introductory course with a mix of mathematical background, see https://see.stanford.edu/Course/CS229

NLP in the more modern systems is backed by deep neural nets. Here's a course on NLP using deep learning:
https://www.youtube.com/playlist?list=PLIiVRB6G_w0i-uOoS6cDh...
What if some of the super rich elites leveraged their economic might to counteract the effect of gerrymandering -- perhaps an endowment that explicitly offered a geographically sensitive housing subsidy based on a normalized model for how precincts _should_ be shaped could have significant effects if backed by the capital of a Gates or a Zuckerberg foundation?

I believe that mathematically fair models for precinct shape have been described[1] -- such model could provide the basis for estimating the gerrymander induced vote-reflects-voter-will-error -- and the subsidy system could encourage population shift to try and approximate the results that would occur if the precincts had actually been drawn "fairly" ...

[1] https://arxiv.org/abs/1410.8796
Protections such as what?

At the base level: Laws still apply, people will go to jail if they harm you. It's not like he's going to declare open hunting season on LGBTQ people.
Yeah, that would be an example of where even if that langue feature existed, using it would lead to a worse implementation. :(
> but even Bloomberg says "Republican presidential nominee Donald Trump said that as president he would use Medicaid to cover poor people who can’t afford private health insurance,

He might try, but haven't the Reps fought exactly that? "It's single payer!" Or maybe "we thought of it so it's OK" will kick in.
I immediately thought of this article while reading their post. Both sides like demonizing and trivializing the other, but it's important to remember... these political parties are composed of millions of Americans. Both parties have stupid and genius members. Priorities is the only thing that separates us.
I wouldn't bet on the US's longevity. Read Peter Turchin, War and Peace and War (discussed here a week or two ago), particularly noting his part about how multiple imperial peoples can't coexist in a single country...

The Fourth Turning -- on the patterns that generations tend to fall into -- might also be interesting.
That is exactly the issue. If you really want to solidify the carbon for long term storage, you'd have to spend more energy than you gain in the first place. At least I'm not aware of a process that could capture CO2 for long term storage with only a fraction of the Carbon-to-Carbon binding energy (which is what you gain when burning, minus the C-O2 binding.
What got Ruby popular (even before Rails) was its expressiveness.

Concerning this aspect, I think it's still above the other languages you mentioned.

So if you rephrase your sentence like: "jack of all trades, master of one", that is, expressiveness (leading to the "developer first attitude", developer happiness, ecc), then I think it nicely explains why it still represents a valid choice in many situations.

If it also gets more solid in some of those areas you mentioned (and it's important to note that the community is focusing exactly on some of those areas: concurrency ("Guilds"), speed ("3x3"), ecc) then it might not only stop loosing momentum, but actually start shining again (note that I said "loosing momentum", not ground: it's easy to loose momentum when you are not a language backed by Google, but it doesn't necessarily mean you're loosing ground...)

So, considering all this, why not keep it in consideration as an almost unique (expressiveness-wise) all-around tool, and keep an optimistic mind for what it is coming up with, rather than just tagging it as a falling technology?
There are tens of thousands of people at Apple who will only ever use Macs. That alone is enough for them keep making them forever.
Communication with an Automatic Computer (1959) [pdf]
Hofstadter's books on American culture and history are gems.

Broadly, the uneducated US population has historically distrusted experts and competence, preferring uneducated populists with charisma. This has generally led to the US having worse outcomes in many many areas. You can review any particular situation you know something at an expert & educated level about; usually that's in mild disarray to poorly done due to this gap between educated understanding and the electorate's choices.

This urge was understood: hence why the original US constitution had no popular vote provision for the President. It is instructive to read the rationale for the electoral college on Wikipedia.

Consequently, I'm a republic fan, but not a Republican.

I would also note that Fox News & descendants have specifically operated in a post-fact pro-opinion mode for years and years, defining the situation and the worldview of much of the uneducated populace. It lacked only a candidate to run on the Fox News/Drudge Report platform.

One could also remark that technology is inherently a political statement, and that the social media of today inherently promotes poor discourse. Elections 2016 rode in on Twitter, and disinformation campaigns flooded Facebook. It's not on Facebook to censor lies, but it's on Facebook to meditate on the modalites of media.

But, as all good nerds know, code has no politics, and politics is dirty, and politicians are liars, and politics doesn't affect them. So it's better to write code and not think about the consequences. (sarcasm, there)

Well folks, it's time to think about consequences, and ponder the events of the post-WW1 era.

Could be wise to not end up on an anti-Trump list assembled from private Facebook groups and demanded by a thin-skinned egotist.

Well, on that note, I'll be zipping my mouth on this one.

pnathan out.
So then what's your alternative? Would you prefer a system without politicians? What kind of system is that?

We must elect trustworthy politicians, we must make it harder for big money to interfere, and we must have faith in our government. It's hard for me to say right now, given our current president-elect, but it's true. There truly is no good alternative to democracy.
This creates an intractable problem when their job is deemed too dangerous for a civilization to allow to continue.

If someone's job is their identity, and their job harms others, what are some other possible solutions? (Retraining runs into similar issues as you mentioned -- coal miners don't want to become keyboard jockeys, they want their sense of pride and self worth for doing the profession they trained for.)
First off, fantastic tool and thank you for trying to be a part of the solution.

However, this does little to solve the actual problem. People are just more likely to not be civil behind closed doors. For example , I frequently commute in Los Angeles traffic. If Im attempting to merge or change lanes with my blinker on, people wont budge or will even speed up. My normally docile mother and girlfriend will expletive laced insults that they never would. They are nicer to people who may waste 5 minutes of their time in person than someone in a car who wastes maybe .01 seconds of their time.

When I make direct eye contact with them and force them to acknowledge my basic humanity, no one has ever been a traffic asshole. Conversely, in online gaming apparently the entire 12 yr old population has had coitus with my mother.

I had high hopes that the Internet would drastically reduce ignorance and make telling lies much more difficult. This whole election season would be perfect for an episode of Black Mirror.
I am very surprised that I am just reading this now. I wonder, if I had read it before (and I read NYT obsessively), that I would have re-considered by opinion.
It doesn't have to.

http://www.iea-coal.org.uk/site/2010/blog-section/blog-posts...?

My issue with the coal industry is they pushed back on any sort of regulation for 30yrs instead of innovating.

Imagine what they could have done if they had invested in clean coal technology in the mining areas of the US.

Instead, they are now complaining because they got lazy and solar and wind capitalized on their inability to get the job done.
> blanket ip ownership not so common

Really? I've found blanket IP ownership to be more common than noncompetes, at least in US outside CA. My experience, is that noncompetes are more likely to be limited to key personnel, whereas the company IP is sacred and must not be tainted, and the employee is not to be trusted to come up with their own material on their own time, at least not without sign-off.

Blanket IP is really back-door antimoonlighting anyway. You can't very well moonlight as a software developer if your employer is encumbering your IP.

I'm sure the California startup world is different from my experience.
Thanks for posting this great read. I think it belongs on the front page of HN, having witnessed HN's hyperbolic reaction to the election this morning.

It does an excellent job of diagnosing the American Left's political and social ills. It left out the most important part: a solution. It never actually validated either ideology nor proposed a solution beyond "make sure to respect and empathize with the other side."

I feel you never actually addressed the veracity of the parent poster's statement, just the tone. It is a valid criticism, to be sure, but I would like more.
Yeah, this is just confusing. The supposed economic impact of having illegal immigrants work for less than minimum wage is not going to be worse than the impact of housing, clothing, and feeding them for 2-5 years.
Excuse my ignorance, but why is that a bad thing? From what I remember, visa holders staying longer than they are allotted is the number 1 source of illegal immigration.
What is definitely the case is that hypocrisy is one of the "deadly sins" trump just demonstrated is mostly made of hot air.
It's only there because Eric Copt kept copying and pasting that in articles to prove his "point". I realize that it's meaningless garbage.
Agreed - this will probably be the Trump administration action that has the worst long-term impact of all. The US might as well not bother turning up to the next global climate change summit (not that Trump will anyway). Unfortunately, though, the whole world will pay the price of increased US environmental contamination during this era.
Come on man, we all know that subtle issues are really just racist dog-whistles.
I think you are thinking of HATEOAS. Read about it here: https://en.wikipedia.org/wiki/HATEOAS?wprov=sfla1
This. 100% this.

As many others are saying, I find that this is the most comfortable way for me as an interviewee to demonstrate that I do in fact know what I'm talking about. Put me in front of a room full of people and a whiteboard and throw something at me, and I'll freeze. Freezing in that situation and being a bad engineer are wholly separate things.

Anecdotally, when I get one of these problems, I spent 20 minutes reading the prompt, looking at resources and making an outline of my code. Then I step away for the afternoon and don't think about it. Let the subconscious internalize the problem for a while and when I come back, I've got a much better mindset to approach it. Solving new problems on the spot is just a skill I don't have. I prefer to think that this is what makes you valuable as an employee and engineer, solving a problem by the end of the day. Not while under scrutiny. Personally, my resume and experience don't get me far interviewing by the big companies, but on the occasions that I get take home code assignments, I tend to get pleasantly surprised and pleased reviewers and it takes me to the final rounds (where I face the dreaded white board and actually-there-is-a-correct-answer situationals).

My two cents, this just really resonated with me. Does anybody else happen to solve problems this way?
> How do you compose update functions

If there's shared logic between update functions we extract it into a helper function. That also makes it easier to test.

I'm not sure how typeclasses would make composing update functions easier, but in this case we can be concrete. PureScript's Pux library implements the Elm Architecture, and PureScript has typeclasses. Would you mind showing me some Pux code that uses typeclasses to improve the situation you're talking about?
Parallels is even slower than VirtualBox and it's like Duplo to Lego, 'Parallels - my first VM'
Roadmap for React Native
On the other hand, people who can't run for reelection have no reason to spend all their time raising money.
What does it matter how many you write? How many do you delete?

I have a project that is 5k lines of code and roughly 11k of tests and specs(cucumber). It is a rewrite of a project that was 50k lines of code with 1.2k lines of tests and had less functionality and features than what it does now.

Lines of code are meaningless when it comes to how much value they provide. I personally prefer when a codebase is smaller because it means some thought was put into it and most likely has less bugs as a result.
“It’s still in private ownership but the easement ensures it can never be developed,” Sweeney said. “It’s not open to anyone in the public at any time, but people can email and get a permission card and go and enjoy it.”

http://www.citizen-times.com/story/news/local/2016/11/08/box...
They aren't necessarily in dire straits, but it seems their (prematurely) slowing growth has many spooked, and it is also puzzling, as they shouldn't have slown down this quickly.

Also, many complain about Twitter's user experience, overall product, and lack of desire to tend to its users and their needs.

Essentially, it seems they just stalled out, are slowly drifting deeper into mediocrity, and aren't going anywhere. Though with growth still present (as their stock price is now more aligned with their projected growth rate) and a large (billions in IPO proceeds) cash cushion relative to their size.
The DAO. It was, indeed, pretty disruptive.
I got my first software job (at a startup) by doing well on an unpaid take-home challenge that I was able to spend a weekend on. A few years later I missed a job opportunity with another company by failing an optimization challenge question that had a much shorter time limit; I started formulating it as a graph search and by the time I realized that was a dead end approach my 3 hours were up. I definitely prefer having a weekend as opposed to a few hours. (Maybe I would have been a bad hire for the 3-hour-challenge position, if a typical work day really involved solving problems like that in a few hours, but I suspect it wasn't representative.)

When I was first looking for a software job I was a researcher who'd written a lot of his own tools but I didn't yet have an open source portfolio or commercial development experience. Solving a challenge was a great way to break the chicken-and-egg dilemma of needing experience to get hired and needing to be hired to get experience.

If I had to switch jobs again I'd also love to find employers screening with weekend challenges instead of live coding. Paying me to complete challenges would just be icing on the cake. I've done well at every company I've worked at, but asking me to write heapsort or whatever while you're peering over my shoulder and the clock is ticking is extremely stressful and unrepresentative.

I'm one of the people screening hires at my current job and I don't want to subject candidates to stressful live coding. But neither would I want to hire someone who can't write decent code and challenges look like a good way to prevent that. Surprisingly, even some people who include a github link in their CV are sharing code that's quite poor. (Like turning O(1) operations in an inner loop into O(N) because they picked the wrong collection type, in a language that offers perfectly suited collections in the standard library.) Maybe they think that nobody will actually read it, and having a github account at all will mark them as savvy?
It's about an iOS 9 jailbreak. (In case you where asking yourself "wtf is pangu9", like I did)
Now I'm glad that I don't use Spotify anymore!