skysight-inc/HackerNews huggingface dataset:
I haven't had a problem with testing in Go, but I also don't mock many things. Most things that should be mocked are already interfaces in my code. My biggest grievances with Go are its limited type system and dependency management. Unlike most[^1], I don't need semantic versions--I just need deterministic, reproducible builds, and for that, vendoring is fine in theory, but Go's tooling around it needs work.

I love that Go is a language that can be mastered in a matter of months; that it has such a simple "get up and running" story; that its tools mostly do the right thing by default; and that almost everything is straightforward. In most other languages, I have to figure out what build system to use, how to script it, how to specify and download dependencies, what testing library to use, how to actually run the tests, how (if it's possible at all) to get a static binary, etc--and then I usually have to learn a complex language on top of all of that. For the most part, Go just works out of the box.

I think folks also underappreciate Go's runtime--it has a fast garbage collector and an awesome goroutine scheduler that all get statically compiled into your application binary. Mostly, I want a functional language that compiles to Go so I can still leverage Go's awesome tooling, runtime, and deployment model, but with things like generics and algebraic data types. I've started prototyping it too, and so far it's coming along smoothly (modulo all the things I'm learning about building a programming language). On that note, there is some effort going on in the Go community to build a VM for Go, which would probably make an even more attractive compilation target, at least from a toolchain perspective. Even if my project doesn't take off (and it likely won't), I think this is a low-effort way to address Go's most significant complaints.

[^1]: Well, "most" judging by the significance many of Go's critics place on semantically versioned dependencies
So I assume they did found the guy to run it? http://www.scmp.com/news/china/society/article/2105278/china...
Marketing and business development summer internship 2018 -Bechtel Corporation
Would it be a better alternative to threaten to take it to Twitter or to specialized press?

I've never done it, but I observed that contacting customer service on Twitter is usually very effective.
And yet if we'd find even the most primitive life-form on another planet we'd do the exact opposite of trampling on it.
That tends to involve less than a house, but still costs more than the Switch itself.

(I just got a quote this morning for a what I thought would be simply "explain my property deeds", and it came out at £500...)
Collaborating? Frame Your Ideas with Curious Humility
Human curators are biased. Google company culture is left-leaning as a whole, so you'd expect to see that same bias in any curated content they provide.
Ok your reply makes no sense to me (see first line of my original comment).

I don't understand why you'd be putting a generator test load through the servers in addition to the normal power supply??? Why would you do that???

I would have thought that you have normal operation going on in the datacentre, normal cooling infrastructure, normal power coming in. Then the generators turned on with their in built cooling, then them delivering power to the test area and not the datacenter - which is then the only additional area you'd need to cool.

Seems like dealing with the heat would be not that hard, but perhaps I have too much faith in engineers? :-)

Even just a massive heating element in a tank of water, giant kettle style would work wouldn't it? Big kettle mind you, but big tank too. Seems like a cheap way to test the generator at full load for an extended test?
Yes, the wikipedia article also mentions:

> Harvard psychologist Deirdre Barrett argues that supernormal stimulation govern the behavior of humans as powerfully as that of animals. In her 2010 book, Supernormal Stimuli: How Primal Urges Overran Their Evolutionary Purpose, she examines the impact of supernormal stimuli on the diversion of impulses for nurturing, sexuality, romance, territoriality, defense, and the entertainment industry’s hijacking of our social instincts.
Nature isn't fair. Death is the norm for most life. Eat or be eaten. Kill or be killed. The fact you are alive now, and are intelligent ,and have enough resources to contribute to this discussion is already extreme luck. Things are not evenly distributed. There is a natural pattern of fractal distribution in almost every measure of things. Wealth, power, populations, you name it, will concentrate. To reduce the ladder of success to a flat plane is to introduce something unnatural and nature abhors mono cultures. Where nature does allow for a plethora of success is in the discovery of new environments either through disaster or creation. Take the latest bitcoin craze for instance. The block chain is a new environment. Those early enough to get in, and if they stayed in, are now owners of vast fortunes. Unfortunately, we have no way to predict where the next big environment is or where one will appear. While the wealthy will have more ability to dive into those environments, recognizing where they will occur is a skill that can be learned by anyone. Trying to make life fair is to fight nature; you will loose. Ride the waves, don't fight them.
A human may harm a robot; or, through inaction, allow a robot to come to harm.
Even using the term "higher order" that seems like a very OOP solution, while render props is very functional and thus a better idiom for JavaScript.
Non American here: what do you mean by "inviting certain people to certain places"? Like to a wedding?
At record high, Bitcoin is still fundamentally wrong as a currency
Social media will have their "cigarette moment," after enough time has passed to do the studies.
I’ve had similar experiences with delivery companies (UPS seems to be the worst for me) over the years, and sort of just accept now that this happens from time to time. After all, the “fucknut idiot” delivery driver is just a person who can makes mistakes like the rest of us. If they don’t deliver on time, I reach out to customer service and ask for a refund (works well, if you can put up with the hassle of calling)
No, but you might be required to make reasonable accommodations to allow them to fix it, or minimise the cost of repairing it for them (at their expense). As I understand it, you couldn't just pick the most expensive solution and charge it to them, or obstruct every attempt they made to rectify the problem, simply because you were annoyed/inconvenienced. You may also be required to do other things to minimise the losses they have to compensate you for.
How are teams currently using osquery?
For a big enough digital product, "hacking psychology" happens by default, more than intentionally.

First, it happens through competition. Good psychology hacks are things like tinder's fast paced swiping. Out of the squillions of dating apps, the one with a good hack won. I think Facebook used an identical hack for its first version, the hot-or-not version. Twitter's basic concept. Snapchat's. Lots of examples. All good "psych-hacks" that formed a core of successful products, arrived at through a sort of natural selection process. I suspect that almost any app which does not "solve a problem" leverages some hack instead.

Second, psych-hackers FB actually employ are not psychlogists. They're data scientists doing split tests. If this works like that, will you like more posts. A/B testing is really behavioural psychology expirementation, weaponized.

I think both of these are quasi-inevitable. But, constant optimization towards viral drek is not.

Where I think FB should be sheepish about is allowing the optimization to go on directionless. The only goals are quantitive. Quality is a foreign concept. No one has asked the question "what should FB be." The answer is simply "popular."

This isn't inevitable. Applied to businesses as a whole, you could replace "popular" with profitable. All businesses are under this imperative. But, that doesn't mean directionless. Businesses can strive to be all sorts of things in addition to (or preferebly as a path to) profitable. FB is itself an example of this.

What I want from FB (and Google) is a recognition that they are media companies, the biggest media companies. After that, they need to start dealing in quality. If you only optimize for quantity of reactions, shares and such while disregarding quality you become a shitty tabloid. No taste. No integrity. Just clickbait.

FB need to ask themselves "is the content (eg news) on FB of good quality?"
How much time have you spent in Japan or among Japanese people?
Stopping for the unexpected is pretty much expected. Lots of human drivers freeze up when confronted with a situation like this. I don’t see any lesson here other than that human drivers are atrocious and the fully autonomous future can’t come quickly enough.
> Not programming the car to use the horn is basically the same as not making a button in the cabin which can activate the horn for a human driver. In that case it would be not road legal.

Isn't it more akin to having a working horn but a driver who never presses it? Would a human driver ever be prosecuted for not using their horn?
If a mapping between compatible sexes existed such as in your example, it would be more useful to think of sex as continuous spectrum rather than a discrete collection.
Google Pixel 2: All the Rights and Wrongs at One Place. – SuratNow
Rules of the road give less powered vehicles the right of way. trucks should yield to bicycles and pedestrians. Trucks flout these rules regularly.

--EDIT-- it seems my comments are being misunderstood. I am simply stating the law as it exists, and the orthogonality between land and sea in regards to these laws. I know that Newtonian physics conflicts with the land aspect of these laws.
There are quite a few things in Kotlin which are not possible in Java

* Top level declarations

* Sealed classes

* Coroutines (in Java this is currenty only possible with Bytecode manipulation)

* Inlined Functions and Reified Generics

* Covariant Collections

* Tail Recursion
At this point I'd sell the extra Nintendo Switch and pay back its price to Nintendo. Seems like it's less trouble than going through Nintendo themselves.
Because facebook is a handy label for all forms of malicious capitalism. And the excesses of malicious capitalism are becoming sufficiently extreme that people are starting to notice. It's much easier to notice this in new technologies rather than old ones you're already comfortable with. So facebook gets the flak, which is deserved but lots of other people avoid it.

Take soft drinks which are terrible for peoples health. Your profit comes from:

1) Convincing people that buying your drink will make them popular & happy.
2) Convincing the government to keep corn subsidies.
3) Convincing everyone that calories in calories out and self control are the _real_ method to health. Our sugar water isn't at fault it's your personal weakness!

We're in a situation where powerful companies use their economic clout to buy off the government and convince the population of falsehoods so they can make more profit.

This isn't new but since we've gotten pretty optimised on at solving genuine human needs (companies vs entropy) is much harder to profit from than fooling suckers into bad choices (companies vs irrational monkey brains).

So now all our most profitable companies largely work to create little anti-competitive fiefdoms and to fool people into harming themselves. So of course people are going to point out that this is terrible and we should probably do something to regulate it's excess.
> things could get really awkward and confusing when you end up having partial memories.

All memories are partial.
Colonization has ruined quite a few people's days, as have poaching, and there have been literal zoos with humans as attractions. An alien species could also have motives that are entirely unrelatable, or even simply cause us harm due to carelessness or mistake. Besides, we don't need to conclusively enumerate each and every reason that someone might have for ruining our party to recognize that it's possible.
How can they possibly get anyone to do this job for $50 per hour?
Chances are, if you are using mocks in Go, you are doing it wrong. Functions should take interfaces (not interface{}, but interfaces that list methods) and return structs. In your tests, you create a fake that meets the interface and pass that to your function under test.

If you have to test file io or DB interaction, you can either do the adapter pattern or, as I prefer, just actually use the filesystem and DB but with some test infrastructure around it.
Iran Threatens American Bases
Tips for Creating Engaging Social Media Videos – Buzzlogix
Ask HN: Simultaneous development?
I vaguely remember reading that some products at Amazon and Google are developed by assigning several teams to independently create an MVP and then choosing one to move ahead with. Is this something that happens/is documented or just a fever dream?
Wow, that's a whole new way to play the 6-degrees-of-vladimir-putin game.. kudos to you, kremlin troll account
Ask HN: How to start a successful tech blog?
My friend has been planning to start a tech blog (Writing about trending tech/framework/tool/programming language). Do you have any tips that will help him build a successful blog? All comments are welcome. He is willing to learn if he needs to.
Bitconnect Market Cap Collapse: A Sign of Ponzi Scheme Falling Apart?
No, there was no appreciable user benefit, and that was intended. To respond to others: it wasn't a "premature" optimization, because it wasn't any kind of optimization. The sole benefit in this case was for me to learn Go programming -- and I noted that in the article title and intro. :-)
It can't know that the truck is going to kill the 5 passengers so it can't take aggressive preventative action, it has to do the conservative thing, which is to move as much out of the way of the truck as is possible without hitting an object.
I do not like how the Bill & Melinda Gates Foundation's funding of alternate education models has given undue weight to the views of just one person. I think it is undemocratic.

Quoting http://curmudgucation.blogspot.se/2017/10/gates-shifts-gears... concerning the Foundation's recent decision to spend an additional $1.7 Billion on education:

> So there's a slight shift of direction, but one thing stays the same-- the Gates conviction that he can serve as an unelected, unexperienced tsar of American education, reworking education to his will by sheer force of money. After seventeen years, he still hasn't noticed that he isn't helping.
Thanks everyone for your super insightful comments. I cannot believe so many creators of popular projects have replied with such so many details.

After reading it thoroughly I think the most common advice breaks down to make it super easy to install (this includes writing great documentation). Write blog posts about it (on medium is best i guess?) and create videos to demo it and always be eager to reply to questions on SO, etc.

Also majority of people think that if you've put in the effort to create the software you gotta put some effort in marketing too.. I was really on the fence for this, but thanks for the motivation!
Social media companies are cigarette companies. They should be taxed and frowned upon accordingly.

Remember way back when when cigarettes were cool? Well fast-forward 70 years and that’s social media now.
In that scenario, I think it would be you would need to make reasonable effort to collect the item, otherwise you abandon it. If the customer refuses you to collect it, then you can demand payment.

But as the above comment says, you would have had to send the item as part of an existing engagement, such as a purchase or replacement.
> Also, polyethylene is one of the simplest plastics and can be recycled quite effectively

Polyethylene can be recycled, but depending on the price of oil it's often cheaper to make new things than try to recycle them. Planet money did an episode a few years back that talked about this:

https://www.npr.org/sections/money/2015/03/27/395815221/epis...

"One day it's profitable to recycle a bottle. The next day, some number in the global economy changes and that bottle suddenly becomes trash."
Previous discussion:

https://news.ycombinator.com/item?id=15644299 (1 comment as of 20171109)
A soft drink maker's profit comes from making something its customers like and want to pay for. Busybodies notwithstanding.
To an extent it already has in the EU in which every country is required to impose a VAT compliant with EU rules, although they have some leeway on the rates and goods covered.

On the other hand, there are countries out there that do very well out of having tax codes that wouldn't work for big industrialized countries, or countries part of a big unified trading bloc. They have strong incentives to keep their tax codes the way they are.
Concurrent Servers: libuv
Nuclear's great but even if we could magik up a few dozen reactors tomorrow, our distribution infrastructure still sucks (in the USA at least).

Wind and solar seem to address both of these problems. Very likely faster, cheaper, safer availability and goes a long way to decentralizing distribution and easing the "long wires everywhere" problem.

Nuclear probably still has some very compelling use cases in niche areas but on the whole, its time as "the power of the future" seems past.
the concept was used to great effect in Halo 3.
This happens every single time with PostNord, the postal service in Sweden and Denmark. Every, single, time.
Think about this - since mid 2000-2010 we have 1 or 2 billions of smartphone users (and a few hundred millions of older phones with cameras). And those billions of people have been using them for over a decade. Now the question - where are the photos of anything extraterrestrial?

And no, secrecy doesn't apply here really. People manage to take pics of secret military hardware, of terrorist leaders, of practically anything anywhere.
Being gay would be especially challenging for that species.
Just to pick on one thing:

> promoting unrealistic body images

How does this work? Mere existence is an automatic promotion of your body?

Should Gregor Clegane not go to cons because it would make small guys feel bad?
Code bug freezes $150m of Ethereum crypto-cash
We all create our own version of reality, and this is just an intentional, multi person extension of that. That's what most "entourages" are anyway - basically rent a friends. I see nothing wrong with living in a more advanced fantasy land if you can afford it.
In the US too, and probably everywhere else as well.
C++ and Objective C are like walking around with loaded shotguns aimed at your feet. It’s not a question of if you’ll blow your toes off but when.

I’ve written my highest quality apps in Swift. They virtually never crash. And updating my code once a year has been manageable, if not trivial most times.
It's actually working out pretty well. I would say I get about 1-5 inbound weekly requests from companies like Facebook, Snapchat, AirBnB, Apple, etc. The best part is that recruiters have already done their research for the most part and my inbound is strictly about iOS development positions. I don't really get inbound for backend jobs, or anything else that I'm not interested in.

I would say that it did take me 5+ years to get to this point but anyone can do it with enough effort.
Very similar thing happened to me about 12 years ago.

I ordered some glassware, very fragile. It was packaged incorrectly, basically shoved in too big of a box with no padding or anything. Or if there was padding it was very, very minimal. It arrived broken, of course. It would have been nothing short of a miracle if glassware survived that packaging.

Told Amazon the item broken due to poor/incorrect packaging. They sent another packaged identically, broken.

Told Amazon, same thing, they sent another packaged identically, broken.

I tried one more time begging them to package it correctly and got another packaged identically, broken.

I just gave up and decided I didn't really need it, got a refund, and continued to drink out of dollar store plastic cups. There was absolutely no getting through to them what they problem was. I ended up feeling defeated with 4 sets of broken glasses.

Another "they don't read anything you write to them" story... Several years ago I sold a memory card via FBA. The buyer returned the card, they said they were returning it because of a defect, they said "card slows down significantly after it gets half full." Amazon's wearhouse receives the return, they mark it as sellable, and then sell it (as new) again!! Clearly its not new, the problem was evident only from using it! The new buyer didn't complain or ask for a refund, thankfully for me, but the card might have been commingled (I don't recall) so another seller might have been dinged if Amazon shipped out the used card to their buyer.

If the return reason is "defective," why would mark as sellable ever be possible?
Isn't it obvious that this scandal was either provoked or amplified in order to make Americans get themselves mandatory government IDs with chips and biometrics?

...not that that would be a bad thing. Just getting in line with EU and the rest of the world, finally. Mass monitoring would at least become a few order of magnitudes cheaper hopefully spending those funds on more socially useful things. Offer a chip-less option for more privacy paranoid people, so that at least they can't be tracked remotely when they don't carry their phones (yeah, some countries have this option system). And it's all nice and dandy.

As an European, I find it mind boggling when I see people without adequately secured and mandatory IDs in the US...
Read the book “Irresistable: The Rise of Addictive Technology” and I suspect you’ll have a different opinion. People get addicted to everything that exists and you’re essentially blaming the victim. The difference is also that Facebook designs its Newsfeed/Instagram like a slot-machine that encourages people to just keep hitting refresh. Maybe they’ll see something new or they’ll get a like...

Also, most people aren’t nearly as smart as the people on this thread. So you have fairly average folks getting hooked on tech that was designed to be that way by psychology majors and data scientists.

Also, Facebook could do a lot better in removing propaganda and obvious lies. They just don’t want to remove all the hundreds of millions of fake accounts they report as real to their ad buyers.
Managed to break your demo, open a modal from the right attached panel, make that modal a new window (button next to close button), close that new window, everything is stuck with the black alpha on top. Pressing Esc in that state, makes the main window disappear...
I think one more thing that needs to be understood is how can one dynamically establish identity. I have never built a cryptographic system, but I thought maybe the following could be better:

Lets say Alice is a person wanting to establish Bob's identity.
1. Bob must be the only person who retains control over his identity.
2. Bob can verify he is who he says by a distributed system and Alice gets only a Yes/No answer.
3. All verification can be done using a distributed fashion, something like bitcoin/blockchain.

The most important thing here would be an implementation of the distributed nodes and how bob's information is authenticated. But I think all these parts already exist. Political and Business will is needed.
"Self-driving bus rammed by other, human, driver" - news?
Lay on the horn for starters. That's what I've done in a similar situation and it worked. Also, just back up a bit (also done that). It's not hard for a person or a self-driving car to ascertain that you're gonna get hit if you stay where you are but that if you back up a little bit while honking you buy yourself more room.
Square Peg – #NoBill24