skysight-inc/HackerNews huggingface dataset:
Thanks for the quick and detailed response!

I use Devise most of my Rails apps, so in my ApplicationController I have `before_action :authenticate_user!`.

Did any of your frontend Angular apps send/request data to a Rails controller? If so, did you have to configure your Angular requests to send the session cookie so it would pass the Devise auth? This is the part that I don't quite understand yet.

In my next side-project I want to continue using Rails for the backend and scaffolding for most pages but I have a small React app that I want to include as well (keeping track of stats for a basketball game). But I'm not really sure what's the best way to go about authorizing whether or not the user has the permissions to upload data to a specific profile. I've only ever used Rails/Devise and all user input occurs through a form.

If you could point me in the direction of what I should be Googling for I'd appreciate it. Best of luck with Opendoor!
This is probably two categories "attractive people" and "men" being conflated, "attractive men" are who you meet on Grindr and not at a VC pitch.
>"he just said, No, you're wrong, you don't know what you are talking about."

Ouch. That is truly awful. I'm sorry that happened to you. The irony, their site claims:

"The existing hiring process is broken. We’re building a new kind of interview that evaluates tech skills, not credentials."

If that's their mission there's really no excuse for this. I will be sure to avoid them. Thanks for sharing.
What did you you use to make the flowcharts?
It's funny you say that, because as someone more experienced in JS, I found myself saying "oh look, C# is coming up to par with ES6!" e.g. Tuple types and destructuring, which are a part of ES6.
To be fair, Python isn’t terrible, but throughout its lifetime, it made some incredibly poor design decisions

Substitute {{x}} for Python and you have a template for a Hitchhiker's Guide entry for just about every programming language, ever.
Always be improving, never removing.
Why didn't Python do this:

x = if condition a else b

?
If the company allows it, they will facilitate transfer of stock from employees directly to investors as part of a funding round.
Generally speaking when you are targeting that wide of a range of devices you are targeting a wide range of compilers. It requires some discipline but it's far from the hardest thing in the world assuming you are regularly building and testing for all platforms. I'd say that most major C++ applications or libraries compile in Clang, GCC and MSVC without issue and often build for less common targets as well (icc, nvcc for cuda support, etc.) Things definitely get harder when you move to weirder embedded platforms.
Αρχή με ντέρμπι Γιουβέντους – Μίλαν
Oops sorry - I meant that tongue-in-cheek as realised I was getting too defensive.
They are both disgusting.
I'm not sure why the author calls the two branches of in if/else the consequence and the final_consequence. That naming suggests that you do both of them, with the latter coming after the first, which is of course not how an if/else works.

I'm sure that nearly everyone reading the article knows how an if/else works, so that naming won't actually lead them astray, but it just feels ugly.
i expect companies that remain private while dangling equities for it's employees to create an opportunity for them to sell privately - e.g., a liquidation event, where the buyer is an investment/VC firm that wants in. It's good for both parties - employees get a liquidation event, the VC gets foot in the door, and founders aren't diluted.

I guess, though, in this case, the employee is the party without power, as they are offered a price (which is probably lowballed, since they don't have a choice) in a take it or leave it fashion...
Holy cringe... this is exactly the reason I tend to avoid Facebook in favor of the Instagram and such.
Ask potential customers to pay for it and they will often give feedback.
Sorry to hear that. Did those renters also have good reviews?

If so, that might indicate that you can buy fake reviews on ABnB now.
I agree that it reads naturally, but when dealing with those kinds of sentences, they always need to be put into conditional form (A->B). Even when reading text the order of those words matters. Consider:

"I'm going to die ... (gasp) ... if you don't grab me some Subway. I'm starving"

The sentence is funny because the apodosis is misleading. Even thought that might be a valid narrative approach when writing a comedy, I don't think it's an appropriate coding one.
CULT – The CPU Ultimate Latency Test
HTTP/2 is pretty much everywhere now, including virtually all mobile devices. So targeting HTTP2 is pretty sensible IMO.
Yup. And Python is certainly one of Stroustrup's two kinds of languages:

"There are only two kinds of languages: the ones people complain about and the ones nobody uses." - Bjarne Stroustrup
Game theory is strange. Gaining an option to do something can be negative value, because it affects what other people expect you to do in future situations (and because other people now have an incentive to coerce you into exercising that option).

Given that I don't want to screw over my employees, I'd rather have legal structures set up so that I can't. Furthermore, I'd prefer this system to be extraordinarily obvious, so that it's clear to everyone that I've committed myself to a course of action. Like, how you win a game of chicken is by removing the steering wheel from your car, waving it out the window, and yelling that you can't turn away. You'd don't keep the ability to swerve just because you might think you'll need it.
It just seems really ghetto to have someone come to my house to do the work. Trying to get a sense for who would use this... I already have a mechanic I trust, he's less than 5 minutes away from my house... and I can just drop my car off and pick it up when I'm done. Do a lot of other people not have preferred mechanics already?

Also doing car repair in the driveway or on the street -- in many neighborhoods this would be a violation of the HOA agreement. We aren't allowed to do vehicle repair anywhere visible from the street (so like my garage door would have to be closed in order to avoid an HOA fine).

Just seems sketch... My AC goes out and I'm going to call some guy in a van to come put a new one in? Can he change my oil? Recharge my AC? What about spills and leaks, who cleans that up if it gets on my driveway or lawn? For a variety of reasons, mechanic shops better suited for this sort of work. Is this even kosher with the EPA?

Edit: Looked at the site... wiper replacement and battery replacement were some services offered. Yup... got it, I'm not the target audience for this.
Entering a Golden Age of Innovation in Computer Science
I'm sure Canada has had several such incidents (some that happened more recently than 17 years ago), but I'd wager that you're still safer here from the police (across the board, but especially for minorities), than you are in the U.S.
If you're looking for an alternative open source email platform, check out Nylas Mail. It's built in React+ES6 with a rich plugin system.

https://github.com/nylas/nylas-mail

(I work at Nylas.)
sadly, gb is one of the extant systems i haven't had a ton of time to explore. but...

i guess the analogue to what you're describing would be

1. <add an import path>
2. `dep ensure`
3. `git commit -am "all of your vendor'd source`

a bit more detail, starting at a high level: gb is a replacement toolchain. dep is focused strictly on dependency management. there is no notion of a `dep build`.

with dep, there's no explicit command to actually fetch a dep; the import graph is still queen, as is customary in go. so there's no direct analogue to `gb vendor fetch github.com/some/pkg`. if you want to add a dep, import it in your source code, and run `dep ensure`. (there's some flux in exactly how that works right now, but what i'm describing is the state we're moving towards)

`dep ensure` is really the workhorse command, and pretty much the only thing you'll ever need to run. (in fact, the only three subcommands we currently plan on having are `init`, `ensure`, and `status`).
I found it a little disingenuous - in reality, half that screen is going to be taken up by an on-screen keyboard, and typing is nothing like that quick; that little blue dot would be moving from key to key to key to key.
The houses in Vancouver are so crappy someone even made a joke quiz about it, in 2010, when the prices were a lot lower: http://www.crackshackormansion.com/
in a post-dep world, this won't matter anymore. dep strips vendor directories out of any dependencies it pulls in.
So you are saying that it was ok for Wikileaks to misrepresent the material it was releasing because the mainstream media has been saying for years that the government is spying on us.

Huh?
Oh yeah. With your grandparents, mom, friends, etc. watching. You barely post anything.

I think the biggest place where facebook fails, is making it easier to segment people and create groups.

Where you can easily setup a group, of say friends, and you can more openly post. Without telling grandma about how you dropped LCD at the concert two days ago and had a wild time.

You _can_ do this now, but it's clunky and painful.
One feature F# has that would be great is that you can declare primitives as a a type. So you won't mix up your kilometer floats with your miles floats. And kilometers divided by hours ends up being a km/h value.

The other one we'll never see: Non null references as a default, optionals as a special case.
Just for fun. It makes me smile when I see stuff like that, so I'm gonna try to make my stuff more fun. My thinking is that as long as it falls back to something safe, it isn't hurting anyone.
That's hardly fair: the linked page doesn't mention Labs once.

> But hey, Gmail Labs is still there!

I'm not even sure what makes you say that like there's no chance of it changing as a result of this?
I'm new to the site. Seems you are controlling things around here (moderator to say). Why are my comments only visible when I'm logged in? as soon as I logout and look at the comments on this article as unregistered user, I do not see any of my comments. That gives false sense that everyone is looking at my comments but in reality they are being hidden. That makes me think other users even when they are logged in the website will not see my comments because they are censored Probably as comments are not in line with rhetoric of those in charge of this site, maybe? Is it a way to censor what YC does not agree with? I never knew this existed.

Please explain if otherwise.
AI Podcast: How AI Can Improve the Diagnosis and Treatment of Diseases
The f1-micro is new: "New additions include Compute Engine, Cloud Pub/Sub, Google Cloud Storage and Cloud Functions, bringing the number of Always Free products up to 15." https://cloudplatform.googleblog.com/2017/03/Google-Cloud-Pl...
As a fellow member of the hates-Python-but-not-enough-to-quit-my-job-over-it club, comprehensions are just the worst. Uses variables before defining them, can't be readably broken over multiple lines, overloads multiple pieces of syntax, reads inside-to-out instead of left-to-right. Ugh.
I wonder if the person writing the article is using the Fast Insider Build of 10.

I've have cases where due to a bug a setting that showed "tips" I disabled was accidentally ignored (it was fixed in the next build) and had the tooltip "why not try Edge?" pop after a year or so of using 10. I first I was raging with people in discord about Microsoft and Ads. But after a coffee I clamed down and I checked on line to see which option might of got flipped, found the flag and remembered I had set it long ago (and that's why I had never seen that tooltip before), checked the feedback tool and saw reports from others that the flag was being ignored for some reason and MS promptly fixed it.

Personally I enabled Fast Builds when Bash/WSL went live but I disabled them when an update conflicted with Overwatch so I'm no longer getting the Fast build. Just wondering if this person is having something similar where they disabled all the "suggestions" only to have one creep back in due to a bug?

Edit: Reading the comments seems like the person writing the article was the person who got the notice.

It's not a get out for MS. All these suggestions make it hard to suggest W10 to people as I have to give it with the caveat "as along as you turn off all the bullshit". It's a shame because with a little fine tuning W10 is a decent OS.
The same thing happened to me on the Shinkansen. My eyes were stinging by the end of it. Thankfully they have replaced smoking cars with smoking rooms since then. The JP govt appears to be cracking down on smoking + "encouraging" free Wi-Fi everywhere in time for 2020.
They've added it to WhatsApp as well. Which has like 1 billion users around the world. Also now facebook controlled.
Scoring?

This is California government entities spending CA taxpayer money filing redundant lawsuits against a much deeper pocket, also funded by taxpayers. The law firms hired as part of the process are the winners.

Guess who the losers are.
Should you learn [insert shiny new tool]?
$50M Endowment Establishes Paul G. Allen School of CS&E at UW
John Carmack is suing ZeniMax
This is actually the first explanation of snapchat's appeal that makes sense to me. I guess my friend group doesn't really use it though, there's not much use for it unless you have an existing social group to interact with?
I can't say I agree in any way. There's no instance where a switch statement is preferable to a hash table or pattern matching.

If you have a switch with 3 or fewer cases, use if/else. If you have a switch with more cases, a hash table is going to wind up with far less code, and set you up for polymorphism later if you decide you need to go that route.
I thought the reverse with ES6. :) "Oh look, arrow functions! Finally!"

It's fun to see how languages influence each other.
Matplotlib Cheat Sheet: Plotting in Python
https://feh.finalrewind.org/

That is a image viewer that can be operated from the command line but that then produce a GUI window (or windows) that can be manipulated by mouse and keyboard.

It has also various options for displaying image properties in the terminal.

Meaning that it could be leveraged along with existing _nix CLI tools to fine images in a large directory (or even directory tree) and then display the result, all by piping commands together.
Me too. I had a spate where I went over to using emacs (built my own setup around spacemacs). It was very powerful, and I found stuff like helm, projectile very nice (org-mode with export to reveal.js was sexy as hell). But then I just dropped it all and went back to vim again.

For me it seems to be down to the following. When I am working with vim, I feel like I am in the same eco-system as my shell, there is a really nice continuity, whereas emacs feels like a separate entity (almost like I have an separate instance of a word processor open). I am aware emacs can be run in the shell without its GUI, but it still felt like it was separately sitting its own world.

For org stuff, I now use taskwarrior [1], which embeds into vim using taskwiki [2] and vimwiki [3] (which provides markdown export)

[1] https://taskwarrior.org/

[2] https://github.com/tbabej/taskwiki

[3] https://github.com/vimwiki/vimwiki
Never worked for a bank but I've done financial services on and off. It's the worst industry I've ever worked for in terms of technology, technical debt, bureaucracy and skill of the average developer. There also tends to be an arrogance from the developers that think they're good just because their code is handling millions of dollars a day.

The also seem to be the worst with NIH syndrome. Where I am at the moment, we built our own database (essentially a front end around sybase to compensate for performance because no one knows what a transaction is), several schedulers, a reporting solution, a message bus (bought it and now everyone has to use it because of politics), to name a few. This seems typical in financial services.
It doesn't bother you to have the perception of privacy without actual privacy? Like being alone, except for the hidden cameras.
Dry suit is pretty much required in Monterey in the bay area anyway, unless you are nutso and enjoy being really cold.
Thanks for speaking up about your experience! You've probably saved several teams from having to learn the same lessons the hard way.
I didn't downvote, but your claims could use some justification. What makes you think quality is declining? Personal experience? Second hand anecdotes? Media stories?
How many projects really have just an ios client? If the argument is to have the client and server the same language then isn't that also an argument for a Java android & Java server?
> Tuple types and destructuring, which are a part of ES6.

And part of many, many languages prior to ES6.
Will+Trump's+new+travel+ban+be+halted+again+in+court?+•+THE+WORLD+INFO
You might want to rethink that assumption, what about Trump & co.'s stance on h1b visas? Which are probably the only legal channel for skilled immigrants
Plenty of people on Reddit's /r/DataHoarder have done far more than that, easily into the tens of TBs. The problems come when you upload unencrypted copyrighted content or try to download more than 1TB in a single day.
It's not like samus ever stopped me from enjoying metroid.
How to Train Neural Networks with Backpropagation
Agreed. I use Boomerang for that now.
I am considering learning .net core, but I think my time would be better spent learning Elixir. Microsoft has a though battle ahead for itself.
Nevermind that Javascript has a hideous side too: http://callbackhell.com/

And don't get me started with Java's verbosity. Half the time Java seems completely unusable without an auto-completing IDE.

And in all honesty I am a big Python fan, but only because it seems like the lesser of all evils in programming. There are some great designs out there, but Python is that toolkit that just seems to be pragmatic enough to be useful and idealistic enough (hello, significant whitespace) to encourage expressive algorithm design.
> Edit: Looked at the site... wiper replacement and battery replacement were some services offered. Yup... got it, I'm not the target audience for this.

I feel like even the least car-savvy person on Earth can figure out how to change their own windshield wipers.
Karma is earned for essentially nothing and it can be trivially replenished if you 'run out', charging a point won't help down votes be used sparingly or more effectively.

Accounts that consistently post bad comments quickly get banned so that nobody sees their comments unless people enable 'show dead' in their account settings.

Any time you see an inappropriate comment thread just flag it (have to click the comment date permalink) or drop a "paging @dang" reply - he enforces the standards without the ambiguity of silent down votes.

https://news.ycombinator.com/threads?id=dang
You are thanking someone for not bashing you publicly? What am I missing? I didn't see anything "harsh" in you sharing your experience.
Well I guess the Silicon Valley way is to start a company that flagrantly violates the law and then lobby until it's made legal.
Could you provide some examples of companies that died because of the CEO's inability to "sell"?
Show HN: A Better Lisp
When psychologists or neuroscientists hear "male and female brains are from different planets", as the article writes, they cringe.

It's true that there are some average differences between male and female brains [1], and we shouldn't forget that, but we still understand little about how the brain works. Also the article goes so far as to say

> Peculiarities of the brain structure make women emphasizers, able to interpret other people’s emotions better and share their feelings. Men are more inclined to be systemizers, somewhat more able to analyze, explore and intuitively understand how things work [..] It all boils down to the fact that women can add some much needed balance to the tech industry — adding an alternative thought process and bringing intelligence to the table.

Which amounts to "we need more women because their brains are different", which is worth comparing to the old-school sexism of "we need less women because their brains are different".

[1] https://en.wikipedia.org/wiki/Neuroscience_of_sex_difference...
Why would someone choose this service for basic stuff over something like AAA? For more complex stuff, do you really want "just some guy" showing up and doing the work on your driveway?
Because what they actually want is something like:

checkSomeValue() && doOtherThing()
The Visual Studio WCF/SOAP generators still generate code that uses out parameters - it's pretty much the only place I come across them, these days.
Snapchat is all about being yourself, and not having to worry about it. Creating such an experience naturally biases the app toward privacy and intimacy, but I wouldn't say the app is for flirting. It just happens to also cater well to those wanting to flirt.

It clicked with me when I watched a video by the CEO [0] where he contrasts the spontaneous, ephemeral expression of identity in Snapchat with the long-lived, accumulated identity in other platforms such as Facebook. Without having to worry about this entire paper trail of your past self, Snapchat sheds a lot of the anxieties that would otherwise inhibit expression.

[0] https://www.youtube.com/watch?v=ykGXIQAHLnA
Everything in this article was extrapolated from 140 characters.
Someone on reddit posted that this happens in Enterprise also, which is beyond absurd if true...
A cute feature of this syntax: in "p if c else q" you can think of "if c else" as an infix operator like + and the rest. This operator has an algebra worked out by John McCarthy -- e.g., it's associative. Of course I doubt this will help the poster to like Python more, but it might amuse others.
Ask HN: Agencies to market mobile games and apps?
Does anyone have experience with a marketing agency that focuses on iOS or Android apps / games? Or even a list of companies that do this?
Good plan. Have you thought much about the instruction set yet? Any interesting features from existing commercial 8 bit processors you're going to re-implement?
Some people enjoy rainy weather.
I started taking Scala jobs a while back and I don't think I'd every want to go back to a Java shop.

That being said, some things in Scala are difficult to wrap your head around, and anything made by TypeSafe/Lightbend should die in a fire, but overall I still enjoy coding in it.
Because that scans as:

Variable x should be assigned if condition a true, otherwise b.
Parks Canada rejects movie after learning First Nations in storyline
Rawson kit
Foreign buyers push up global house prices
... but can it make money? (pointing at twitter)
We're going to need a new word for resolution at depth. Cubic resolution?

"Cubic resolution of 1080p by 32p"
Apparently these ads appear in the enterprise edition as well.
I am not saying that at all, in fact having grown up in a country with predominantly private school system, it always amazes me how the land of capitalism ended up with essentially socialist system for education.
Probably close to 80% of my Facebook activities these days take place in group messages for exactly this reason. It's easy to add and remove people to/from a group message while still retaining context, so it works well for planning ad-hoc outings where the group of people involved is quite fluid in its membership.
I think it could be ambiguous in certain situations. Let's say I wanted to conditionally set a variable to one of two negative constants. In the current syntax, that would look like:

x = -1 if y else -2

However, with your syntax, it would look like:

x = if y -1 else -2

Which could be possibly confused with trying to subtract 1 from y.