skysight-inc/HackerNews huggingface dataset:
Hm, thanks for your thoughts, ArkyBeagle—we're currently figuring out the whole values thing, so these perspectives are really helpful. “very hard to wrestle with” is hitting the nail on the head.

I do believe values can be purposeful to the journey of a company. To my mind, there are two kinds of values: the ones that build your current behavior, and the ones that build the behavior you want.

The first I think is the emergent culture that you describe. In another comment you mention that it's hard to introspect to find values, and I agree. But by watching your culture (how everyone behaves), it's not impossible. These observations have helped us as a company to identify things that we like about our culture, and what we would like to see changed over time. These values you have, regardless of whether you write them down or not, whether you communicate them or not.

On a side-note: For me as a flawed person these observations have been tremendously helpful. For example, I noticed how I myself inadvertently help create a culture I really don't want by apparently making a very serious impression when focused on a task. That wasn't a problem before as far as I know (well…), but is now. Knowing, I can change my behavior, and mid-term our culture. :)

The second sort of values, the ones you want, I think are the ones described by marcosdumay. These are the values you want to be the future foundation of your behavior. I've seen cultures changing, so I want to believe it's possible to change our culture towards a desired state.

The thing about writing those values down is that you then can start measuring yourself against them. And a goal state is essential for improving anything. “I cannot understand myself”, maybe, but without something to compare yourself against, a contrast, an ideal, I'm not making much of an effort, either. :)

Thank you for handling public feedback gracefully.
> I'm surprised so many people agree to be on call. It's basically you letting a company hire you for 24 hours while being paid 9-5.

Sounds like you need to renegotiate that. When I'm on call I don't get paid 9-5. There's a rather nice on-call bonus which pretty much means I get paid the full 24hrs. Might also depend on the country, some have laws around these kinds of things. For example, I can only be on-call for a 1 week stretch and have to be given a (paid) day off after. I can also not be on-call again for another couple of days.

> I was never on call but I have a friend who was. Like you mentioned, it plays a huge role in how you live your life. That lingering feeling of they can call you any second haunts you day in and day out.

If being on-call gives you this lingering feeling of doom then don't be on-call. If your systems are in that much of a fucked up state then you push back until that's sorted. Sometimes you need to let stuff burn. Being on-call does not have to equal being in a constant state of stress on the verge of panic attacks.

> Even going to the movies must be a terrible experience? You either feel guilty for turning your pager off, or you spend the movie just ruminating about how it will end early for you if you get called.

I don't go to the movies when I'm on-call. Turning your pager off at that point is irresponsible and not what I'm being paid for. In most companies you're only on-call for short periods at a time, it doesn't take over your life. You just go to the movies the day after, just like you'd plan any other activity and overlapping commitment.

> How do you even sleep at night knowing that someone might call you any second? Sounds worse than prison honestly.

By using Quiet Hours on your phone correctly and configuring the numbers that pages can come from to always go through. You get to bed and you sleep. The first few times you might sleep a bit less over it. Eventually you get the hang of it. A big part in this is knowing that you don't get paged for random crap but only ever when there's something truly wrong that can't wait until the next morning. Correctly behaving systems and not too trigger-happy alerting are crucial to this.
https://vuejs.org/v2/guide/comparison.html#Knockout
It's not fake news in the sense that the proposal was never made. She just didn't make it in her speech. So it was more a case of sloppy reporting by some newspapers. Here's what the Guardian says about it:

"The speech was followed by a background briefing by an aide who suggested firms could be required to publish lists of foreign workers. Rudd herself confirmed the next day that such lists were an option, but the idea was quickly dropped."
https://www.theguardian.com/politics/2017/jan/12/amber-rudd-...

And I should add that the idea was dropped only after an outcry by businesses.
Hi guys! I just wrote this article on Medium about my side project which earned 1500$ within its first months. I think it could be interesting for you.
I'm pretty sure that entry using a Green Card is an "Immigration Benefit".
> when people start giving them an operating place in the construction of governance, it can be a real problem

What do you mean by this? If you use them as guidelines for establishing processes and encouraging/discouraging behavior?
The fact that the proposal was made in written rather than spoken form is supposed to matter, how? She certainly did make the proposal, and defended it afterwards. Not "fake news" by any stretch of the imagination.
Kan it really?
Who's That Knocking at My Door? Understanding Surveillance in Thailand
As programmers, we often confuse the means with the ends. We tend to over-emphasise the way in which code is written and we tend to forget about whether the code is doing the right thing.

That being said, I love map/filter/flatMap. Look at them as higher level loops.

For example: A while loop is very general, you can implement any kind of loop with it. This makes it harder to understand the meaning of the loop. Therefore, when you want to iterate a constant number of times, you'll likely use a for loop. It expresses your intent better. Map, filter, and flatMap are just extending this principle to more specialised use cases. The advantage for a reader is that the one word "map" already tells them a lot about what the loop body is good for.
His previous slide decks, which seem to be structured a little differently (I've only looked for ~5 minutes) are available, so I expect this one will be too

http://www.cs.cmu.edu/~rsalakhu/

http://www.cs.cmu.edu/~rsalakhu/talks/talk_Montreal_part1_pd...
Resilient players, regardless of if they are cooperators or not would obviously add long-term stability; to me, this reads as adding stability creates stability.

Majority of players are do not express resilient behaviors, regardless of the impact on them; that is they are random, unable to create a consistent valid strategy, etc. - it is not that they are just greedy, since if that were the case, the system dynamics would be much more stable.
The least affordable places to live in 2017
> Forth code ends up deeply personal, and specific to the current task.

That's the point though. You create a domain specific language using Forth and solve your domain specific problems with it.
Obituary: http://www.sfgate.com/bayarea/article/Art-Rosenfeld-pioneer-...
This is amazing. Thank you so much for sharing this.
Thanks for a very detailed answer. I appreciate it.

You are totally right in that i don't have any real web/application development. In fact i just started university but i have been programming for a few years (mostly problems on sites like code chef in C, C++ no products) but recently got this idea when i visited a plant that my father owns. There are about 600 such plants in the same area and they use fairly old software or not at all. So i talked to him about my idea and he thinks it will be very useful and also commercially successful since there is virtually no competition. That's why i decided to learn web development. But now i am realising it's tougher than it looks. I asked this question in order to get an idea what all the things i need to learn in order to even attempt to build something like this. Now that i look at my question i think i should have asked "How to be a full stack web developer?". So if anyone is still reading i think this would be the question that you should answer or maybe i should have just googled it and started working
+1 indeed, the unnecessary use of javascript everywhere is making the Internet unusable to people with slow connections and computers (possibly 1 billion worldwide) and security conscious users (e.g. Tor browser users)
SPAKE2, a PAKE
Section 3(c) of the EO says

> I hereby suspend entry into the United States, as immigrants and nonimmigrants, of such persons for 90 days from the date of this order (excluding those foreign nationals traveling on diplomatic visas, North Atlantic Treaty Organization visas, C-2 visas for travel to the United Nations, and G-1, G-2, G-3, and G-4 visas).

Therefore, it excludes everyone from those countries apart from the mentioned exceptions. The exception list does not include a GC holder.

https://www.nytimes.com/2017/01/27/us/politics/refugee-musli...
There are a lot of things common to both scenarios, and a lot of things different. People understand that what makes the difference to you is whether someone has the legal right to use something, but it's just been explained to you that the spread of information is what is important to some other people (because you asked.) Your ethics don't define ethics and are not fundamental.

People break the GPL in order to steal from the public. People break copyright in order to steal for the public.
SoundCloud is full of fake accounts. I get a couple of new followers every now and then and it feels like 95% of them have mentions of "buy followers". I always report spam bots whenever I spot them on SoundCloud, Tinder, Facebook and Reddit, so though I only have very few followers on SC I think all of them are real people at least. It is very important to always report spam bots and other types of disruptive fake accounts and I wish that everyone did. If everyone did then it would be less profitable to run such accounts and then there would be fewer of them and we would be bothered much less frequently.
If there are multiple releases/branches then I also recommend to very carefully review merges between branches, even files/regions where git (or whatever SCM is used) merged automatically with no conflicts. I've personally seen multiple incidents now were through review bugs and security issues where found in merges that ranged from subtle to catastrophic. I even saw one catastrophic security issue introduced into a file git merged with no conflicts.

(However, more issues are typically introduced by manual conflict resolution, since we humans are also easily confused when doing it. Both are a problem relatively independent of language, although some specific instances might be caught by a compiler or tests. If the latter don't catch it, it may be a sign that some tests are missing.)

Be careful.
It's not "tricky", it's by design.
The Making of a CEO: Firewalls
They've been moving away from that though, try changing your user agent or disabling JavaScript.
Monero – a cryptocurrency that focuses on privacy, decentralization, scalability
In case anyone wants a primer on the prisoner's dilemma:

Suppose both you and a partner get arrested whilst trying to rob a bank. Without a confession from one of you, the police can only convict you of a minor offense (say trespassing).

The police place you in different cells, and offer you both the following bargain. If you confess to the robbery, and your partner does not, you get a complete pardon, and your partner gets a full sentence (say 120 months in jail). If you both confess, you get a slightly reduced 100 months in jail. Finally, if you both remain silent then each gets a 3 month sentence for trespassing.

You both now have this tension between individual and collectively optimal action. Your personal sentence is smaller (independent of what your partner does) after confessing, but you both benefit from coordinating to not confess. You can draw the payoffs in a matrix (left is row player and right is column player) to visualise this.

c c'
c 100,100 0,120
c' 120, 0 3,3

This tension applies to lots of other interactions (e.g. firms colluding to restrict output, communities collaborating to maintain public goods, neighbours not pissing each other off by throwing massive parties).

Even if there is a repeated interaction for a finite amount of time, you can expect rational self-interested agents to be unable to collaborate in the final period. This means they have no way of punishing in the penultimate round, and so by induction you would expect 'unravelling' to non-cooperation right from the beginning.

This paper found that a subset of the population appearing not to be self-interested was sufficient to prevent this complete unravelling. Even a selfish player may wish to collaborate in early interactions if there is a high enough chance that they won't be immediately punished.

https://en.wikipedia.org/wiki/Prisoner's_dilemma
Today in: Broadly missing a point.

It's good and nice that there is one linter for a particular language that catches 100 % of these issues in an example, but that doesn't do much to change the fact that most linters for most languages are unable to do this, and that there are quite some instances of these decisions where it is doubtful that any linter would be able to lint it.
I'd wager that resilient defectors would not create long-term stable cooperation. They might create stable defection, so in that way adding stability would create stability. But only one of those stable outcomes is actually desirable.
looks at TV selling me various pocket knives

reads a bunch of people who think they know what they're talking about

Is there a place in between for those who don't care about armchair intellectuals?

I just want to know. Because a whole lot of basically retards made HN their new home so I'm curious. I'm the only person who noticed, I'm sure.
Take the need to survive away from a species who was built to survive and find out what happens.
>On the third hand...

Sounds these biases on exoplanets hit a little too close to home.
It's not needed, thankfully:

https://github.com/sergiotapia/magnetissimo/issues/30
Google will be fine. This is a humanitarian crisis, not (yet) an economic one.
After a century failing to crack an ancient script, linguists turn to machines
"time crystals"

Am I the only one who thinks science is starting to sound more and more like magic?
> (1) Immigration is "uncontrolled" in the U.S.

If you are taking uncontrolled in it's most literal definition then you won't find a source, otherwise all you need to do is look at situation in the US with sanctuary cities. https://en.wikipedia.org/wiki/Sanctuary_city

As an Australian, I find the whole concept a bit baffling. That a city just decides "If you make it to this city, we will protect you from immigration laws". I don't see how you could describe an immigration system as "under control" if all the rules can be thrown out the window if you get to a "safe zone".

I know this shooting has been referenced alot in the US and i think it's a good example of this, how can immigration be considered under control when a man can be deported 5 times and still get back in https://en.wikipedia.org/wiki/Shooting_of_Kathryn_Steinle

> (2) Wages are artificially suppressed.

Well again, like all things in politics definitions are not always a constant. Artificial in this case could describe a host of valid definitions from Any government action on a free economy to overly burdensome regulations and mandates that force a market obviously in one direction. I'm sure some people would argue that taxation itself is wage suppression.

So for this case, I would say when you take the fact the US's labor particpation rate still hasn't recovered to pre-GFC levels http://www.politifact.com/virginia/statements/2016/jun/13/da..., the laxing of immigration laws combined with stagnating wages http://www.epi.org/publication/charting-wage-stagnation/.

I think you can definitely make an argument that wages have been suppressed by these policies.
Ref: http://www.politico.com/tipsheets/morning-transportation/201...
It's open source, and you can build it yourself if you're worried about the app store being compromised.
This project is using Phoenix. Nodejs is an optional dependency to compile static assets like CSS etc. It's not actually required to write applications using Phoenix.
Nuclear power didn't even pay for itself back in the 1950s when e.g. the Paducah gaseous diffusion plant with its horrendous safety and environmental record was in its heyday. Valves and pipes constantly ruptured, workers were routinely exposed to precipitating clouds of uranium hexaflouride (the burns are worse than the radiation), and most workers were never issued radiation badges. Somehow the safety manuals from the Manhattan Project a decade before were misplaced on the way to Paducah? Maybe the nuclear physicists in Alamogordo were just better-informed than hillbillies in western Kentucky?

Incidentally the Paducah plant's mammoth power requirements were supplied by TVA coal.

Paducah and other sites like it eventually prompted Congress to pass the Energy Employees Occupational Illness Compensation Program Act. Externalities!
Yeah issuing/renewing a GC constitutes an "Immigration Benefit" but denying the entry of a GC holder should not be covered by this EO.

DISCLAIMER: Not a lawyer or even paralegal. Take this opinion of mine with a grain of salt.
... and from super-hero comic-books at that.
Which ridesharing niche are you targeting? Taxi, limousine, carpooling?
I think you got downvoted because "no humor please, this is HN"
This. I wish the mobile OSes provided a setting allowing me to coalesce interruptions around predefined points in time, regular (e.g. every 2 hours) or pre-defined (e.g. 11:00AM, 3:00PM, 18:00PM). This should be an OS-level setting for the user, not an API feature for app developers to support.
The whole album by Yello is fantastic. Not a bad track and has guest vocals by Shirley Bassey of Goldfinger fame.
My guess is there's a relationship between the duration to reach stability and how soon after the "fake" players are removed.
No, it isn't normal or some continuation of normal to ban people WITH GREEN CARDS from getting on planes to the US based on their being muslim. Jesus Christ.
A strategy that could beat tit-for-tat consistently was discovered* but tit-for-tat is still fascinating because it is incredibly simple and is almost the optimal strategy.

( * I think it's this: https://sciencehouse.wordpress.com/2012/09/04/a-new-strategy... )
First of all, the use of isPresent is a red flag that optionals aren't used right.

You'd typically use a sequence of map, flatMap and orElse calls. For example, this is some controller code I'm currently shipping:

return Drawing.getForLocation(id)
.map(d -> ok(Json.toJson(d)))
.orElse(notFound("No drawing for location " + id));

That construct is more readable to me than an if(drawing != null) check. The cognitive load issue is a bit of a red herring. I'm used to optionals now and they're no more of a cognitive load than an if construct. But that's eye of the beholder stuff, so let's park the cognitive load issue for now.

Getting down to the meat of your argument, why is optional better than an if not null check or an exception?

I think anyone can see why it's better than throwing an exception. Optional makes it obvious to the caller that (a) there can be no response, and (b) what happens exactly when there's no response. With exceptions, either they're unchecked, in which case you don't know what exception to catch without peeking, and it's really easy to forget to add a try/catch handler at all; or it's checked, but even in that case the handling code is uglier than an equivalent optional construct.

The more interesting question is why it is better than deliberately returning null. Again, it's about signaling. A library author can signal to the caller that they should expect not to get a value sometimes. Yes, it's possible to return null from a method that returns an optional, and this will cause an NPE, but in that case the error is the library's, not the callers. In making API's, you want to encourage correct use, and optionals help do that.

Optionals in java suffer from the same problem as most API's in java do though. They're uglier than they need to be, and some common use patterns are awkward. For example, in my spark code in scala I'll use constructs like this one to convert a stream between types where the conversion might fail for some elements (and I don't care about the ones where it does):

val someIntermediate = someStream.flatMap(convertMaybe)

That works because Option can be handed to flatMap directly.

But in Java streams, you can't do that, and you end up with constructs like this:

someStream.map(convertMaybe).flatMap(o -> o.isPresent() ? Stream.of(o.get()) : Stream.empty())

Which is insane. In Java 9 they're kind of sort of fixing this and it's going to be

someStream.map(convertMaybe).flatMap(Optional::stream)

Which is still ugly though.

Any way, I think optional has its uses in Java. It's definitely something that helps when building out robust API's. But where optionals would be most valuable, the combination with streams and futures, is where they're painful to work with. That's par for the course in Java though. Oracle's not actually all that good at designing API's. Usually the first attempt at something turns out so broken it has to be replaced wholesale later (like java.util.Date), or it's so ugly it feels bad to use it (CompletionStage? seriously?). But, to each their own, I'm sure my attempt at it would be even worse, and despite the warts I still like Java 8 overall.
misreporting "we could do this" as "we promise we will do this" counts as fake news in my book

headline: "Amber Rudd vows to ... force companies to reveal number of foreigners they employ"

simply not true, so it's fake news
I believe the parent was referring to [1], which blocked dual nationals of the aforementioned countries from using the visa waiver program if they were eligible under a different nationality (e.g. a dual UK-Iranian national could not enter using the VWP on their UK passport). However it was an act of congress, not an executive order, though it was supported and signed by the former president.

[1]: https://www.theguardian.com/us-news/2016/jan/15/iranian-amer...
Nope, this is what people said who were on such teams before.

http://gizmodo.com/former-facebook-workers-we-routinely-supp...
In afriKa?

You Kan't be serious!
Top 25 MCQ Questions on File Management in OS – InfoTechSite
The ability to reenter the US without a Visa or entry permit is a benefit of the Green Card. Those benefits have been suspended.
It is very interesting am teaching story
Hmm, well, part of the "origin of a fortune".

Dieter Meier of Yello was already very rich (son of a big-time Swedish (edit: Swiss) banker).
> most linters for most languages are unable to do this,

In the long run improving the linter is better for everyone. The examples given by the OP as infeasible are feasible.

Focus on the design over trivial style issues. Your style guide should be 95% covered by the linter. If it isn't, fix your linter.

> Broadly missing a point

My points is: Underestimating static analysis will lead you to the wrong conclusions.
Maybe stick around here but don't click on things that don't interest you?

I think the Prisoner's Dilemma is one of the most interesting abstract ideas I've come across and it feeds into my thoughts about morality and human society. My interest in it is because I think it matters

I fully admit that I probably "don't know what I'm talking about" but it's not for want of trying. My interest is sincere. Is your cynicism?
Disturbing, scary and predictable given his campaign rhetoric.