skysight-inc/HackerNews huggingface dataset:
For me, it's Clojure's threading macros. They're like the `|>` operator on steroids. Also from Clojure, the ability to use maps and keywords as functions in a lot of cases, such as: `(map :hello [{:hello "world"}]) ; ["world"]` and `({:hello "world"} :hello) ; "world"` It comes in really handy more often than I would have thought.
Why every startup should adopt Amazon's 14 Leadership Principles, with examples
One interpretation of existencebox is that he has already assumed the moral position that shielding pregnancies is wholesome for society, but he's asking the policy question of where the money should come from, or if government should get involved in evening out the burden.

On a tangential matter, I think many people would agree that society should consider financial help for children in poverty. But who should pay? The potentially poorer neighborhoods where they reside? The businesses in the area? Or the national government?
This isn't new. Companies have been trying and succeeding at discriminating against pregnant women since women have been working.
Thanks for the chuckle.

To save everyone from having to look this up on Stack Overflow:

.map passes two arguments to the function it calls - the value and the index. The parseInt function takes up to two arguments, a string and a radix.

So there’s nothing broken here about .map, you just aren’t expecting the second optional argument for parseInt.

So the actual equivalents are:
['1','1','1'].map(parseInt)

And

['1','1','1'].map((n, index) => parseInt(n, index))
An autonomous car depends on reliable maps.
There is a "surprising" number of one-man shows in the early gaming world.

Also, even though the net didn't exist books did. Not was Another World his first game.

And do not belittle the Infocom games, they had perhaps the best parser of any text adventure. And they were able to cram those games into 8-bit micros.
In other news, water = wet.
More or less.
> Pregnancy, having kids, both for dads and moms, having a life, being older, experienced, all things that will count against you.

This is so true, at least in the tech industry and startup world.

The bottom line is that if you're a parent, parent-to-be, or older, the apparent assumption is that you have a life outside of work, and thus you will likely not make work your life, so you will be working less than a childless early 20-something, and you'll probably actually use the health insurance, take vacation time, and maybe work reasonable hours. This, I suspect, is a big component of age discrimination as well.
If that's so, it's interesting how many prominent CEOs there are. Just off the top of my head, Sundar Pichai and Satya Nadella come to mind.
Dating websites are themselves not representative of human interactions.

I’ll happily concede that if you restrict yourself to the intersection of men looking for casual encounters with similar aged women looking for casual encounters, you’ll find winner-takes-all effects.

But there are lots of women not looking for casual encounters, and I don’t accept the proposition that polyamorous women are removing themselves from the dating pool for less than perfect men. It appears to be very much the opposite.

It’s just that casual encounters are really, really different from polyamory. “Willing to have casual sex with multiple partners” != “Interested in a polyamorous relationship”.
IIRC Mythbusters had an episode about this “son of a gun” myth and concluded that it was essentially impossible. It still makes an amazing story. Like all virgin births I expect the truth was either that it was entirely fabricated, or it was real insofar as the woman in question didn’t want to publically give up her “virtue” (which given the periods involved, is understandable). Plus you as a bonus you get long odds on starting a religion.
There is no indication the prosecutors themselves decrypted anything. This is an editorialized title.
Cuz it’s the law. Also, statistically it comes out in the wash.
I'm not. Mention women and work/tech and you'll always see the dark side of HN.
Troublesome advanced engines for Boeing and Airbus jets have disrupted airlines
Show HN: Autonomous Cars with Marc Hoag
So for the people who don't want to spend 3 minutes to read it:

1. The woman did not have a full vagina leading to the uterus, but instead had more of a 2" dimple.

2. The woman was practicing oral sex.

3. She was stabbed in the abdomen.

4. 9 months later a child was delivered by c-section.

5. At 5 years, the child had a remarkable resemblance to the father.

The theory is:

1. Saliva has a high pH which would allow the semen to survive.

2. Her stomach contents were empty when they were repairing her stab wounds, so her stomach might not have been producing acid.

3. The stab wound allowed the semen to flow to her uterus, impregnating her.
Most of my early career was Unix, with just a little DOS and Windows thrown in (enough to persuade me to keep trying to avoid it).

Unix was mature even then. There is NO WAY you would have convinced me that 30 years later I'd still be using most of that, still gluing things together with the same shell tools. Or that most of the books would still have a place on the shelf (albeit sometimes in 2nd or 3rd editions), and turn out to be classics.

Ignoring big iron, we'd gone from Apple IIs to Amigas and workstations in just a few years, and hardware was changing as rapidly as the current fashion for JS frameworks does today.

Yet here we are, awk, grep, sed and the other tools still feel like the right, concise answer. So why not learn them, they might greatly surprise you by their staying power.
'more' still works on OpenBSD, but funnily enough it's just 'less' in disguise.

https://man.openbsd.org/more
Elizabeth Holmes indicted on wire fraud charges
Erlang/Elixir, Scala if you use Akka
Well, I see there's at least been some action on the TextInput regressions that were keeping us on fork! <3

Not that running a patched version is necessarily a huge deal, but it's nice to have that 'this random code is approved by someone that actively works on the codebase' stamp.

(well, still might be on 0.55.3 for the version if NetInfo we can work around, but I do appreciate the project, warts and all)
Smaller regional corporations with local monopolies.
Because invariably whoever is mimicking Jobs' outerwear didn't go through the same process that Jobs did, nor develop the same philosophy that led to making that process even possible or an opportunity to spot, to arrive at that turtleneck. The turtleneck is a representation of Jobs' ideals and thinking around focus, quality, grace, craftsmanship, teamwork and many other attributes he admired. Even those people who go to the trouble to get the same kind of turtleneck from the same Japanese maker that Jobs did, I can practically guarantee they have only the vaguest clue why Jobs arrived at that turtleneck.

It is far more enlightening and satisfying for those people to develop their own sensibilities, find personal ways to express them, and through their force of will and drive, imbue their own meaning into their own habits.
.map(fn) calls its callback with three arguments, the value, the index, and the full array. Then parseInt takes two arguments, the string and the base (radix).

"1" of base 0 is 1

"1" of base 1 is NaN

"1" of base 2 is 1

The gotcha here is if you map(fn), you're going to get all three arguments sent to the fn, where map(v => fn(v)) explicitly only sends the first one.
> The list includes soybeans, electric vehicles, a range of hybrid electric vehicles, a variety of seafood and pork, according to the Ministry of Commerce.

Tariff on electric vehicles also serves China’s strategic interest in becoming the world leader in the industry. It allows their domestic manufacturers and ecosystem to achieve even stronger economy of scale and to move up the learning curve faster. (Domestic competition is already intense so complacency is unlikely.)

I suspect they had wanted to do this and the event provides a perfect excuse for it.

It is possible we will see Shenzhen-style hub for electronic components where it is the cheapest and fastest place globally to manufacture many electronics but now for electric vehicles, again in China.
Much like nobody reads a Terms of Service agreement, the fine print, or anything else that is perceived as an obstacle by the user.

I suspect a large number of them are trashed or marked as spam.
Nobody thought about it or did that on purpose to confuse you with this particular example. If you would do js enough you still could be surprised at first but then you'll see it's pretty valid behavior. map will pass value and key to the method given.
so it will call
parseInt('1', 0)
parseInt('1', 1)
parseInt('1', 2)
Did you look at the site? The "simple text" remains as simple text and works fine with JS completely off.
There Unix philosophy. https://en.wikipedia.org/wiki/Unix_philosophy

It's a shame to see so much bloated, over abstracted development these days with more emphasis on delivery than doing one thing well.

https://en.wikipedia.org/wiki/Demoscene

After seeing what the demo scene is able to pull off in very little code makes me hope that the art of fundamentals & single responsibility principals like in Unix/Linux resonates with younger developers the ability of truly understanding a problem scope before implementing a solution. Above all else have fun with it, be curious on even a low level how your program functions at an os & hardware levels. Things like what is the von Neumann bottleneck? Or even those building boolean logic gates in minecraft is inspiring to want to know "how does it work? And why?"
Senior roles require that you can break down large problems into digestible chunks. "gotcha" questions don't tell an interviewer how good you are architecting, or how well you understand the language. "gotchas" are usually easily Google-able too.

I've asked a lot of code structure questions. JS really easily turns into spaghetti code if a dev isn't careful. I like to test candidates on whether they make code understandable with clean closures, modules, files, etc. I'll also ask about which libraries they used, why they used them, and what they liked/disliked about the library. Also, "because that's what the code base was in, and there was no reason to change it" is a legitimate 'why'.

For language specific things:
- How closures, scopes, and prototypal inheritance work is important. This is often tested with nested callbacks.
- Web API design
- HTTP methods (Not as important if a candidate's background is in RCP, GraphQL, or something that doesn't use HTTP methods RESTfully)
Verified Functional Programming in Agda is the best Agda resource available, but studying Idris via Type-driven Development with Idris will net you very transferable insights.
These are research languages, so the ideas are extremely interesting but not production ready.
What I like about working in Agda is: proofs are verified by the compiler (so I know when I've proved enough), dependent types blurs the lines between types and values in a way that makes expressing complex typing relations no bother at all, and that mixfix operators let you create some really neat syntax.
(Aspiring) computer scientists will be well of taking a look.
That note is misleading or wrong. Humans are animals and the article contains several explicit references to human parenting.
https://news.ycombinator.com/item?id=17323485
That's not the new part.
Vanno dritti alla rotonda e finiscono dentro il giardino di una casa
Exploring Bill Gates's Privates
Excellent news for American society.

“The Chickenshit Club” by Eisinger recently explained why the lack of criminal charges had emboldened white collar crime.

Basically, individuals need to have the risk of criminal charges if they do something very egregious - they need to have skin in the game.

The US Justice Dept has in the past two decades largely only been fining corporations. And so companies estimate risk and budget for these numbers. So fines are not a completely effective deterrent. The book explains this and how the DOJ policy grew out of backlash to the Enron verdict.

Ps we talked about this in May, and @danso predicted criminal charges would come - and he was right. This is good news for the US DOJ. Too bad the US can’t retrospectively prosecute bankers for 2008 and claw back their size-subsidized, low risk premium profits.

https://news.ycombinator.com/item?id=17123315

Edit: book review here. It’s a really good book. https://mobile.nytimes.com/2017/07/05/books/review/the-chick...
> As a result, some email marketers stand to lose 80 percent of their marketing lists -- or face huge fines from the EU if they keep trying to email these people without permission.

Oh... no...
Your statement of "recruit" is exactly the sort of misconstruction I was hoping to avoid.

threatofrain got it right. This is a problem we need to address, but the solutions I've seen thus far don't take unfortunate pathologies of human psychology into account, and when we don't do that, we get very surprised at the lack of results down the line. You're more than willing to try to live in a world where you say "Because we said X this is what's going to happen" but I find that to be far less proactive than trying to ask what actual responses are, as distasteful as they might be, and ways to address them.

My concern is that Rayiner's response, "we prohibit it because we made it a law" is still ignoring the key point. _it's too goddamn easy_ to discriminate and paint it as something else, too many reasons I could turn down ANY applicant, for me to just brush it off as "a law is sufficient." I believe that if this is a problem we _really_ want to fix, it's going to involve delving into some unpleasant trains of thought that aren't really "acceptable conversation" right now. I just worry that by ignoring it, the problem goes unaddressed, and we potentially foment resistance against it.

It feels naive to me to think that just because a law is "full stop necessary" in our moral frame of reference, to think that's sufficient to implement it effectively such that it generates the outcome you want in the long run.
It already does.

Source: We currently sell this service.
Nothing about context? Sad. You can find many tricky questions and all of them would be about context.
IIRC there's no method of putting headers or footers on pages, nor page number without manually counting the lines yourself.

I could be wrong though. Awk is one of those tools like vi where you can use it for years and still be discovering new features.
Non-Paywall Link: https://archive.fo/Sd8AC
It says that they have "731 pages of encrypted data" but nowhere does it say that they managed to decrypt the data, and read the plain text.

It states that they did not disclose what was in the "encrypted data" so... there's no indication or assurance that they've managed to access the plain text.
On the other side of "social invisibility" lies life of being "trophy" talent/socialite acquaintance/romantic partner, and, the most dreaded one, the life of diversity hire.
Same in JS
Well, philosophically, at some point yes. There should be some level of personal responsibility not to sign up for a job that you don't intend to do. I don't think being required to provide detailed medical records is reasonable, a good faith, optimistic best-case is enough for me.

And while you might see pregnancy as equivalent to having a medical condition there are actually a number of fairly important differences. For example, in the modern era, pregnancy is more controllable than illness. Quite a number of people enthusiastically plan on it. Those aspects, intent and control, are important for determining who should bear the cost. The cost should not settle on an unwitting employer looking for a new hire.
If you can find even one such comment that also offers a heuristic for when your self-doubt is justified and you should therefore quit, I will be surprised.
I think your examples make your conclusions less likely, not more.

* Dentists, in particular, would secure more work if they organised and actively promoted dental practices that they knew were harmful. Nevertheless, that doesn't occur.

* Doctors as a group, similarly might stand to benefit from drawing out a disease for longer. Despite this, it is an absurd and baseless claim to make of doctors as a group, though presumably some unethical individuals might on occasion. An individual from a different year my medical school was recently charged with murder; this doesn't have me in a crisis over the legitimacy of the profession.

I note however it is a valid and compelling argument to make against pharmaceutical companies -which do have a theoretical financial incentive to pursue non-curative remedies over curative ones (guiding research priorities, and/or attempts to lessen the cost of production of known curative remedies), and this is followed by multiple documented examples showing this occurring in practice.

Among clinicians actually having to face sick people in person, this behaviour seems to be extremely rare.

--

Regarding your specific example about "asking dentists how often to brush your teeth", there is in fact quite a healthy debate between dentist organizations and medical organisations - the former arguing that 3x per day is best for dental health, while (some) medical organizations argue that 2x per day is a better balance between dental health specifically, versus the added risk to general health of harmful bacteria entering the bloodstream from minor cuts on gums caused by brushing.
In that debate, it is instructive to note that neither dentists nor doctors organisations accuse the other of acting in bad faith. In this instance, asking dentists as a group how often to brush your teeth is actually a quite sound idea, and the idea that they provide self-serving answers is comically absurd; if anything their current published guidelines on this question is too good for your dental health, at (very slight possibility) the expense of your general health.

For a more in-depth discussion of research and abuses of research on questions of health, I heartily recommend "Bad Science" (2008) by Ben Goldacre. One chapter is available free online here [1].

[1] https://www.badscience.net/2009/04/matthias-rath-steal-this-...
His grandma probably has other blood tests.
Good God no! In theory each isn't so bad, but cult-like memorization/regurgitation and the use of each as an internal political weapon is the Amazon way. (Seattle-ite with a number of Amazon and (of course) ex-Amazon acquaintances.)
No one ever thought it would be a good idea, Contravariant. :/ It's just an unfortunate interaction between two APIs. Map's callback gets three args, and parseInt takes two (and ignores the third). After a while, you get used to wrapping callbacks to slough off the spare variables as shown.

In this case, the index of the element (1, 2, 3) is getting passed as the radix with which to parse the element (1, 1, 1).
Here's some shots from various stages of completion. Since then I've polished it up a bit and added a grille over the CPU fan.

https://imgur.com/a/5TkN58M
Why on earth would those fools print it all out?
Well, that’s a pretty fascinating story, thanks for sharing!

It may be hard to know two generations removed, but I’m curious: Are you saying your grandfather’s potential paramour broached the subject with her husband, without first being emotionally or physically unfaithful, and the husband went after your grandfather?

Or are you saying the husband was actively supportive of a change in the commitment at one point, then changed his mind?

If it’s either of those two, then OK, I take your point, people can be violent, and opening Pandora’s box can bring out that violence.

But if there was cheating, even if only emotional, without getting buy-in from an existing partner, than I don’t see that as a ding against polyamory (anecdotal or otherwise).

To be clear, I haven’t been involved in a polyamorous relationship myself in decades, so I don’t really have a dog in a fight here. But I have seen polyamory work well for many of my friends.
Imo few questions should be.
I've seen some "senior" devs that was just above typical junior, still not good enough to be called a "good middle". Filtering them out as soon as possible saves some time for both parties.
Meaning chains with word embeddings
I work on a freelance basis pretty much due to my inability to "play the game." My poor "soft skills" don't seem to be bother my clients much.
That's funny, I thought "Andromeda" was Google's network virtualization stack.

https://www.usenix.org/system/files/conference/nsdi18/nsdi18...
I'd take those articles with a huge grain of salt. How could you distinguish a CEO with the courage to make an unpopular choice (e.g. layoff 1/3 of the workforce to save the company) -vs- a psychopath who does it to inflict suffering on others or to just establish dominance? How do you even measure psychopathic traits without defining exactly what "psychopathy" means and a rational ethic by which to judge the non-psychopaths (i.e. the "control group" or standard of normal)? Moreover, motive is not irrelevant to the question and not only is it not measurable by researchers, most people don't even know their own subconscious motives.

I'd bet if you dug into the research what you'd find is the research really shows that psychologists who study such things do not have the character/psychology of those who become CEOs, not that they are psychopaths.
The one thing I find unfortunate about how people learn awk is the emphasis on making it terse and unreadable, especially trying to turn everything into a shell one-liner.

Don't write one-liners if they're not that simple. Write ten-liners! Add comments! Commit them to version control! Awk can be a nice, readable little language if you're not trying to win at code golf all the time.
I could see a use case for vi style keybindings on top of Monaco.
This argument is so reductionist it physically hurts me to read.

Yeah, I can eat the 10% productivity hit on labor expense, but why should it be my duty to?

This is the classical problem you labor-liberals have--you can't see past your nose to spite your face.
Not a JS Engineer - is it because the DOM isn't updated until the script yields?
Those kinds of business plans were typical of that era and venture capitalists were accustomed to investing in lofty dreams. Naturally, it didn't pan out most of the time and they've gotten smarter. Theranos managed to outlive most of their peers, it seems by turning to deception instead. From my reading, it seems that the failures are old but the crimes are recent.
Not to contradict Elon, but: I worked at Netscape and did not have a "formal CS background" nor did I ever ask interview candidates about their formal background. recall we hired a guy who's previous job was mixing a Nine inch Nails album. Fantastic coder..

In my experience the whole "must have formal background" began with Google, some years later.
Amen. The risk reward is crazily skewed towards breaking law. Most relying on ethics and social pressure.
The entire point of the reply was to correct the statement, not to dispute your opinion.
Yeah he got rejected by Netscape. Also not sure if it was an 'all-eggs-in-one-basket' situation, or if it was the only place he wanted to work at the time. Then the X.com story
Why? It’s still on top of Git so it is fully decentralised. Having options isn’t evil in itself.