skysight-inc/HackerNews huggingface dataset:
I've been trying to learn to code (I'm a designer) for a while now. I've read books, played around with making things and I'm now taking the JavaScript course on Codecademy. It taught me:

var functionName = function() {
// whatever
}

I had no idea there were other ways to write a function. I still don't understand what the benefits or drawbacks are of each method. Maybe I haven't made it that far yet. But I literally have no idea what most of you are talking about in this thread. I feel like I visited a post written in chinese.

The scope of learning to code seems overwhelming. Finding small bugs in syntax and design is stressful. What I'm supposed to learn (language, style, syntax, frameworks) seems to change faster than I can learn it. I wish I would have started all of this earlier ... like when I was 10.
People who were banned are probably pissed off and chose 4days.
> My favorite juggler to watch is Falco Scheffler: https://www.youtube.com/watch?v=_CmnaICnMiw — no high numbers here, just 3 and 4 balls.

As a hobbyist juggler, his performance is really fun to watch on two levels. At its simplest, it's just a beautiful, flowing routine. It's really cool seeing one pattern become the next and the abrupt transitions between some are almost giggle-inducingly delightful.

At the same time, I can watch it with a juggler's eye and go, Rubenstein's Revenge, Windmill, Take-outs, Columns, The Machine, ....

It's exciting seeing a performance that is magical in total but that contains a bunch of pieces I can recognize and do myself.
Email seems like the right answer, but can you not put it in a sidebar, at the top of the page or probably best at the bottom of the content with a relevant CTA linking the article to your list?

Unfortunately I'm guessing huge popups convert better, although I'm not convinced that's true if your audience are similar to this community.
I hear everything this poster is complaining about. In fact, our shop self-restricts our use of LinkedIn's API because we fear that if we or our customers became too reliant upon it, either a. we'd be cut off (for some nonsense reason we'd be told we were not compliant with the API TOS) or b. (like the OP) we would not be allowed to join the LinkedIn Partner Program.

On a cynical level, I wonder if companies who advertise on LinkedIn have better luck joining the LinkedIn Partner Program. Does anyone have data points on this?
Using a foreign language changes moral decisions
>>someone had to "win".

Completely agree. Once this comes in team mates stop working for each other, instead begin working against each other.
Life Advice: Mike Rowe from Dirty Jobs
Uh? Dude, linkedin is industry standard
Ahhhhh, I deleted one before I posted it. A zero index is a great idea for next time lol!
I don't eat this stuff for my own dietary reasons, but even I know Soy and Quinoa and old fashioned rice -n- beans and hummus (aka mushed up chickpeas) and plain old peanut butter sandwiches are cheap complete protein sources.

If you want fat intake, which is good as long as your carb intake is low, disgusting and unhealthy as it is, factory produced vegetable oil can fry nearly nutritionally vacant potatoes. Dip them in corn syrup ketchup for extra vegetables or at least empty calories.

If you are diagnosed allergic to soy like my son, or think the stuff on the above list is "gross" life gets complicated and expensive rapidly if you subsist entirely on the weirdest of vegetarian supplements and prepared meals and prepared snacks.

Also I'm locked out "submitting too fast" but:

A non paleo diet of nothing but rice will probably kill you in the long term. Lets run with it anyway.

Depending on how badly you got screwed and how many middlemen stand in the way and the size of packaging, 50 cents per pound is (was?) not totally out of line for rice. So at $4/day you can afford 8 pounds of uncooked rice. After cooking it, it'll be a whole lot more than 8 pounds due to water adsorption. But the nutrient content of the uncooked rice (not much washes away) is about 3 cal/gram somewhat pessimistically aka about 1200 calories per pound of uncooked rice. And you'll be consuming 8 of those pounds... per day. so thats 9600 calories of cooked rice per day.

Given an intake of 9600 calories per day, I checked out some basal metabolic rate online calculators. I got about 9000 calories per day BMR for a 30 year old male 6 ft tall weighing a mere 1300 pounds. For out metric readers, 1300 pounds is almost exactly 1/2 the mass of my new commuter car. So pretty freaking huge.

On a very long scale, given a mere $4/day to live on (I spend $6/day long term average and eat like a king, so WTF about that) and only eat rice and somehow don't die of a deficiency or diabetes, your weight will eventually stabilize at a mere 1300 pounds given that monetary intake in the form of 100% rice.

So yeah, vegetarians probably are not going to starve to death on a mere $4/day unless they're really screwing up.

(my apologies, I checked Amazon Prime and its hard to get rice shipped to my door for less than $1/pound, although it seems like mere years ago I saw 50 pound sacks for $25 at the grocery store... At any rate, $4/day is enough to be obscenely morbidly obese)
That's quite the hack.
I'm not sure what this dude is complaining about. He says "Oh woe is me, my rice cooker is so complicated! Look at this instruction manual" and then proceeds to post a diagram that includes complicated steps like "put the rice in the pot" and "plug it in". The actual cooking of the rice involves pressing two buttons; one button is literally the power button to turn the damn thing on, and another button lets you select what type of rice you want. If pressing two buttons is considered to be a complicated process, how did he manage to make the blog post?

The advent of fuzzy logic in rice cookers is pretty great, in my opinion; maybe he doesn't get a lot of benefit out of the ability to cook e.g. brown rice or bread or vegetables in his rice cooker, but if he's trying to complain that this device is so so complicated, he should probably post an actual complication that he has trouble with, instead of whining about pressing two clearly labeled buttons.
I can recommend this article that explains OT really well: http://www.codecommit.com/blog/java/understanding-and-applyi...
Using var to declare a variable later assigned to an anonymous function can help with managing larger JavaScript projects where scoping and data member access is important. Here is a pattern I tend to apply rather frequently, included is an example for a custom instance object, which would be created with 'new', and a Namespace object:

var MyObject;
(function() {
var staticPrivateVariable;

MyObject = function(opts) {
// Do Initialization Stuff
};

MyObject.prototype.publicInstanceFunction = function(opts) {
// Do instance stuff
};
})();

var Namespace;
(function() {
var staticPrivateVariable;

Namespace = function(opts) {
// Do Initialization Stuff
};
Namespace.publicFunction = function(opts) {

};

function privateFunction(opts) {
// Do some private stuff
}
})();
Great article.

A few years ago I gave a talk that gets into the "why" of the relationship between testability and good design: http://vimeo.com/15007792

It has a rambling start because I was timezone shifted, but gist of it is that whenever we encounter something that makes testing difficult there's some sort of design problem that is causing it. Some are obvious and some aren't.

- Hard to test a class in isolation -> too many dependencies

- Tests fail intermittently -> mutable global variables

- Unable to find a good point to test -> direct access of system externals, i.e., no layering

- All tests can't run because of resource leaks -> code doesn't clean up after itself

- Urge to test something private in a class -> usually an SRP violation

- ...

The list goes on.

The real question is why? Why is testability a proxy for good design?

I think that the reason it is is because the essence of good design is creating things that are understandable - understandable enough to see plainly what they do and understandable to enough to modify and extend.

Automated testing is a cognitive process - it is writing code that understands code. Every step of test is bit of that cognition. If it's hard to write code that "understands" your code, then it's probably hard to understand your code.
I've been looking to switch away from wordpress for awhile, but I don't know of an easy migration path that transfers all my data. Is this possible?
I would simply caution that $4/day is an on-spec ingredient pricing[0] and does not account for actual cost to make these meals. A trained cook in a professional kitchen could do it, given the acess to storage and ability to re-use ingredients via a well-structured menu. But the paid-for overhead would be masking a variety of costs that weigh heavy on the target audience.

> Frequent re-supply and cost-effective quality control of ingredients

> Zero-cost re-application and limited spoilage of non-consumed minium purhcase portions

> Abundant prep space, intermediate storage/refrigeration, and sanitary control

===============

Quickly glancing this book, Kale Salad on p 16

Hidden costs: Most of the nutritional of this salad comes from dried bread (1/2 loaf), leaving (1/2 loaf) in the pantry. Likewise, Fresh parmesean ($10/lb+up), anchovies ($2/tin), and dijon mustard ($3/per) leave most of their value in the pantry as well.

Hidden Nutrition: Most of the calories for the salad come from the bread, not the kale. Meanwhile, a 15% protein diet needs ~70-80g protein a day/person[4]. The only material protein in this "dinner" salad is 1 egg yolk, and 1 anchovie split by 2x people. That is 3-4g of protein per head, when a typical dinner should have ~30g (off by an order of magnitude). Twice as much protein actually hides in the cheese garnish. But to increase the protein to reasonable levels, Its tempting to double or tripple portion the cheese...thus driving up the food cost of the recipe. 4 oz of fresh-grated parmesan is at least $2.50. That would give you 25g protein/head out of the meal, but the cost for the salad would be $8 for 2x portions, blowing the daily budget in just one meal.

In any event, this is an increasingly interesting area for cooks and food authors[3].

[0] http://www.amazon.com/The-Book-Yields-Purchasing-Professiona...

[1] Assume 2000 kcal/day, 15%=300kcal. 80g protein is 320kcal, 70g is 280.

[2] https://en.wikipedia.org/wiki/Jack_Monroe
Indeed many people joined LinkedIn specifically so that prospective employers could find them.
Reusing [Bitcoin] addresses is bad m'kay?
They only really push users to upgrade. They don't let you know that you can view the full profile if you sign out. That's just an obscure (possibly temporary) workaround.
You can, there are plenty of XML feed providers who will provide you an XML of ads relevant to the keywords you provide, which you collect server side and display to your users.
> Banning an individual from a service without clear proof that they committed or colluded to do fraud or otherwise malicious behavior -should- be illegal.

I disagree. It's Google's service, Google has a right to decide who gets to use the service. They are under no obligation to make their banning process transparent. It's not illegal to kick someone out of a store you own (unless you're systematically refusing to serve certain types of people), so the same should be true here.

Also, making the automated banning system transparent essentially teaches people how to circumvent the system. This is why games companies so jealously defend their anti-cheat systems, if word got out on how they worked they would be done for.

I do agree that it's unacceptable to withhold earned or paid money as a result of the ban. If you're an advertiser, you should get a refund, if you're a site/app administrator, you should be paid any non-fraudulent earnings up to the time of the ban.
You'd have recourse if those things happened, whereas you don't have recourse if Google terminates your account. You enter into a contract where you agreed that they had this right and that payments would be forfeit. If a cell company overcharges you, you have a legal case for recovering that money. If Google terminates you, you have none, and going to court to fight a contract you agreed to is likely going to result in further losses.
As a hiring manager, I expect candidates to have a LinkedIn profile that is up to date. A LinkedIn profile is a public copy of your resume; other people can see it and flag if you make inaccurate claims. I can also see how you're connected to me (it's a very rare web developer who isn't a few degrees away from me, mostly because of my time at Yahoo) and use those people to work out where you are in the industry, and get background information from them. Public recommendations are good (the skills endorsements list much less so).

If you don't have a LinkedIn profile, I assume you're either very junior, shady, or clueless, and none of those is good. [Edit: per comments below, you might have some deep principled reason for not using social networks. In this case my metric is wrong, but I'm okay with having a false negative once in a while.]

Expecting everyone to have and maintain their own domain probably isn't practical, but even for those that do, the discoverability of that domain is low: I don't search google to find developers, I search LinkedIn. That's what it's for, and it's really pretty good at it.

They do some really dumb UI stuff around privacy that is trivially worked around using Incognito. I wish they didn't, but it's not dumb enough to make me abandon the giant utility of the network as a whole.

[Update: I took this thread to Twitter and got a bunch of really cogent arguments, including that LinkedIn enables harrassment/stalking of marginalized groups. That's more than a few isolated people who don't like social networks or object to the dark pattern UI, that's a systemic flaw. So I'm going to change my hiring practices to take that into account. Thanks, everybody!]
hilarious. truth is stranger than fiction indeed.
LinkedIn is not just for recruiters -- it is, for better or worse, the first place where your business contacts will often go to check you out. It exists for you to project the optimal image of yourself in a professional context. It is useful because it has a consistent format that makes it much more easily readable than a collection of custom sites.

Having a LinkedIn page isn't mutually exclusive with creating your own page / blog / whatever. What it does do is let people see at a glance where you come from, who you've worked with and what work you're interested in. It's the tl;dr of your professional profile; not the entire profile itself.

I don't care about the security issues because I don't intend to put anything on there that I don't intend to be public knowledge. I don't care about the spam because I basically just forward everything from LinkedIn to spam. LinkedIn is very useful at what it does; and as long as I can keep it in that little box, I'll continue to use it.

And I know very few people who have gotten a job from a cold call on LinkedIn. Nobody gets jobs that way; you usually have to know someone who works there already. LinkedIn helps answer the "who do you know here again?" question because the interviewer who looks at your profile 5 minutes before you walk into his office will already know that you used to work at some startup with his head of development. That kind of connection is what helps you get the job, and LinkedIn is great for it.
In whole explaination it seems like you ae defending Google. :). and why will anyone comeup with his original identity.
The Leaker:P is also smart guy SIR. :)
Before every meeting I have, I look the person up.

I can't tell you how important this can be, especially for sales meetings where the other participants may not be the kind of people with their own domain names and websites.
The primary difference is "hoisting" https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe.... Closure can be created in both cases.

Also, functions have names.

var funcName = function () {};
funcName.name; // ""

function func2() {};
func2.name; // "func2"

Thus, anynomous functions are truly anonymous whether or not they're assigned to a variable. `func2` can be assigned to a variable too. It'd retain its name (`func2`).
> Some .edu folks think its hilarious to use math as a gatekeeper although the grads will never use it on the job... jokes on them if someone hacks that system and bypasses their artificial little gatekeeper.

Is it really that entertaining that everyone cavorts around such a useless subject? There's a saying that in a war between kings, the battlefield is the farmers' trampled corn.
I saw this one tweeted out yesterday by one of the Ghost devs. Integrated commenting similar to what Medium does. http://ouija.io/
We changed the url from [1]. Submitters: please double-check what you post for links to more original sources.

1. http://gigaom.com/2014/04/30/a-reward-for-turning-in-airbnb-...
I agree. I'm a project manager, have been in multiple industries. Aviation, intelligence, product dev & mechanical engineering, and oil & gas all use Linkedin, and I benefited from using its service. Linkedin has provided both clients and meaningful job interviews for me; I even give them dollars for upgraded service from time to time.

If you are in sales, it's invaluable in finding individuals in organizations. Maybe some think this is a bad thing and that's fine; I do not. If you are job hunting, it is unbelievable to be able to put something directly in front of the actual person hiring before getting in the door.

Despite being filled with strangeness, many of their industry groups are good for finding specific knowledge. It's scummy (and much less knowledgable than HN or forums around the net), but that's just how some of the internets be, I guess.

It does seem a bit like MySpace; something almost exactly like what they are actually trying to accomplish.

I understand the disdain some have for Linkedin, but I myself have benefited from using it.
500 Startups Accelerator Announces Its Ninth Batch Of Companies And Two New EIRs
Confused by Facebook privacy settings? So is the Supreme Court
The investors who are valuing AirBnB so highly are the same people with access to lobbyists and the sort of money that talks loud enough for government officials to hear. I doubt they'd be investing so heavily if they didn't believe they could game the system (for better or for worse).
HTML5 Tokenizer Visualization
See also: Andy Baio's archive of computer interfaces in movies:

http://screen.waxy.org/screenshots/

More info in this post on his blog:

http://waxy.org/2013/07/screens_on_screen/
'Tis a line from the chorus of a famous (?) song about him:

https://www.youtube.com/watch?v=spDWaeBE2AY

Our Don Bradman - And I ask you is he any good?
Our Don Bradman - As a bastman he can sure lay on the wood.
For when he goes in to bat
He knocks ev'ry record flat,
For there isn't any thing he cannot do,
Our Don Bradman - Ev'ry Aussie "dips his lid" to you.
Even though I already agree with the premise, this article seems to go on for a long time without convincing anyone of anything. Needs some examples or something.

And what we really need is a universal API consumer for when every municipality and your toaster has an API in different format.
Does anyone know of Groovy being used as the primary language for a significant codebase outside of some other language or framework? Every use I've seen of it involves helping along Grails web artifacts or existing Java classes. And most uses of Groovy in Github are as the language for a sole Gradle build script, to build a project written in another language. You'd be taking a big chance using Groovy as the primary language to build something if there's no known track record elsewhere for this use.
> You know what has a high chance of introducing a crap ton more bugs? Unnecessary code. :)

If only that "unnecessary code" had tests... Oh wait.
is a site called AntiAnus safe for me to view at work?
Even these newfangled digital ones are pretty cheap now.

I love the idea of being able to schedule when to have it cook.
A while back I hacked up a script for doing digraphs in tmux. It's not precisely equivalent to screen's digraph support, but it does the job and (given that it's just a Python script) can be easily extended.

http://paste.pound-python.org/show/6aCbTG3lKgCWdrRygkBG/
If you've received starting offers 30k-50k more than you are currently being paid in a comparable/better company, you have two options:

1. Tell your boss you're getting an offer for 30k more. Ask for that amount or a considerably larger profit share. 30k in direct compensation is worth 60k in uncertain profit share (3.5%). If the profit share were high probability, he would offer you direct compensation instead because he would prefer a superior outcome for himself (higher profit).

2. Leave and work for the other company. 30k is a lot of money.
While the book is quite nice, I think it really misses it's target demographic. Many people in poor areas end up buying a lot of their food from the local convenience store where there's just a selection of low quality and unhealthy food (and not anything fresh). Kids also tend to be left to fix their own meals, which will be mostly junk food or something that doesn't require any preparation. It's a very challenging problem to address. Even when you have programs to get fresh and healthy food to these neighborhoods, it's a challenge to get people to take advantage of it.
I don't know about making it easier for some of the programs, but you can see the current partners here: http://developer.linkedin.com/partner.

The CRM Partner Program is what's relevant to Nutshell, FullContact, and probably anyone else who wants to use this data; Microsoft Dynamics and Salesforce are the only current partners.
I saw a demo of CoreOS yesterday, and was super impressed. I'd heard of it before, but never really understood the power until I saw the demo.

CoreOS is basically an OS with the fundamentals to force you to "do cloud right".

If I were building a company right now on AWS (or any other cloud) I'd seriously be considering basing my infrastructure on CoreOS.
LinkedIn Is Out, Exclusive Is IN For Executive Jobs
Coding bootcamps will grow by 2.8x, to ~6k graduates (study)
Correct me if I'm wrong, but isn't researching the background of a candidate beyond the contents of their resume - in other words expecting them to have and inspecting their LinkedIn profile - illegal?
Hmm. Perhaps, for the scenario I'm describing, the key is simply to get away from my desk (and thus, away from heat-of-the-moment coding). The actual walking around might be irrelevant or worse. I could believe that... though the walk does have other benefits, unrelated to the immediate task at hand.
+1. My rice cooker defaults to white rice, so that's one button press to turn it on and... that's it.
Ask HN: why wealthy people like Mark Zuckerberg can't afford a decent shirt?
I am watching F8 Live [1] and I am literally curious, why can't he dress with a proper shirt?

[1] https://f8.facebooklive.com/
The movie/tv/cable/theater industry's problem is that it's greedy at every level. Region locked DVDs, release windows, forced previews, commercials in the theater before your movie, commercials on paid streaming content (I'm looking at you Cosmos), Amazon for one thing, Apple for another, Netflix for a third, etc, etc. It wreaks of screw the customer, I'm getting mine.

Yes, a lot of this is a consequence of a free market. But so what? The end-result is that popcorn time is a compelling product not solely to get the content for free, but mostly because it's the least hassle way to get content at all.