skysight-inc/HackerNews huggingface dataset:
I never had callback hell even before modern Javascript times. I simply used named functions instead of inlining everything. Nesting level: 1, maximum 2 if I felt it was okay. And modules, modularization is key or it gets too complex.

So the lexical structure of my code was linear - while the runtime structure was nested at arbitrary levels. There never was a reason to represent the nested runtime structure in the written code.

I also didn't attempt to use node.js for things it wasn't made for, like compute-intensive tasks or implementing business logic. The good old chat server for ten thousand people was an often used example for node.js programming for a reason - lots of I/O, little processing.

Note: I don't write code like that any more in ES 2015. I also don't use classes, prototype, this, bind, apply - only functions and (lexical) scope (with an eye on capturing only as much scope as I need). Which is the opposite of the above described method where lexical scope was not usable, but with the methods available now the code still is "flat", so that's why I switched.
Ask HN: What billing system do you use?
Wondering what sort of billing systems people here use to support mobile/web transactions and if it integrates with native mobile transactions like the app store/play?

I searched around a bit for related posts, but everything was pretty dated.
Price per square foot for housing has remained remarkably constant over time. People are spending more on houses than they used to because they are buying bigger houses.
I'd say that state is actually easier to handle in functional languages. You just need the right abstractions for it.

I've been working with Phoenix lately, which basically just hands request/response details down a pipe of functions, which all can change the state of the response. There can be a lot of state contained in this response, but when you use Phoenix, you don't really notice it. The abstraction makes everything seamless - best web-framework I've used to date.
I have worked in one place where you couldn't get the code to pass without tests AND a code review.

One of the methods I found had a cyclomatic complexity of 200+ and a single test, verifying that the result was not null.

I was told "no, you can't fix that, the NY office wrote it and they'll get angry with us if we change their code and refuse to help".

Things are worse than you think :)
Is this in inflation adjusted dollars? Maybe I missed it, but I don't think the article specified.
What's the best one you've seen?
You must be living in some sort of alternate reality, because the leaks that gained WikiLeaks its infamy[1] occurred in 2010, during the Obama Administration. After that, there was another long series of leaks during 2011-2015 [2], which included the complete draft of the TPP (of which Obama was in favor).

Furthermore, WikiLeaks used to carefully comb through documents and leak only those that would not cause personal harm. They did no such thing with the most recent leaks during the election season. Some of the emails they leaked contained personal information of donors, including home addresses and social security numbers. That's grossly irresponsible. It was clear they had a partisan political agenda that went above and beyond anti-secrecy in government.

[1]https://en.wikipedia.org/wiki/Afghan_War_documents_leak

[2]https://en.wikipedia.org/wiki/WikiLeaks#2011.E2.80.932015
About half earn more, about half earn less. Wouldn't that imply that the average earnings are about the same? If so, I don't know that I'd complain because that indicates stability.
Deciphering Xcode's Index
Honnest question for Safari users: why Safari?

I don't really know Safari. I used Chrome on Windows and iOS, and when I moved to OSX I naturally continued with Chrome. And the dev tools are really great.
What does that have to do with anything? My comment was mainly a protest of what appeared to be Kotlin fanboyism, which I see a lot lately on HN. There is nothing special about these features in Kotlin, they are common features in many popular languages preceding Kotlin, and have been on Java developers' radars long before Kotlin.
> "Google has the good fortune to be operating in a field where being 90% right 90% of the time is more than good enough"

I don't think it's an accurate view.

It was good enough when they started. Now they are doing a lot better than that. The results are moved dynamically per user over hundreds of criteria.

It really is not a dumb search/ad engine that anyone could replicate easy. They have evolved to be damn efficient at what they do.
What's the benefit against just visualizing it on the screen? Another problem is how comfortable it is staring through AR glasses hours at and end. I don't want to be the person to only see problems however, there might be some nice scenarios.
That seems like it would be a big roadblock to doing much useful with it. Is it impossible, not yet supported, or supported but not easy to do?
That sounds like its own form of hell to me. Ideally, a lexical structure helps visualize and understand the runtime structure. Anything that obfuscates that is a recipe for disaster.
Got data on this? In my anecdotal experience price per square foot has shot up in urban places, which is where the jobs for young people tend to be concentrated.
tl;dr: deduplication processing for CSS speeds CSS compilation and produces smaller file sizes. Cool!

The article only has compilation performance tests, and there's a small mention in the docs: How does Styletron affect render speed in the browsers?

Also, what tool are you using to convert existing CSS to JS objects?
The paper itself: “The Fading American Dream: Trends in Absolute Income Mobility Since 1940.” Raj Chetty, David Grusky, Maximilian Hell, Nathaniel Hendren, Robert Manduca, Jimmy Narang. Graphs are in the back. http://www.equality-of-opportunity.org/papers/abs_mobility_p...
You present a very crude opinion on a very nuanced issue, which is only tangentially related to the content of the article. It would be an effort just to elucidate what your precise position even is before anyone could seriously engage the topic.

Why don't you write up your ideas for constructing and enacting a well-prioritized research plan/budget, and submit it to hn so people can address your position in detail? That way you could have a focused discussion without distracting the people who are actually interested in articles like this one.
> They have the capital to startup and launch in probably any industry,

They tried that more than a few times and failed. X-box worked, but portable music players, mobile and search would be things they pumped massive amounts of money into and didn't get very far with.

But yes, I would like choice above all. I am not a big Windows fan, but Android is really starting to annoy me and iOS (or at least the rules around iOS) is too limited for what I do with computers/phones/tablets.
There are quite a few things we could do in this direction.

For example, we could provide mandatory calisthenics classes for people on medicaid - think some sort of watered down military PT class. If you need medicaid, you need to show up daily and do jumping jacks.

Similarly, we could replace food stamps/welfare/etc with a government-issued basket of healthy vegetables, complete with printed instructions on how to cook them.

Utah has been having great success helping the poor with (secularized) Mormon style paternalism. Perhaps the rest of us can learn from them.

http://www.npr.org/2015/12/10/459100751/utah-reduced-chronic...
5 Bots to Try This Week: Bly, Agent.ai, Reply.ai, Jesus Bot, and Chattabot
AWS launched new region in Canada
How Silicon Valley’s bias against marketing obliterates value
This chart from the article is rather painful:

https://si.wsj.net/public/resources/images/BN-RD331_CHETTY_1...

(I think that'll work without the workaround)
For the curious, the data center is in Montreal according to the press release: http://www.businesswire.com/news/home/20161208006034/en/Amaz...
I'm very glad people are speaking up about this. This is horrifying. Good job on stopping the process when you felt uncomfortable, we should all be doing this.
Yes, I agree with you. I'm replying specifically to the parent comment that says dual class stock is a 'racket'.
That's the best-realistic-case scenario. The most likely case is that even if a few problems are found and patched, some serious vulnerabilities will be left in place, unnoticed until someone from outside, without your interests at heart, goes looking for them.
Trump Picks Scott Pruitt, Climate Change Denialist, to Lead E.P.A
NBot web watch v0.2 is out
Im guessing for a large number, its the same reason people still use Microsoft's browser. It's the default and it's good enough.
To be fair, that applies to many more things outside of Google:

- "Why can't everyone stop being poor and get a job; it's not that hard!"
What are the event-loop-specific issues you're referring to? I don't like node but I find the event model interesting.
My hunch is a Surface Phone that can hook up to a larger screen and become a full computer, but I'm not sure how that would work if you ever need data that's in a win32 app while you're mobile. Guess it could run a desktop like you can use VNC/RDP apps on phones, let you pan and zoom around?

Not a great experience, but then again, touch input on the Windows desktop on the whole Surface line is occasionally janky when you have poorly compatible software, so that's nothing new.
This tool keeps the command line interpreter (CLI) alive. Sysadmins everywhere can glue hundred different systems from a hundred different vendors together if they have CLI and the sysadmin has access to a machine that runs expect(1).

There are many stories of complex infrastructure being taken down by new firmware on routers or switches that change the order of parameters in a command :-)
Battery life. Chrome absolutely obliterates my MBP's battery.

edit: this is the same reason I have for hating Electron apps so much.
I object to the subtitle "It becomes harder to reverse this trend" like it's an inexorable march without any possible cause. Just look at the difference in context between today and the 1972 reference date for the start of the study. Globalization and automation have taken a huge chunk out of the manufacturing sector, but the US economy has by now (at an aggregate) replaced those positions with knowledge/retail/service sector positions. What did those manufacturing jobs have that the new jobs don't?

Powerful unions, a strong social safety net, and a government that accomplished both because it didn't think taxing rich people was heresy.

United States political parties used to split along Labor/Capital lines until the Civil Rights movement in the 60s shifted politics to a racial fault line. Over the last 50 years Capital quietly co-opted both parties while the populace was duking it out over things like segregation, voting rights, and Affirmative Action, and people have finally realized what happened while they weren't paying close attention.

Trump didn't win "because racism". It's not an accident that a significant subset of voters "somehow" liked Obama, Bernie Sanders AND Donald Trump, while hating all of Jeb Bush, Hillary Clinton, Marco Rubio, John Kasich, AND Ted Cruz.

These people are tired of Capital (aka "globalist elites" or "corporate overlords" depending on the side of the aisle you sit on) winning every battle. They viewed the entire election cycle as a dog-and-pony show between hand-picked corporate surrogate A and hand-picked corporate surrogate B. They chose Option C. "Literally Anyone Else, Yes Even That Guy".
Apple is in talks to offer online rentals of films that are still in theaters
The Silent Anniversary: Fifteen Years Since Our Last Major Crash
I don't consider RT a failure itself... I think the failure was in ignoring legacy application environments and not having dev platforms available for testing/targeting windows rt ahead of time as a .Net build target.

If they'd supported a dev box (something like a beefy rpi3 with 2-4gb of ram, and ssd support) and sold that early for developers with windows rt a year ahead of the tablet/convertibles it would have gone much smoother.

They also should have pushed the .Net Core much sooner, and it should still be a bit further along than it is at this point. I do think it will get there though. The real question is will someone beat them to the punch.

I think ChromeOS and the Chromebooks are proof that this level of device is good enough for a lot of people and being able to dock a phone for a platform OS for most people is probably good enough hardware wise at this point. It's just that MS has always fallen short when it comes to quality control and polish.
On a side note, I'm glad to see Joel has re-themed his blog posts but kept them hosted at the same URLs.

Many of these posts seem timeless and often very prescient.

In fact, at the bottom of this one, he points out the strategic dead-end Sun was heading down with commoditizing software while also making/promoting Java that commoditized their hardware...
I wonder what their end user is here. Android is clearly the winner which Windows Phone has lost to.

Perhaps they are aiming for productivity based use that requires windows toolsets? Sort of like a Bring Your Own Work Device to work that will inherently tie the worker beyond the office?
vimwiki

It's an 80% solution for org mode, but it's the 80% I care about.
This is only going to get worse with software eating the world and automation of every possible task that we can. It has already started with companies like Amazon (in their warehouses) using robots extensively.
[2] is Thomas Ballinger - Terminal whispering - PyCon 2015. Is that right?

VoiceCode is a $300 product. http://voicecode.io

Is it worth the money?
In regards of concurrency, I's suggest to have a look at Elixir. It's growing like weed and is offering the best programming experience you can find. Not kidding. Just try it.
If you could use a virtualbox I would be totally ok with this, the fact that they exclude exactly that makes it 10 fold shittier.
I don't actually see how promises help. In particular, it seems to encourage people to build systems that basically horde promises in odd places.

I greatly prefer first class models for where things queue up, and then to use producer/consumer objects against those queues.
This is why I like this site. Multiple answers that are actually different methods. Thanks guys.
#2 has been implemented since September:
https://whispersystems.org/blog/signal-desktop-ios/
Runtime structure can be arbitrarily nested, how do you want to show that in code structure? That makes no sense. You presume a static structure of who calls whom. It also isn't very flexible (refactoring, implementing change requests).

The key was of course to come up with great modularization, of course you would not want to do that with "flat code", the complexity of what function is where would be (or would have been, since I no longer need to write in that style) overwhelming.
http://www.aei.org/publication/todays-new-homes-are-1000-squ...
On a Hunt for a Ghost of a Particle
My take was it was too broad.

Several things got taken out for "political" that frankly shouldn't have been.

The post of YC’s Winter Reading List, as the list contained some political volumes, was the most silly to my mind. Book lists usually spin up excellent recommendations in the comments and are especially topical this time of year. Yet it got flagged off the front page and discussion died.

An international story completely unrelated to US or EU politics, Trump or Brexit etc.
Sam Altman Is a Founding Signatory of the New Economic Security Project for UBI
> the component is easier to manage

But you can still keep CSS in a CSS file inside a module folder. SASS or any other CSS build took could grab it from there.

> get around the global nature of CSS

That can be done with proper scoping supported naturally by CSS.

Local CSS is still not as bad as moving CSS declarations to JavaScript.
Miracast is a Windows 10 supported mobile display solution with increasingly surprising ubiquity. You currently can't expect every hotel room TV to support it yet, but a generic Miracast stick (or Amazon Fire stick if you want a branded one) can be obtained pretty cheaply and is small and easy to tote around.

Microsoft has a folding bluetooth keyboard that fits in my pocket and is surprisingly nice to work on despite the size.

Keyboard, stick, phone, phone charger is just about all I need to be productive, and with a bit of arrangement I can fit all of that in carpenter's jeans pockets.

I think MS has several plans in motion but has been slow to get all of the moving parts in place. The Creator's Update and "Redstone 3" to follow sounds like some of those plans are finally starting to converge (now that the basic infrastructure is in place).
They do, but unlike an antibiotic, the phage is likely to evolve to be better at killing resistant bacteria.
People who will have children ("eventual parents" for the purpose of this comment) are healthier, smarter and wealthier than people who will never have children. If the question is whether things have gotten harder for the average person, it is misleading to compare a group consisting only of eventual parents with a group composed of both eventual parents and non-parents. A better comparison would be 30-years-olds of today versus 30-year-olds (whether the 30-year-old has or goes on to have children or not) of the past.

ADDED LATER. A careful study or newspaper article on the question of whether people have it harder or easier than they did 30 years ago or 45 years ago would try to avoid comparing populations that a reasonable person would expect to differ for reason other than things in the country getting harder or easier. Whether or not my sentence above containing the phrase "are healthier, smarter and wealthier" is true, clearly one might reasonably expect systemic differences between people who have children or will go on to have children and people who do not.

Even if the "nonparent" group were on average more intelligent than the "parent" group, that would also be a reason to avoid omitting the "nonparents" from the older cohort in the study.

The fact that the OP does not even try to avoid those systemic differences suggests that either the author is not sufficiently skilled at statistics to be writing about what he or she is writing about or someone is trying to argue for some conclusion he or she is attached to, e.g., "it is awful how hard things have gotten in this country for the average person" or the article author is making the headline more dramatic than the situation actually is in order to get more clicks.
> It's easy to say he's a "visionary" now but the markets facebook has ridden its growth on were not a result of it being amazing.

Facebook's growth over the last few years is a direct result of Zuckerberg's decision to get serious about mobile advertising and his acquisition of Instagram.
Don't be so sure.

I don't know whether I qualify as "best in tech", but: last year I was approached by a large company which uses Django, and which solicited me to apply specifically because they wanted a Django committer on staff. In other words, I was absolutely a known quantity for them.

They still shoved me in their Fizzbuzz phone-screen funnel. Spoiler: for that, among other reasons, I stopped trying to follow up with them.

This does not seem to be an unusual practice for large companies. Even when they're recruiting specific people who they know and initiate the contact with, they still set these awful "prove you're not one of the impostor rabble we say are beating down our doors" hoops for people to jump through.
> So, someone in HR thought [...]

reads like the first sentence in most horror stories programmers go through
It seems to be a little better for battery life than Chrome. On my aging MacBook Air, every little bit helps.
Because historically on OSX, Safari offered roughly an extra hour and a half of battery life over Chrome.
I hope they strip the stupid tape over their fridges that cover the sodas "because a 200-calorie coconut water drink is SO MUCH BETTER for you than a ZERO CALORIE soda."

Who am I kidding; that will never happen
`info` also contains a lot of historical notes, i.e.

$ info Groff | awk '$2 == "History"{f = 4};f && f--' RS= ORS='\n\n'
1.2 History
===========

'troff' can trace its origins back to a formatting program called
'RUNOFF', written by Jerry Saltzer, which ran on the CTSS (_Compatible
Time Sharing System_, a project of MIT, the Massachusetts Institute of
Technology) in the mid-sixties.(1) (*note History-Footnote-1::) The
name came from the use of the phrase "run off a document", meaning to
print it out. Bob Morris ported it to the 635 architecture and called
the program 'roff' (an abbreviation of 'runoff'). It was rewritten as
'rf' for the PDP-7 (before having UNIX), and at the same time (1969),
Doug McIllroy rewrote an extended and simplified version of 'roff' in
the BCPL programming language.

In 1971, the UNIX developers wanted to get a PDP-11, and to justify
the cost, proposed the development of a document formatting system for
the AT&T patents division. This first formatting program was a
reimplementation of McIllroy's 'roff', written by J. F. Ossanna.
I wrote software to automate about half my job. I'm certainly not going to tell them about it as it can only result in a loss of income for me and my coworkers. Incentives matter I don't care what the management gurus say.
That's simply not true, at least on the west coast in any reasonably active real estate market.

It was never $1,455/sq ft like it is today in Palo Alto, nor $500/sq ft or even $200 per sq ft. This is a recent phenomena.

Furthermore, price per square foot actually tends to increase nowadays on smaller homes, where you'll pay even more per square foot if you're trying to buy anything under 2000sq ft, and it gets really crazy when you approach 1200sq ft.

Shop around for a house, see for yourself.
"the inflation-adjusted price of new homes has been relatively stable since 1973 in a range between about $105 and $125 per square foot"

However this is only new homes, not used homes.

http://www.aei.org/publication/todays-new-homes-are-1000-squ...
I'm not aware of any.
Pebble burned me (literally) and I need to find peace with that
I like it! :) Should be able to save to a local file though...
Remote execution vulnerability in IE and Edge
You're guessing wrong. I am using Safari because I like Safari the most.
I've been following the Rossi debacle since 2011 so it has been quite a bit longer than that.
I actually wrote a separate benchmark suite [1] that uses Paul Irish's pwmetrics [2], so using real Chrome to check render performance. From those numbers, Styletron performed really well in terms of time to first paint and time to first meaningful paint. But I didn't include it in the blog post because I wasn't sure how best to separate the transfer time factor (pwmetrics is set up to throttle network speed) since Styletron critical CSS was so much smaller.

[1] https://github.com/rtsao/styletron/tree/master/packages/benc...

[2] https://github.com/paulirish/pwmetrics
20 ACTIONABLE IDEAS FOR DRIVING WEBSITE TRAFFIC