skysight-inc/HackerNews huggingface dataset:
items(x).forEach(function(key, value) {
alert(key + ',' + val);
});

You can already just do that, without ES6.

> It also brings up the question of interpolation, why do we even have to use + in the first place?

Did you miss the last item, "quasis"? `You are ${age} years old.`

> Also, can someone in the know care to tell me why that is that those additions for what is the end rather basic functionality is coming so late to the language?

Because unlike most languages, there's no canonical implementation.

Mozilla, who actually holds the trademark on the name "JavaScript", totally tried to evolve the language since the beginning and even shipped e.g. JavaScript 1.7 (which had generators, iterators, let, array comprehensions, and destructuring assignment [1]) with Firefox 2 in 2006, but Firefox just didn't have the market share for authors to start using the new features, and no other browser implemented any of them. That deadlock was only broken by Brendan Eich using corporate politics rather than hacker-style "putting it out there": rounding up all the big browser makers (of course, it helped that Apple and Google had just broken into the scene), and convincing them to commit to implementing new features decided on by the committee they formed, TC39 (and to update their browsers at all, ahem IE ahem).

[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_...
Surprising that they could not get a loan given their order backlog. Were the margins terribly small or something?
This is a very interesting discussion. Would love to hear your thoughts on our London based startup www.Prehash.com which is going in a similar direction. Companies can host organization specific coding challenges on our website and developers apply by solving them. There is no time limit for developers and no one is looking over your shoulder. The only thing is that each time you run the test we take a snapshot in a github repo. Any feedback is welcome! Cheers.
Almost every Emacs user uses the standard keybindings for most stuff (though many change the odd binding or two for personal reasons). They work really well once you get used to them, and they tend to form a system: C-f goes forward a character, M-f goes forward a word, C-M-f goes forward an "expression", and those same modifier keys have similar relationships for other commands.

As for ergonomics... Emacs bindings feel far more natural and comfortable than any other editor bindings I've ever used, but then I've used Emacs for a long time and am well used to them. I suspect that the same is true for most people: what feels/works best will have more to with what you're used to than any inherent superiority. [And probably no keyboard-oriented editor that's been successful for any length of time will have a truly un-ergonomic design, because it couldn't have succeeded with such.]

Probably the closest thing to what you're describing is the various editor emulation packages, which often remap many basic bindings... Of these, vi/vim emulation is probably the most popular these days, and there are like 4-5 vi/vim emulation packages, of varying degrees of sophistication (and age), although I'm not sure which is the current favorite (maybe "evil"? http://www.emacswiki.org/emacs/Evil ).
There seems to be a problem with the web app. You have to wait a couple of seconds before the QR code appears.
Unless I'm missing something, you cannot use forEach on a Javascript object as of now (or map, reduce, every, some and other methods that are available on Array.prototype).

The only way is to use:

for(var key in obj) {...}

As for interpolation, I indeed missed the bit about quasis. Though I really wonder why they would still use concatenation if they can interpolate... Maybe to only show one feature at a time, which I guess makes sense.
It's gratifying to read such an insightful, unequivocal comment on HN - and I hope you also emailed it as (relevant!) feedback to the two addresses provided in the article!
Remote or Relocation (almost anywhere)

I'd like to solve hard problems, meet challenges and help people.

Willing to learn new stuff and improve my skills (especially Clojure).

Skills: Java (SE, EE, Concurrency, Spring, Hibernate etc.), MySQL, PostgreSQL, MongoDB, Perl, Bash, Linux, vim etc. Had experience with PHP, HTML, CSS and JS. Currently learning Clojure.

Email: kovrik0@gmail.com

Linkedin: http://www.linkedin.com/profile/view?id=150589292

Github: https://github.com/kovrik
I think if a conviction was reported in a newspaper when it happened, I don't think that should be removed from Google, even if the conviction is subsequently "spent". Do people go through newspaper archives deleting them from the (what used to be) microfiche copies?
It's also rather unwieldy to use, much more so than other dependently typed languages (like Idris).

Sadly, despite having useful-looking properties, I suspect it'll serve as little more than inspiration for others.
tldr; They get fleeced, just like everyone else.

A fool and his money are soon parted.
None of my engineer friends have ever had a Google style technical interview. What makes software so different?

You don't ask an electrical engineer to layout a complicated PCB on a whiteboard, you don't have a civil engineer build a bridge out of popsicle sticks.

Surely hiring an incompetent electrical engineer is just as bad as hiring an incompetent software engineer, but from talking to the EEs I know, they just get asked basic questions or go over past projects--nothing nearly as stressful as a coding interview.

If other industries can get by without them, whiteboard technical interviews must not be as necessary as they're made out to be. It seems to me they are just a damaging fad. I think the high stress technical interview could even be one of the factors contributing to the software monoculture.
A guide to building your app business
If you are a talented app developer but new to the app business, you should get a basic understanding of some core concepts.

http://www.avocarrot.com/blog/guide-building-app-business/
Isn't vitamin C a pretty good preservative agent for food?
They are largely pacifist, known for incredible work ethic (work alongside one at a manual labor job and you'll understand), and isolationist. Basically they are how we perceive older generations of Americans (romanticized no doubt given the "pacifist" label isn't quite applicable to early-stage Americans).

They don't try to force their views on general society and leave well enough alone while providing unique cultural contributions for those who visit them and purchase goods/services. Not really "PR," they just leave others alone and have enough positive traits that everyone seems to respect.

EDIT: I countered the random downvote you had.
> Creating jobs is a strange goal.

Why? Who says efficiency should be humanity's goal? Is humanity a machine to be optimized? Are we just evolved cogs, one of nature's crueler jokes, or are we (also) agents that can put up a fight? You know, Dostoyevsky extolled the virtues of intentional self harm -- or spite -- as a person's noblest goal, asserting freedom from "laws of nature". I'm not saying spite should be a matter of public policy, but it's very important to avoid seeing some mechanistic, or even natural, process as a desirable outcome just because that's how things work (this is the naturalistic fallacy[1]). Public policy should be crafted subject to consideration and political debate.

> People miss the whole point of companies. The goal should never be providing jobs but creating value.

Says who? That's a peculiarly American view of the role of corporations. Another valid goal for companies is providing sustenance to their employees first, and "value" later. I.e. generating value is just a means to an end.

[1]: http://en.wikipedia.org/wiki/Naturalistic_fallacy
Looks really nice. We did something similar building a general ES Backbone framework a while ago. https://github.com/automattic/es-backbone/

We've deployed about 5 or 6 different search pages this way, its really helpful to build custom search pages really quickly.
And now you support your general claim by anecdotal evidence? Note that I don't make any claim apart from "it can't be generalized for now".
Why would you be interested in burning wood?

> Natural gas is also going to get much more expensive if they ever push fracking regulations through - the current pollution from gas leaks is actually worse than burning an equivalent amount of petroleum.

Interesting. Do you have links to further reading?
Minibus systems appear everywhere, especially in poorer developing countries with fast-growing cities. They tend to be inefficient by dint of the market equilibrium creating a single, vastly overserved "downtown hub".

There are some projects to map them, for example:

[0] http://lusakapublictransportmap.wordpress.com/2014/03/10/and...
Bombay Stock Exchange disrupted for 3 hours due to network outage
Remote volunteering and internships with Zidisha
> My guess: 12 inch subwoofers and 26 inch rims.

On the horsecart...
wrong place to comment, no doubt, but I'd really like it if the syntax for generator instructions was separate from the comments syntax. e.g. generator instructions used another "special character" set instead of // (!!, , etc)

Two reasons:

1. How do you comment out a generator instruction?

2. A generator instruction isn't a comment, and isn't intended to be human-readable, and shouldn't be able to be
confused with that.

I find the json field tagging in structs annoying for the same reason; it feels like a kludge wedged in later to make up for a gap in the original syntax.
> In a circular linked lists you can have easy access to end of the list.

This is not true for circular linked lists in general. A few special cases where this is true:

1. If the list is doubly linked.

2. If the list maintains pointers to both head and tail nodes (trivial).

3. If the list maintains a single pointer but uses it to refer to the tail node instead of the head node. Head node can then be easily reached as tail->next.

Of course, data structures can be tweaked in innumerable ways to add special properties. So one cannot possibly list all ways of adding easy tail-node-access to circular linked lists.
You clearly misunderstood.

Since the State (in the academic sense of the word, with capital S) can comprise institutions at multiple administrative levels (eg state and federal), it is entirely possible to have a federal government with limited powers against a backdrop of strong state governments.

Indeed, some legal historians like William Novak have argued that many of today's widespread notions around the historicity of "limited government" and the early republic are largely revisionist myths [1].

[1] http://www.history.ucsb.edu/projects/labor/documents/TheMyth...
Ctrl-p in emacs takes you to the previous line. Since readline uses emcs-style notation by default, Ctrl-p takes you to the previous command in history (and Ctrl-n to the next). I don't know about zsh though.

Also, other emacs keys work like back: ctrl-b, meta-b, forward: ctrl-f, meta-f, start of line: ctrl-a, end of line: ctrl-e etc.
This just shows how hard it is to please everyone - when I was using ST, disabling the open file persistence was the first thing I did. My usual workflow has me editing / looking up information in many different files, usually just a bit here and there, so at least once every two hours I'd cmd-q the whole mess and `e .` in the project directory and re-open the files as I need them.
http://pastebin.com/8zHa2V3w - Article content
Fix horizont line on photo.
Most people would be okay with plaintext content sitting on your server and even publicly accessible by anyone.

But this is HN, and we wouldn't use even an AES-512-encrypted service if it has to leave our computers. Our password could still be cracked with enough computing power. So, we'd all be extremely happy if you could make a version for paranoid people like us.

Also, I don't know how your indexing works, but please make it easy to backup (just allowing us to define the index folder would do). Possible data loss is the tradeoff with local content.
Developing a Company Culture for your Startup
Spot-on reply!
> we’ve been focusing on making basic text editing smoother and more responsive

This REALLY shouldn't be an issue with basic text editing in any text editor
Agree on the edit. For clarity: about 700 Safari online books, videos from O'Reilly and other publishers are available to ACM Professional Members without a subscription to the Digital Library necessary. In addition 500 Books24x7 titles and more than 150 Morgan Kaufmann and Syngress books are available to ACM Professional and Student members, again without Digital Library subscription required.

Professional membership to ACM is about $100, and subscription to the ACM Digital Library is an additional $100. Student memberships fees are reduced to 20-30% of that.
It is also dependent on your profession and location. If you are a collegiate or professional athlete living in the Northern US where sunlight exposure is generally bad for 6 months out of the year, then while your Vit D levels may just be below-average (but nothing major for a normal human), this could be a real issue regarding athletic performance.

Supplementation and testing must always be taken in context. The average sedentary human does not have the same caloric needs as the aspiring professional athlete, nor do they have similar supplementation needs either.
Interactive version: http://www.informationisbeautiful.net/play/snake-oil-supplem...
How did they pull that off? I know several Americans who would love to be able to just opt-out of selective service and social security.
I'm not saying it was the only predictor, but we did have a candidate who solved the application task with a quarter (1/4!) of the code submitted by the next best, whose submission was already beautifully succinct. So, number of lines of code CAN be a meaningful predictor ;)

More seriously, I agree with you. I don't think performance is quantifiable with parametric methods, you just have to allocate a fair amount of mental effort to the problem. For example, a "maintenance guy" who enjoys breaking other people's code, fixing holes and doing tests is extremely valuable, but not someone that is easily sold to non-technical management, nor that is very visible; at the same time, without some builders to work with, his salary is wasted.

We get away with it because we have a carefully selected (around 3 man-month of just recruiting) small team (10) of experienced developers from a small but strong and mature community (Haskell) on a well defined problem (fix and improve a large e-commerce platform). I shudder to think of the magnitude of the problem for a much larger company with much larger teams, like Google or Microsoft.
I dont' want to live 120 years, do you?
Much faster if you are willing to punish your users for using subpar browsers that don't keep up with current technologies and standards.

A bullet I retrospectively think we should have bit a long time ago. It would have sent a strong message that you either make sure that your browser is top notch or it will be left behind to bite the dust of the power horses.

Now that Microsoft is feeling the heat under its ass (from FF, Chrome and Safari), they're making sure IE is not ridiculously worse than the competition, that it auto-updates, they're engaging the community, creating libraries, etc.
Why not just use the hybrid approach described in the linked page? Encrypt the bitcoin key with a block cipher, then encrypt that key with SSS.
I'm confused, is this about addiction or binge drinking? Is anyone who has the occasional big night out an alcoholic? The article seems to be using the two interchangably.
My parents are general practicioners, and for the last few years they have basically been told that the rule of thumb is to assume everyone is vitamin D deficient until proven otherwise (where "works outside in the sun all day" is an example of proven otherwise).
It doesn't mention either that you can search to the other direction by pressing ctrl-s (usually it also sends the stop signal which should be removed by "stty -ixon"). Very useful if you go past the entry you are looking for.
at that point you may as well just write it from scratch.

You would have to write your own text layout engines and everything.
Looks like pretty standard WSN tech. Some points of critique:

- Range: 50 square miles? That would imply a range of r=4 miles, which is pretty impressive. Is this single hop, or are they 'cheating' by implying a multi-hop network? The best I've seen is >1km on an Australian deployment where the base station was on a hill and the nodes were deployed on a lake, and this was using an nrf905 on the 915 MHZ band with a whip antenna iirc.

- Power consumption: 0.026mA. Amps is a measure for current, not energy? I can send 10 bytes at near-zero average amps as long as I do it only once per millennium. This number is completely meaningless without a time scale. They should just report mJ if they want to talk about the energy consumed in a single operation.

- 765 days life time. Again, they are not reporting the full story here: what is the size of the battery? What type of battery? Is this estimated, or measured? These nodes typically use MSP430's and may have a very, very low sleep current (e.g. ~8uA for a tmote). However, the numbers quoted by the manufacturer are often averages, and there may be significant differences between nodes (http://www.cse.msu.edu/~glxing/docs/ipsn13-Nemo.pdf)

Two years is a very typical life-time for sensor nodes. However, you can only get that with very, very low data rates (e.g. one packet every minute). If you're doing multi-hop, nodes close to the sink (bridge) will drain faster as they have to relay not only their own data, but that of nodes down the routing tree as well. So, you might end up with a situation where the life-time of the network is much lower than that of an individual node.

- Nitpicking, but one day is not typical at all for cellular. Sure, your phone only lasts a day on a charge, but that is mostly due to to the main SoC and display. If you look at the modem in isolation, most of the energy is spent in energy tails, which you could cut down considerably on a network that supports fast dormancy. If you don't care too much about latency (i.e. you want your nodes to upload data only once per so-many hours or even days), you can easily go a week between battery swaps.
Federação Internacional de Estradas Promove 1º Congresso Regional IRF Ásia
I thought USA is country of immigrants.
magnesium is also often deficient
Basically they just fought both in court. I think their public perception is positive enough that the courts accepted it.
Amazon sues ex-employee who went to work for Google Cloud
I switched mainly because ST2 was acting up, throwing errors left and right. Considered upgrading to ST3, but there were plenty people discussing bugs in that too, and some plugins I use were not yet compatible. A colleague had invites to spare for Atom beta. Checked it out, found it to be 'just like ST2, just without the crashing part' and stuck with it.
There's also the fact that the absorbtion of a nutrient can depend on what other nutrients are being digested at the same time. For example, adding iron to breakfast cereals is completely ridiculous.

First of all, it's added as pure iron. You don't absorb iron in its mineral form, it needs to be in some organic form to be digested. So that already makes it totally pointless.

But let's ignore that for a moment and pretend we could digest mineral iron. Turns out that if your food contains iron and calcium, the calcium will take precedence and effectively block the absorption of iron. And what do we pour on our breakfast cereals? Oh, right. Milk.

It also can work the other way around: vitamin C helps with the absorption of iron.
Just got an invite, thank you!
I can't even think about blaming my Clients for not using the latest IE because I want to use some syntax sugar for things that I can already do with ECMA 5.
Nota bene the high cost of such meds won't be the meds themselves, but cost for the social system. Will those super old people work until they are 100 years old? If not, it has to remain the luxury of a small minority.
Guruprasad, Bengaluru, India

Skills/Experienced in: Debian, Python, Django, C++, Storage (particularly storage management software)

Code:
GitHub: https://github.com/lgp171188
Bitbucket: https://bitbucket.org/guruprasad

Twitter: @LGuruprasad

Website: http://www.lguruprasad.in/

Prefer remote/relocation opportunities for full-time jobs.

Resume: https://docs.google.com/file/d/0By4tOruhioffYk8ySEdweTZEdWc/...

Looking for exciting work on new technologies which I will be willing to learn if I don't know them already.
10 Tips to Becoming Successful & Wealthy from Bill Gates
10 major outages of google-appengine this month!
I guess I view this separation as an adaption of The Single Responsibility Principle. This is how I view themes & plugins, and their relationship. Your theme is used to display your site, it's navigation, content, it controls the markup browsers see.

Plugins are for adding functionality to your site, if you want a sitemap, there's a plugin for that. Not happy with your current sitemap? Install/Create a new plugin, replacing the old one. If your sitemap isn't working, where do you look? Your sitemap plugin's code.

The importance of having this separation of tasks, removes a lot of risks too in my opinion. If your site isn't working instead of risking having to change your theme, you can deactivate the troublesome plugin. Albeit finding the offending may be difficult, but at least you're not changing the total design of your site.

Hence why I believe in plugins and themes having distinct tasks. It really helped me organise the development, and maintenance of sites.

Here's a pretty decent setup for using git with WordPress too.
https://github.com/markjaquith/WordPress-Skeleton

http://en.wikipedia.org/wiki/Single_responsibility_principle
Preparation – An Answer to DDoS Mitigation
I would love all of this to work cleanly when debugging. A lot of these things currently work very well, until you need to de bug them. Even with tools that don't do THAT much rewriting (i.e. Traceur or something, to convert arrow-functions into regular ones) source maps work pretty unreliably, where I usually have to refresh a few times before they work (and remember my breakpoints).

Is there any traction on this front, something like a system where the source map actually embeds the AST or the like?
r/programming discussion of this paper here: http://www.reddit.com/r/programming/comments/277fbh/use_of_f...
Jeu d’action Infinite Crisis : les costumes d’été sont à découvrir
Découvrez le jeu Infinite Crisis et les produits inédits qu’il proposera. Ce ludiciel, inspiré de l’univers des DC Comics, est disponible en bêta test.
Everything you wanted to know about Ryanair pricing but never dared to test
Don't mess with the back button and with the scrollbar.

Why not just elasticsearch ?

If you store texts in mongodb, look later for tokumx that compresses data.
Bicycle Locks
That's not what I'm saying. I'm talking about 5 years ago when IE7/IE8 were lagging behind by a HUGE margin and it was another world trying to make things compatible. It was not a matter of using the last version, it was a matter of Microsoft not paying attention or not wanting to make its flagship browser better. Not just some developer throwing a fit because he needed "sugar".

Also, and that's only personal opinion, but there's a limit to the customer is always right. What if we create a new super highway one day with flying cars, are we going to punt on moving on because some people like their combustion engine pieces of junk? It's also our jobs to make people understand that jumping on the latest technology is in their best interest.
Leveling the field to the lowest common denominator brings everyone down in the end and really hampers creation and innovation.

And that is the reason why Javascript is so far behind modern languages in so many areas.