skysight-inc/HackerNews huggingface dataset:
You're correct that ultimately, at the end of the day, the shareholders are the owners of the business, and should have ultimate control over how their resources are allocated or spent. That doesn't mean that the shareholders interests are necessarily for profit above all else. If your shareholders were perfectly happy with being ecologically conscious and providing an above-average place of business for employees irrespective of profit, wouldn't demanding focus on profit above all else be working against the shareholder's interests?

I think this is especially true in the case of Etsy, which as the article points out, is registered as a B corporation and so arguably has agreement from the shareholders that benefiting society is part of the mandate of the company.
Of course it can be argued, but that doesn't make it correct.
This is already in the language. It is just an interface which makes the common lists only visible as immutable objects. But inside they are a normal list. And in this case the object is read-only, not immutable, as we were discussing in the other comment thread.
Not actually? It's trading at $12.97 at the time of this writing. Its IPO price was $16.
A friend of my wife's worked at the USPTO for a few years as a mechanical engineer reviewing patent applications. He said they would regularly get applications for time travel machines and perpetual motion machines and they would have to spend a bunch of time writing up why it was rejected. It was a right of passage usually reserved for the new guy ;)
Awesome–it's fast and I like the autocomplete and the auto-npm package download.

I might be hooking graphql/apollo up to some strange data sources like CSVs to help import my data in the right shape, so this and the examples are going to be very handy. Thanks for making this!
The end of Canada’s housing boom?
Case insensitive passwords is entirely a business decision. Banking websites in particular have huge numbers of non tech savvy customers. When they forget their password or type it in incorrectly, they don't go to the password reset form, they call into customer support. This costs an enormous amount of money.

Banks figured the cost of reimbursing people if their account is compromised is lower than the cost of having to field all of those phone calls.

Source: Used to work at a bank.
Ask HN: Know any keyboard oriented drawing tools?
Dear HN,

Do you know of any 2d drawing tools that are keyboard oriented, i.e. modal like vim?

I'm looking for something to draw software diagrams in: component, class and some use case diagrams, but I'm getting more and more frustrated by the current solutions (used Enterprise Architect)

I guess that's the problem with using vim: You want the same efficiency in other programs...
I think Terraform does solve some problems, for some teams. For us it's really the process it provides - by moving VPS infrastructure definition to code, rather than management UIs, we can apply our existing code review processes we have to our hardware infrastructure before promoting through staging environments, not just the product code. This is vastly preferable to letting individual engineers run wild at the AWS management console, and allows for rollback of breaking changes much more easily etc. This arguably the real value in Terraform, which i think earlier posts about using it to somehow become cloud neutral missed.
This is my litmus test to determine whether a modern language is not terrible. Why wouldn't you want to eliminate an entire class of errors?

Unfortunately, my day to day language at work is Go.
Does Kotlin have algebraic types? Possibly via sealed traits or the like, similar to Scala?
Beautiful Girls (SEXY GIF)
Try to find it. This is probably my favorite episode and one of the best fictional explorations of the problems involved with teleportation.
I just finished going through this book: https://www.amazon.com/C-Concurrency-Action-Practical-Multit...

Talks in-depth about the thread library and also other C++11 features that made it possible. Highly recommended.
Note that this is not the same as "using namespace std;" since you are only exporting the namespace std::string.

This should almost always be ok since no sane programmer should ever name their class string in the namespace of std.

As a developer, I wouldn't feel too bad about causing namespace conflicts in this manner because hopefully it will suggest to the maintainer that their class name is a poor choice.
The invisible hand can not fix this. Its currently busy repairing a chinese ventilator i bought to fight the heat. Ran for five minutes, then the hand got stuck in it, loosing several fingertips and burning itself on the e-motor.

Its a horrible sight, invisible blood, invisible bone pieces everywhere, and this small thing in the cage i wont let out until it gets that damned thing fixed.

Seems the market radialinzkis are desperately trying to create good points for the socialism of tomorrow.
> the biggest four airlines in USA got over 80% market share. In Europe they just have 48%.

But...the US is one country and Europe is...more than one? I get that airlines tend to be international, but in general it seems like we'd expect to see more companies in any given industry across all of Europe, than we'd expect in the same industry in the US. It's double the population, apart from all the borders involved.
In case of monopolists, you get the rule of monopolists. Do you prefer that? That's part of what Net Neutrality is supposed to protect from.
Easier syntax??!!
If you want to do case-insensitive for all languages you can do this:

1. first install the following (be sure to replace [your schema]:

CREATE EXTENSION pg_trgm with schema extension;

CREATE EXTENSION unaccent with schema extension;

CREATE OR REPLACE FUNCTION insensitive_query(text) RETURNS text AS $func$
SELECT lower([your schema].unaccent('[your schema].unaccent', $1))
$func$ LANGUAGE sql IMMUTABLE;

2. then in your query you can use:

where insensitive_query(my_table.name) LIKE insensitive_query('Bob')
I don't find it to be confusing but you'd get more autocomplete help if let was used for constants.

l => let

v => var
Yeah, that would be great in the Ayn Rand's fantasy land. Unfortunately, back here in reality there is no ISP market. Consumers have little to no choice, and vertically integrated mega-corps have a stranglehold on everything. We all rely on our representative government to stand up to a titan like Comcast.
You're certainly right (e.g. that's how Facebook can remember so many different variations of you password without storing the actual password itself), but if their engineers are capping the password field at 8 chars, I HIGHLY DOUBT that is what's going on.
This is simply "parentheses in a call can be omitted entirely if the lambda is the only argument to that call." This one feature allows for type safe DSL's which eases GUI construction on Android and other domains. https://github.com/Kotlin/anko/wiki/Anko-Layouts

Its also used for chaining stream code which takes in functions. You get used to this feature very quickly.
Ask HN: Will boring work burn me out?
I'm a software engineer working in a field that doesn't interest me, and I feel like it tears upon my passion for software engineering altogether. Do you have any idea how to tackle this?
None of that is really a red flag for me. The biggest red flag is when I make an account and they send me my username and password in plaintext in the confirmation email. Makes me cringe every time.
I'm sorry to hear about your going through troubles, but you're absolutely right about a good game of chess requiring such a high level of focus that it removes all distractions out out necessity to play well.
non-nullable*, Swift calls them optional types I believe. They use the same syntax for it, if you want your type to include "bottom" you add a ?

In Kotlin/Swift by default all types do not include "bottom" or "null". You add a ? to the type to indicate you may use that value, then the compiler will validate you're checking for the existence of null before you use the type.

It's one approach... I prefer the Haskell approach with a simple Maybe/Option type.
Building Big for Less
In my experience as someone whose been writing scala for a couple of years (which also uses val/var), it has 100% never been confusing or a problem.
NewSQL CockroachDB Ready for Prime Time
> It's filled with junk

Not just Etsy, go pick any online marketplace right now, they all are filled with cheap Chinese junk.
>Nobody cares that you put in extra hours.

This is all in the presentation. The point of putting in extra hours is not to get more work done, but to appear at least as busy as (but preferably busier than) your peers.

Most people can't tell if your work is good or not. They can only tell if it looks like you're working hard, and if they like you/find you personable. For most people, "butt in chair time" becomes the biggest factor in their perception of how hard you're working.

Since you're providing good advice about appearance, politics, and popularity, I'm sure you've registered this. We should just clarify for the people who are "4 years in" that "don't overwork" means "don't actually overwork", but do take care to ensure everyone in your office thinks you're a hard worker.
Visual Studio Magazine - Reader's Choice.
They have corresponding badges on the website's main page: https://js.devexpress.com/
>it doesn't require yet another device that can be forgotten or lost

iPhones can be lost too.

>it's far easier to set up

Yubikey can do U2F and OTP out of the package with no setup required.

While it can be easier (I wrote a nice shell script for myself), I don't consider setting up a Yubikey for SSH hard for the type of person who uses SSH,

https://developers.yubico.com/PIV/Guides/

It's literally copy/pasting a few lines out of Yubico's docs into a shell.

>it's free

So is the Yubikey software.

>They plan to add paper backups and syncing via QR, IIRC.

I would consider that a fatal flaw. Once the private key is on the device, it should not be easy to recover it from the device.
I thought this looked familiar:
https://www.reddit.com/r/shittykickstarters/comments/5x178p/...
Solid advice.

I'd add one more - if you ever get a good client (freelancing, even when you are full time) keep them happy. A client who doesn't come up with billion changes, pays on time, doesn't micro manage etc is really worth working with, even if the work itself might not be super interesting.
Oh I get both sides of the debate. I also understand why we put regulations in place. Don't get me wrong, our government has fumbled the ball on a few occasions but generally regulations are only put in place once an industry habitually breaks the trust of our citizens.
Very nice and detailed.
I love Bach and am also not understanding what this is doing here.
How did you come to that conclusion?

Because it sounds like a strawman or throwing the baby out with the bathwater, depending on how you mean it.
This is why we've probably passed "peak school". For many new graduates, ROI for college is negative. About half of new college graduates end up working in a job that doesn't require a college education.

(It's even worse in some third world countries on the way down. In Egypt, unemployment of college graduates is higher than for non-college graduates.)
Whose Parents Pay for College?
"Brand" is the key thing here. There's obviously an upper level where increased pay / perks becomes excessive, but for the type of customers / sellers that Etsy wants to attract the line is FAR above "as little as possible to make employees not leave". Etsy has to, more than most other companies, maintain an image of not being a soulless corporation as much as humanly possible.
Index funds actually still have a manager, whose only job is to rebalance periodically and accurately.
A wide array of quality of life changes to Java.

> The fact that things are shorter to declare doesn't make it better.

This is debatable. In fact, shorter code could (but not always, of course) mean less room for error and more room to hold higher abstractions. Boilerplate is a less efficient use of cognitive energy.
I like kotlin a lot, but suddenly there are a lot of articles in the front page about it. Kotlin isn't more cool because Google announced yesterday it is going to use it in Android. Kotlin is the same good language it was 2 days ago! (rant over)

If you want to learn kotlin go to the official docs and tutorial, they are as good as the language:

http://kotlinlang.org/docs/reference/

And you don't need to install anything as you can try it in the browser:

https://try.kotlinlang.org
That only works if you are only dealing with English. I've posted a comment with a solution that works across all languages.
Its A) codified into a business contract, not the actions of a private individual B) the use of private metadata and C) the stipulation that BBC is the enforcement mechanism that is problematic here.

Otherwise the BBC would quickly find that when they are late paying the contractors who work on their website their credit cards mysteriously get charged for the services rendered.
Friedman also introduced one of the least scientific ideas into economics.[1] Sciencism at it's best.

[1] https://unlearningeconomics.wordpress.com/2013/02/08/against...
If you are a shareholder and want to spend some of your profits on ecologically conscious activities, no one can stop you. But that doesn't mean you should force the other shareholders to do the same.

And Etsy isn't a B corporation. It's CEO tried to make it one and failed.
Not to mention the loss of content restrictions - such as nudity or profanity on primetime TV.
Yep, but worth reminding you at this point that in this case you are the commodity, the companies are the consumers and the Internet is the market. Free market will make more sense if you think about it that way.
copeland??
the market only exists when there are multiple providers for services or goods. I have only one choice of ISP where I live, so basically i have to pay whatever they want for internet service, have no internet, or move.

This is also the case for many Americans, and with our FCC director also being pro-merger, it could also get a lot worse (your two options merge into one option). The ISPs have lobbied and colluded with each other to the point of making their regional monopolies legal in order to have no competition. This is why we need government oversight of this industry, as they've done a damn good job making sure you don't have the option to switch providers if you don't like them.
The $15,000 Dell being discussed is equivalent to a m4.16xlarge with 64 threads and 256 gigs of RAM. The m4.large you're referencing at $45/mo only has 2 CPUs and 8 gigs of RAM.
> >They don't have any loyalty to you.
> Companies preach "family" and "loyalty". DO NOT BUY INTO THIS MENTALITY. They're not going to hesitate to fire you if it means they can maintain their bottom line.

Indeed. It's great to love your work and even your job, but never forget that this love is 100% unrequited.
This is coming. It's more likely to get to the medical help first, though.

A 100 lb nurse needs a bit of assist to move a 300 lb patient out of bed.
Marten for .net
I keep seeing this advice and don't understand it. Do most people not touch type? What am I supposed to do about right ctrl?
Kritarchy — rule by judges: https://en.m.wikipedia.org/wiki/Kritarchy
I'm somewhat guilty of pushing the don't copy'n paste passwords (not the actual input limitation) and the reason why is because several of our guys at work have actually accidentally pasted passwords into Slack/Skype windows.

For what its worth I did write a small utility to make it easy to create memorable passwords using a master password:

https://github.com/agentgt/ezpwdgen

It uses the Emoji word database to help you remember passwords.
Been watching Kotlin for a long time. Usually it pops out when I talk about how great Scala is, and I get Kotlin as "what Scala should have been". I have been avoiding using it at work instead of Java/Scala just because Scala had more "buy in" and it was easier to convince people to try it. Now with the new Google/Android (and HN) love, this is the perfect time to give it another try.
This is why I claim a hybrid model is the way to go. Your baseline/mean load should be on redundant dedicated hardware with spill-over into a cloud provider.
If they have 1MW VLF antenna that can take down planes, I can imagine it can also protect from cosmic rays.

http://www.smh.com.au/news/travel/naval-base-link-to-qantas-...
https://en.wikipedia.org/wiki/Confusopoly
How Vox Media Uses Static Site Generators
What's gone is corporate fear of labor. Of unions. Of strikes. Of your company being nationalized, as in the UK in the 1950s. Of communism winning economically, something business people worried about from 1930 to 1970. At last, oppression of workers is back!

For about forty years, capitalism had ideological competition. There was a competitor, and capitalism had to deliver a better standard of living to compete. With the competition defeated, capitalism has a monopoly, and acts like a monopolist.

"If you want a vision of the future, imagine a boot stamping on a human face--forever." - Orwell
I did, and it was interesting to see that its author coined such a term 'white fragility'- it is almost as if they were deliberately working to provoke reactions that would reinforce the fundamental thesis of the paper.

There are a lot of assumptions in this paper, and it makes statements based on those assumptions as if they are simply obviously true. It's not terribly well put-together or convincing if you don't initially agree with the statement the author is making, and it feels like it was written solely for the consumption of people who already possess the proper mindset and beliefs.

For example, they take the sourced statement that 'good neighborhood' is coded language for 'white' and then apply that to all things. (Also, I looked into the source for that and it's much more complicated than this paper makes it appear, and does not in fact only mean 'white.')

>The quality of white space being in large part measured via the absence of people of color (and Blacks in particular) is a profound message indeed, one that is deeply internalized and reinforced daily through normalized discourses about good schools and neighborhoods.

I don't agree that this is a daily or normalized discourse. Do you often find yourself talking in veiled terms about how good the schools are in your area?

I also noticed that it was extremely class-biased, effectively linking wealth and race so that they appear to work hand in hand and yet also displaying fundamental misconceptions about what 'normal' is, at least in the US. For example, the author seemed to assume that all white men go to college, when in reality it's closer to 30%.
I see what you're saying with the toll-free analogy but it seems fairly common for ISPs to throttle speeds after a monthly cap has been reached. Since the throttling wouldn't apply to zero-rated services(ie their own) isn't the end effect an unfair degradation in competitors services?
Kotlin has sealed classes. It also has built in generic Pair and Triple containers. But no it doesn't really have algebraic types as you see in Haskell. For example, you can't build a linked list by `cons`ing Ints and Strings and then take the dot product with another Int-String list. It still relies on generics in that regard although it does make improvements with reified types (generics that are retained at runtime for use in type checking `is`--kotlin `instanceof`) and variance indicators.
I'm a dev now, of course! I'd rather not link this account to my really young usernames, out of embarrassment...

Thank you so much for the work you and the Scratch Team did! The Scratch online community was a big part of my childhood and opened so many doors in my life by keeping me engaged and leading me to the world of software. Y'all really made the world a better place with the project.
- Many things that seem new and innovative today (virtualization, containers are two examples) were actually invented in the 1970s. Learn some history.

- Don't get caught up in hype. Technologies go in and out of favor. Not long ago the idea of writing a application in JavaScript would have been laughed out of the room. Today the idea of building applications in Perl seems antiquated. The truth is it doesn't make a lot of difference which language you use, and no matter what you pick it will probably be less popular in 5-10 years if not virtually abandoned.
Here is the dirty little secret: most business run fine without high availibility. Your customer will not leave if your service is crashing for a few hours during the year if you are small.
Citing Breitbart? Really?

Okay, fine. Let's pretend this is a credible argument.

"Companies won't prioritize traffic" - they do, and they have. Cell carriers routinely do, counting traffic to ~their~ paid services as not counting against their data cap.

"Or else consumers will just change providers" - there is very little choice in ISP in most of the country, and almost entirely owned by large, established players. 'Duopoly' it's called. And due to the costs, it makes it hard for a scrappy third party to come in. Also, Pai is pushing for "competitive" to literally mean "at least one other high speed provider providers service within half a mile of a residence". Meaning he'd say there was no monopoly even if you literally had choice of only one ISP. So trying to act like competition will save people, when he's actively trying to fight against competition being required, and the market is too expensive for a non-incumbent to enter, is really disingenous.

"Some companies take up more bandwidth". Actually, no. The -consumers- do. Netflix isn't using that bandwidth; consumers are. They're demanding to use the connection and bandwidth -that they paid for-, on whatever service they want to use it on. To correct Shapiro's analogy, this is like charging the person taking delivery of a truck a fee for a certain number of trucks, then turning around and charging the companies operating those trucks differing amounts -because you feel like it-.

Yes, the network can be 'reasonably managed'. If you want to clarify that, that's fine, and an -entirely different argument-.

"Create barriers to entry" - actually, the reverse is true. Again, see what has already happened with mobile carriers, and their prioritizing their own services (or services willing to pay them money) over others. This is obvious. Heck, the article even negates their own example (which is just...-one- example) by showing that Google has taken both sides of the issue.

"Technological stagnation" - whoa whoa whoa. This says the landscape isn't competitive; didn't this guy just say back in the first paragraph that consumers will just change ISPs, implying the landscape -is- competitive?! Otherwise this is a completely different issue; stagnation was there even before net neutrality. 2015, we were way behind everyone. You can't claim net neutrality is even related.

"Internet taxes could happen" - "could". Or Pai could just say "Hey, we totally support net neutrality, and we're not collecting fees". He's totally able to do that. Same as Wheeler was doing. We're done here.

"Content restrictions from the government" - I believe there's a couple of amendments here, that would lead to a legal showdown. And regardless there's nothing preventing, say, Congress, from passing legislation to mandate this anyway. Again, red herring.
America’s Nuclear Nightmare
Yeah, that makes sense.

Once after my account was stolen from, I did a careful look at the website and sent in a list of questions and complaints about their practices. After enough bugging, a person eventually called me. The bottom line was essentially that I shouldn't be concerned because I'm not responsible for fraudulent withdrawals. It wasn't very satisfying.

The thieves got away with around $2400.
I've been looking into it. Wanted to wait until I held my current job for a year so that I could get a better interest rate.