skysight-inc/HackerNews huggingface dataset:
You don't need a whole framework to intermediate events and timers.

One approach is to have a library that you call instead of the native addEventListener, setTimeout, etc. method.

Another is to use something like zones.js which does this for basically ever async API in the browser, and then use test utilities that let you play with time, like flushing all timers, or advancing time by specific amounts.
> Unless, you know, you are implementing the standard library for a new language, so that there is no such "off the shelf library" available.

The ability to write down a complex algorithm on the whiteboard without any references is not a very good proxy for being able to implement the algorithm in a standard library.

It vastly over-selects for people who are good at memorization.

I know how to use these algorithms and data structures, and in fact do use many of them regularly. I can even implement them myself when I need to. But I certainly don't go to implement them without access to any references—if you're writing a standard library and don't consult references when doing so, then that's a bigger indication of you being a bad engineer than a good one.

It's really just an elaborate signaling ratio that you're willing to devote lots of time to studying. I personally don't think Google is such a mythically fantastic employer that I would spend tons of time studying just to get a job — and that's probably the point.
Finally! This is a problem not only in SF, but NYC, Boston, DC, LA and London for example.

The problem is that zoning laws that restrict housing density make rents higher for tenants while artificially increasing the value of property for landlords. This is one reason why Donald Trump who has substantial property in Manhattan is as wealthy as he is.

The use of politics to create artificial scarcity is a form of "economic rent" which is a "market failure" creating inefficient markets. This was done in NYC with Taxi medallions which had limited the number of medallions to 13,000 creating artificial scarcity with the result that the market value of a taxi medallion was $1.2 million. Thankfully, Uber/Lyft/Gett came along and relieved the artificial scarcity and made taxi-like vehicles more available. Price for taking a taxi are lower and the value of the medallion has dropped from $1.2 million to $700,000 or even lower. Everyone wins but the taxi medallion "landlords" and the banks/credit unions that provide the mortgages.

All that needs be done is to reverse the laws that benefit landlords over tenants by creating artificial, politically induced scarcity. This will dramatically improve the local economy as tenants pay less money on rent and more on goods and services in the area. It will stimulate a housing boom employing construction workers and as more people move into the area, it will further stimulate demand for goods and services helping local business. As housing costs decrease, firms local firms can hire more employees and further stimulates the local economy. Everybody wins except for the wealthy landlords, who like the taxi medallion owners will see their artificially high property prices decrease.
To quote Milton Friedman:

> “Government has three primary functions. It should provide for military defense of the nation. It should enforce contracts between individuals. It should protect citizens from crimes against themselves or their property. When government-- in pursuit of good intentions tries to rearrange the economy, legislate morality, or help special interests, the cost come in inefficiency, lack of motivation, and loss of freedom. Government should be a referee, not an active player.”

(from https://www.amazon.com/Capitalism-Freedom-Anniversary-Milton...)

Specifically addressing antitrust:

> My own views about the antitrust laws have changed greatly over time. When I started in this business, as a believer in competition, I was a great supporter of antitrust laws; I thought enforcing them was one of the few desirable things that the government could do to promote more competition. But as I watched what actually happened, I saw that, instead of promoting competition, antitrust laws tended to do exactly the opposite, because they tended, like so many government activities, to be taken over by the people they were supposed to regulate and control. And so over time I have gradually come to the conclusion that antitrust laws do far more harm than good and that we would be better off if we didn't have them at all, if we could get rid of them. But we do have them.

> Under the circumstances, given that we do have antitrust laws, is it really in the self-interest of Silicon Valley to set the government on Microsoft? Your industry, the computer industry, moves so much more rapidly than the legal process, that by the time this suit is over, who knows what the shape of the industry will be. Never mind the fact that the human energy and the money that will be spent in hiring my fellow economists, as well as in other ways, would be much more productively employed in improving your products. It's a waste! But beyond that, you will rue the day when you called in the government. From now on the computer industry, which has been very fortunate in that it has been relatively free of government intrusion, will experience a continuous increase in government regulation. Antitrust very quickly becomes regulation. Here again is a case that seems to me to illustrate the suicidal impulse of the business community.

(from http://object.cato.org/sites/cato.org/files/serials/files/po...)
My thesis is that procrastination comes from cognitive dissonances. And that's the reason, why I don't understand these articles. They make a "science" out of something rather simple. The reason I (as a hobbyist) "can't" write a book or finish a piece of music is that I have ridiculously high, idealistic standards when it comes to producing a work of art. I much rather produce nothing than something mediocre. I don't even feel bad about it. I embrace fatalism in this area. If I don't produce anything worthwhile, so be it. I can't help it but start one musical project after the other. On rare occasions I've got the feeling I am onto something. In that case finishing is no problem. It could turn out that nobody likes what I do but in that case it doesn't matter because I absolutely feel that I did the right thing.

On the other hand, there are professionals: people who create for a living. (I am not talking about extraordinary people like J.K Rowling or J.R.R. Tolkien but people who have to work every day just to fulfill a need of the market) If you decide to go this route then idealistic thinking is (mostly) out of the question. If I had to write a pop song or light fiction I'd just do it. All that is required is knowing the basics of your craft and top down planning and then you just work through the list like a maniac. It may be hard work but it's easy to do because there are no contradictions. It's like knowing that you have to walk 10k to get back home. That may be inconvenient but you quickly realize that you have to do it and then you simply do it.
I don't doubt that there are people who are willing to let Twitter decide for them what content is worthwhile, just that it's sad that that's what the platform is now. A bland community for casual users promoting the same viral content you can get anywhere, rather than a unique community for power users. Those people are only going to see what Twitter decides what is (or what should be) popular which creates a watered-down experience at best, a disturbing and manipulative one at worst.
> It's completely ambiguous and unexplained whether they're asking whether you disliked those specific tweets or the non-chronological aspect of the timeline.

I'm baffled by this, too. Which is it?
Don't forget - Google has a culture they're protecting. I'll play devil's advocate and say while it's maybe not immediately useful, it's probably a very good test for culture fit. If you're the kind of person who thinks about the math of algorithms in your free time, because you enjoy it or think it's fundamentally important, you're probably more likely to be a Google culture fit. If you're a successful product shipper, but you have an aggressive "get shit done" attitude and don't care much about the science and math, maybe you are not going to make the discussions with fellow Googlers that Google envisions happening around campus, or maybe you're likely to be highly success/ money oriented or I don't know, go against the culture fit criteria in some way.
If you're talking about the median American, and about essentials such as housing, education, medical care, and job security, I don't think you can claim that things are better than ever.
Researchers Report Significant Progress in Real-Time Machine Translation
Failure to do stuff like that is probably why they're looking to hire for marketing / comms positions.
Yet another reason why moving to Web Components will make everyone's life easier. No need for these framework-specific binding layers. It's just DOM.
Google seems to be doing ok to me. I like your point that success can hide problems though; Ed Catmull presents it very well here: https://www.youtube.com/watch?v=k2h2lvhzMDc

It looks like people were suggesting that Google takes this advice more to heart six years ago already: https://hbr.org/2010/08/what-google-could-learn-from-p
Have you ever done of the interviews? Or given? I've done both, multiple times and currently work there. Generally speaking the interviews are not "regurgitate academic CS" on demand. It does test your algorithmic and data structure thinking. Reason being is it's hard to find questions that are complex enough to be hard, yet easy to explain in just a few minutes, AND has richness of details. Those kinds of problems tend to be mathematical, algorithmic, etc. Stuff that, yes, is unlike what you do 80% of the time, but that is expected to be able to do.

I made it thru my interviews without remembering obscure things, only knowing basic O-notation, and generally not being a math genius.
It's based on some arbitrary thing I did some time ago to determine how large a company should be (6-8 reports per manager and N layers of management; 1 layer = 1 + 6 + 6 * 6 = 43, 2 layers = 1 + 6 + 6 * 6 + 6 * 6 * 6 = 259, 3 layers = 1 + 6 + 6 * 6 + 6 * 6 * 6 + 6 * 6 * 6 * 6 = 1555, 4 layers = 9331, etc).

As Twitter seems to be twice as large as it needs to be (3898 vs. 1949) and as it's obvious more people will need to be hired after any cuts, I arbitrarily chose 1555 and 259/585 (same number of layers, but 8 reports, rather than 6) as the numbers since they add up to about 2000.
Any idea what the profit margin was on computers back then? That's what I'd really like to know.
So, in a nutshell:

1- fewer people than before live in "extreme" poverty, this is good

2- income inequality is higher than it was, this is bad

3- productivity is lower than before, this is bad

4- joblessness is higher than before, this is bad

5- wall street has gone off the rails, but we're fixing that,
this is good

6- we need to get our shit together regarding climate change

With the general overarching message that Capitalism is mostly a positive force in the world.

I agree with some, but take issue with some.

1: this is a fine line to walk. How do you define extreme poverty? Does moving out of a tiny farm village in rural China to work at a factory in Shenzhen count as getting out of extreme poverty, and who does it really benefit? In "Geek Heresy", Kentaro Toyama gives the example of trade in southeast Asia that historically took place via narrow waterways navigated by boats. During the dry season, these canals dry up, and productivity goes way down - but it's fine, because it's a known cycle, so people are prepared for it and get a large chunk of freed up time. When this gets replaced by roads and trucks, sure you get a 24/7 transport system, the economy etc. goes up, but now people don't get 6 months a year for festivals. In that case, that might count as getting out of poverty by western centric economic standards - but is it really a gain?

3 and 4 seem kind of inversely correlated, which is problematic if you want to optimize for both. It takes a single digit percentage of the population working in agriculture to address the food needs of an entire country, when 500 years ago it took 99% of the population. As our tools make us more productive, there is less need for individual workers. Obama's point on better benefits, community colleges, etc. all stand - but at some point we probably need to embrace the fact that in a modern society, there will probably never be enough jobs to put the entire population at work. That's something that must be dealt with, and something along the lines of basic income seems inevitable if one wants to address that problem well.

He also says that "In 1979, the top 1% of American families received 7% of all after-tax income. By 2007, that share had more than doubled to 17%", but then says " Without a faster-growing economy, we will not be able to generate the wage gains people want, regardless of how we divide up the pie". The problem here seems to be more the fact that the top 1% gets more of the pie, rather than that the economy needs to grow faster.

Finally, I wish 6 got more than just a small paragraph at the end. It is a Big Deal®, and the less we do, the more we will exponentially pay.
This is a great comment. For most companies, grinding along and sometimes taking a hit, firing people, slow things down and then pick it up again and grow, is the norm. If every company that stops getting massive growth would stop, we wouldn't have factories mass producing our day to day products, the post office wouldn't be delivering us goods anymore, etc. twitter is a mature organisation. There are jobs. There is cashflow. We should stop letting journalists make a big deal of companies that don't have infinite growth and applaud the entrepreneurs that build the monster.
Yup, I just saw that.

If it's just storage I definitely agree with you it's overpriced. But if it's storage, upload, and search... It's probably overpriced but I'd rather have someone who knows how to handle that problem doing it compared to the NYPD. Kinda how I can put a machine in a data center or I can use Heroku. The hardware in a data center is cheaper by a lot but if I can pay a premium to have something managed for me.
Just the beginning of the book. But you can buy it at https://www.amazon.com/Against-Method-Paul-Feyerabend/dp/184....
The High Sierra forest is dying, and you can't count the loss in dead trees
Drat, I knew someone would say that. Thwarted again.
Lessons from building social experiences in VR
Meh, sorry downvoters. All your hate for maven is in vain ot seems, there is still a surprising number of upvotes to draw from.

Why don't you tell me what I got wrong?
Right, but passing it to atoa() (unless it’s a macro? I didn’t check) seems redundant and deoptimizes.
Only if you enable iCloud Keychain, which is locally encrypted and synced in encrypted form. https://support.apple.com/en-us/HT202303 has links to the details.

It's not useful though as you shouldn't share ssh keys between machines anyway.
Does this mean insulin resistance can be partially mitigated by switching to glucose and avoiding fructose completely?
Yeah but what if there's one machine that makes billions of toothbrushes. Does google decide to not make that machine?
> It gets solved by ability to reason about technical things.

> I can for instance communicate the need to cure cancer (bad example sorry) or delegate willy nilly, but sorry thats not going to solve it.

I, again, disagree. Technical ability and communication skills are equally important. You need both to be an effective engineer.
What it's like buying a $128k side project
As someone who spent many years working on Amazon Picking software... I'm pretty sure there's a few companies that would just hand over a dumptruck full of money if those things actually worked as intended. It's such a hard problem space.

Either Google didn't have it working well enough to sell widely (without embarrassment) or else they're pants-on-head crazy.
On the far left? Maybe People who 'member Unions and being able to support a large family doing relatively unskilled factory work.

Populism became dirty around the time nationalism (or just being proud of your country/where you were born) became dirty. Maybe it's a response to some people in the West wanting to be seen as "unique, individual thinkers" (to put it politely) instead of a part of a bigger whole.
You can probably ask about processes and what languages etc. High level architecture of the system. That will give you some kind of idea. how they handle refactoring?
This is cool.

Can't help but think the examples don't really demonstrate anything new though, in the sense that there are existing tools for manipulating json (jq), generation SHA digests etc

I have a small go script I wrote in my toolbox that reads lines from stdin, puts them into a map and increments a counter each time that line is seen (sort like `sort | uniq -c` but less memory efficient in some situations.

The tedium with that code is having to write the bits to read from stdin etc, so I can imagine using this to 'auto generate' that bit for me
Do you have a source for that?

From wikipedia [1] Atlanta has the 3rd largest percentage, but it's 11th for total population. Admittedly those figures are for 2005, but I wouldn't expect Atlanta to make up that much on the top 3 in the last 10 years?

[1] https://en.wikipedia.org/wiki/LGBT_demographics_of_the_Unite...
Being the one who conducted these experiments, I confirm that the number of threads was varied along(the graph shows performance scaling). I am sorry for the confusion caused, this was a typo, should have been "--master local[N]".
A form of it was actually somewhat popular in the 1800s. It was used by Dickens and possibly coined by him.
A couple of interesting points from it:

- the number of women in employment started falling for the first time since 1948 in 2000. Where as male employment had been falling for a long time, women had been growing. Shows how big the impact of the down turn was on female emplyment.

- America even with Bush in charge and refusing to sign the Kyoto Protocol managed to cut carbon emissions since 2000
Ladies Shoes shoes
Many things look easy if you don't take politics into account. Castles in the air.
because your eyes are looking straight ahead for the most part. It's like seeing the world through a narrow view point like binoculars (sans magnification).

You can dart around within that narrow window, but mostly you are looking around by turning your head. You are subjected to more visual motion than you would in real life.
What about Lisp-family languages' metaprogramming capabilities?
> Only a subset of business require ACID properties so you would use RDBMS for those and for the rest choose a NoSQL stack

While ACID is an important and nice set of properties of RDBMS's, its not the only reason to choose them; its a lot more adaptable to changing query patterns and needs than less-structured document-oriented datastores. There are sometimes performance and other reasons to choose some non-relational datastore for a particular load, but "don't need ACID guarantees" is, itself, an insufficient reason for abandoning the RDBMS model for NoSQL (don't need ACID guarantees, of course, is a necessary condition to selecting a non-ACID store, but not sufficient to choose one.)
As someone who writes React every day, I'm not sure how the `react-dragula` implementation even remotely constitutes React integration? AFAIK React never made any guarantees about `data-reactid` nor what it means to remove it? It's not a public API and is not even used in the latest React anymore except for picking up SSR'd markup? I have serious doubts and wouldn't go anywhere near this.

Secondly, if you tout "React integration" people are going to want a Draggable component or mixin/HOC or whatever. Making people do things in `componentDidMount` isn't really integration.

That said: yes, it's a good idea to base your framework-specific integration on top of a generic battle-tested library. This however appears to be a bad example of that.
This is what I thought was the best detail of all this. I don't know the details so this may not be totally accurate, but it sounds like they didn't just shut down and let everyone fend for themselves. Looks like they helped make sure all their employees were taken care of. Too many employers just throw their employees by the wayside when the business goes south. So kudos to them for taking care of their folks.
That was when they were the plucky underdog, like with IBM before that. They certainly aren't (and wouldn't accept opinions to the contrary) an underdog to Samsung.
Show HN: Node.js Material Starter Template
By all accounts, LispM's were awesome systems to use but lost out due to heavy marketing from unix vendor companies.
The article does mention it:

Brahe had theorised that all planets circled the Sun, while it circled Earth. Locher noted that Brahe might be right, but what was clear was that the telescope supported Ptolemy.
Detecting misleading and fraudulent ads is just an example of things they wouldn't spend resources on, if following your reasoning of "short-term money is the only thing they care about."

There's not only the "morally reprehensible" metric ("Don't be evil"); there's also the "absolute PR catastrophe" metric that printing such an ad for a rope would mean.
Swift Cookbook Updated to 3.0 Syntax
Um... sort of? Not really pure-pure. The functions can do whatever they want - download from the internet or whatever...

And when you get into closures or use complex initializations.... a lot can happen with a single function call.
> They just have to trim down to a profitable and stable level, and accept that they're post-growth.

A phrase that sends shudders through stockholders!

It is amazing that companies seem to think that there is infinite growth potential if there ever was any growth -- sometimes you are just at your max level!

I don't think twitter is at max level, I just think that what they think is innovative is not innovative to users.
Thank god! I needed this for my last project.
A company full of Sheldons? Come on man, it's just us.
The storage charge is definitely where they plan to make the money but it's more than just a giant JBOD array for storing the videos (well it should be and if it isn't then it's a terrible contract). At the least it needs to be highly auditable and tamper proof. So in addition to the raw storage requirements there's support and maintenance on the WORM system and reporting and search systems that make the video reliable and available.
It would probably offset by how much time I spend on
HN.
Cloud Key Vault (formerly iCloud Keychain) is probably the most sophisticated service that apple or any cloud vendor offers. More details are here: https://www.blackhat.com/docs/us-16/materials/us-16-Krstic.p...
Apple set the bar pretty high with their implementation.

If its now on by default for storing ssh-key passphrases, it shows that apple thinks its blinded everyone except you, enough, that they can store it safely.
Thank you!

Some of these things seem so self-evident but they were hard lessons. I've come to understand that there are a lot of business practices that just don't make sense to me until I get bit in the ass by not following them.
Tell that to my Uber drivers who always take me to bizarre places due to Apple Maps directions.