skysight-inc/HackerNews huggingface dataset:
It comes down to a preference thing.

I want to read code like an essay. I don't want to have to jump to a function definition to figure out what `thingExtractor` does. To me, that's like taking a book and rearranging the chapters in alphabetical order. No, put them in chronological order. Don't define a function three "chapters" ago in your code and then expect me to remember it if you're only going to use it once. I wouldn't read Ikea instructions that way, why should I read code that way?

But again, personal preference. And you don't have to choose either/or -- I love that Javascript's anonymous and named functions are so similar because it means you can switch between the two styles with basically zero cognitive overhead.

I will say, having worked in large enterprise before, I have seen bugs come out of people not inlining code and instead attaching it to classes or leaving it otherwise accessible. Specifically, people will use functions that are intended to be method-specific in other places. Even if those functions are well-written and don't have side-effects (which is often not the case), the original author still doesn't know that other people are now depending on them as an API.

So later on the code gets refactored and those methods get changed or removed, and suddenly you have a broken build. That's something you can partially mitigate by making a function private (although not entirely, because I've also seen it happen in code within the same class/scope). Python doesn't have true privates, but you can also mitigate that problem by just using code reviews to force people to respect `_`. In practice, I often found that it was easier to make the function anonymous, so everyone knew 100% that it was only being used in exactly one place.
Bombers don't cause damage if they are neglected and unmaintained. A better analogy might be explosive material or radioactive material like involved in the Goiânia accident. There are consequences to the public when these are neglected. I don't know if those semantically qualify as critical infra, but its security is important for our security.
Something isn't quite right. Nim 'compiles' into C code ready for compilation. It should not be faster than the raw C and C++ implementation. Frankly even the C/C++ implementation shouldn't be so different.
Why make you own definition of the term ?

https://en.wikipedia.org/wiki/Luxury_vehicle > Model S is listed there, is that a coincidence?

The S and X are clearly in the luxury segment. Some people pay a very high premium for the pleasure to drive a quick electric luxury sedan. Which is completely unnecessary for their needs.

All the owners I know are clearly in the luxury segment (coming from luxury ICEs). What you find desirable isn't everyone's pleasure.

Maybe Tesla is just reinventing/killing the luxury segment, but that's another debate.
If you can find me a quote from Musk (or some other executive from TSLA) in Q2 2018 suggesting only 55,000 cars for Q3 2018, then I'll be all ears.

But I'm just telling you what Elon Musk said in the last earning call. I don't know where this 55,000 number comes from in the Electrek article.
To my two SMEs, yes, it is. It is responsible for 95% of our Marketing effort and 60% Sales. So to us, FB brings in the money.
This is a crisis created by local governments. The private sector could easily solve this problem, but that would require bureaucrats losing their power.
Over 1/4 of people in Argentina live below the poverty line, new study reveals
"We've been to the Moon. We don't need to go back. We need to aim higher."

In an absolute sense, we don't need to do either.

I believe the Moon will support the first permanent population of humans outside Earth.

It remains to be seen if there is any meaningful physiological difference between 1/6 G and 1/3 G. If not, the experience of living on either will be more similar than not. My gut feeling is that there will have to be centrifugal "gravity" available on both the Moon and Mars.

I think the Moon has one thing that Mars does not - it is an attractive spot for heavy industry producing goods shipped to Earth, with abundant solar energy to boot. There is no issue with nuclear power there either.
The quest to stop "money laundering" is totalitarian in nature. It is not reasonable to stop crime by way of having total awareness of the source of every individual's financial holdings.

Such a quest rationalizes warrantless mass-surveillance of the economy, which gives AML agencies and their deputies in the banking sector an unreasonably broad view of the private financial interactions taking place in the economy, and by negating the fungibility of money, undermines its usefulness.

Money is only useful to the extent that every unit is interchangable, accepted at face value without prejudice, and can be used without compromising its user's privacy. That means all money must be assumed 'clean' unless proven dirty. Treating everyone as suspect and forcing them prove their money was legitimately acquired in order to utilize it is taking exactly the opposite track.
The "View As" feature has caused a massive vulnerability in the past: https://techcrunch.com/2010/05/05/video-major-facebook-secur...

I bet they're now really regretting keeping it around.
> you risk losing their valuable contributions.

Modus operandi in these companies is to rewrite/reintroduce whole products instead of fixing bugs from already discarded people. So if you lose a critical amount of worn out higher paid contributors, you just make a V2 or introduce a new product with a completely new fresh team that will get discarded after another 3 years. This requires fresh supply of motivated and hungry people willing to take sacrifices and a much smaller amount of people willing to exploit that.
I love this idea. It's kind of a Xeon Phi, but with RISC-V and an ISA that could be tailored for different functions.

Imagine a processor with a couple beefy RISC-V cores, with lots of memory bandwidth and deep pipelines, sharing the system with some more cores that are more power efficient (but slower) and some more cores that have very wide SIMD pipelines, but sacrifice branch prediction and speculative execution for that.

I'd love to program such a beast.
The information contained within Facebook is the payload. Facebook itself is the structure that holds and protects (or lack thereof in this case) that payload.

Nuclear missiles themselves aren't critical infrastructure, but you better bet the launch systems, and specifically the security of those systems, are utterly critical to society's continued functioning as we know it.
It's likely the fix required the kill active sessions which cause new keys to be generated on sign in
Ask HN: Anyone from Google here? The new Gmail UI is painful
Looks like Google is rolling out the new Gmail UI to users, and removing the option to revert back to Classic UI.

The new UI is painful to look at, to be honest. Anyone from Google here want to mention to the Gmail team that the new UI is going to chase long-term users like myself off the platform?
A lot of information is verifiable, it's just people don't do it. You're right that it's often because they want to believe.

Read any story that involves Russia and spend a few minutes doing fact checking. Or check back after a week. You'll find the story is very likely to be factually wrong and might have been retracted.

You don't need anything more than Google to reveal that the stories are false, sometimes not even that - just reading the story carefully and watching for internal contradictions is sufficient. But almost everyone I meet believes these stories completely.

For some reason lots of people desperately want to believe that Russia is the bogeyman. They not only won't use simple and easy tools available to them, they actually get upset when other people do it.
Well, thanks to Facebooks "View As" functionality, I recently discovered that their privacy setting "Only Me" does not work for only me, if another person is tagged in the picture. Meaning that if I have a picture with my ex somewhere in profile, set to "Only Me", it actually means "Only me... and her".
seems like the origin story of strong params
According to your linked article, it could be considered 'Critical.' Not sure how it doesn't fit under the 'telecommunications' umbrella. Subjectively I don't like facebook nor people's dependence on it to label it 'critical', but objectively I'm not sure the linked article supports those subjective inclinations. At the very least, it's certainly debatable that facebook could be considered Telecommunications infrastructure.
How to Create Never Expires Access Token for Facebook Page
It would work just as most shopping carts do I imagine. You could store a session id in a cookie, and then use the data in KV to map that session id to a user account (if they're logged in) and their cart. So you would have a namespace full of sessions, and a namespace full of carts.

You could also store carts by session id until they're logged in, and then store the carts by account id when they are.
The average for the last batch was 2 founders.
As ethically wrong as Google is operating in, this is a witch trial by name. This is the GOP desperately trying to find a villain when its clear they are.
El Capitan Download
Its not that surprising. You don't go removing your arm every time you get a cut.

Once the swelling that caused the rupture has stopped, it can heal. Assuming it wasn't too severe (you don't want to die of internal bleeding in the meantime)
How is it different to a decent comment system? Isn't HN in a sense, a (semi) decentralised information verification system? I often find comments under the story that show how a story is false, omitting important info or is otherwise biased.

I guess if I was going to work on such a system I'd start with better commenting and forum systems.
Here's a study:

https://www.ncbi.nlm.nih.gov/pubmed/28093386

"Our results showed that overall, the use of Facebook was negatively associated with well-being."

Naturally, even if this study is accurate it isn't definitive; the causation could go in the other direction, that the unhappy use Facebook more often than the contented. But it's still quite suggestive.

I saw this study referenced from this article:
https://www.vox.com/policy-and-politics/2018/3/21/17144748/c...
> Had Spotify named its family tier “Spotify Household,” it could probably have gotten around this controversy – at the cost of a somewhat more awkward name, mind.

When Spotify Family was first expanded to allow up to 5 other users under your account (2016?), it was generally promoted as shareable with family and friends. I took that at face value and never read the fine print on the TOS, so I guess my family/friends are probably about to get booted off.

Personally I don't like that it's called "Spotify Family" if I can't share it with my siblings and parents, none of which live with me.
> $500k safe at a $10 million post-money valuation cap means the founder has sold 5% of the company.

This is a common oversimplification, but it's somewhat dangerous and I would be happier if people were more cautious in what they said here. It simply doesn't mean what you said; it means the founder has sold at least 5% of the company. If you're going to either raise 50m or shut the company and ditch your investors, then it's a wash; but if find yourself in a low-money scrappy situation, which realistically is where most non-YC companies are, it's very significant.

Convertibles and other structurally similar securities, in contrast to priced equity rounds, essentially have built-in down-round protection for investors. They have advantages, too, not least the speed in which deals can be done, but if you can do a priced round or a convertible round at similar speed and at similar cost, give serious consideration to taking the priced round.
Unfortunately with over 8000 applicants each batch that is very very hard but I will talk to our admissions team to see if there is anything we can do to improve in this area. I apologize for how frustrating it is to get a YC rejection.
It's in the realm of tinfoil hat and freakishly paranoid conspiracy theories that there's any meaningful amount of non-citizens voting. Feel free to design a system that meets the John Rawl's "veil of ignorance" thought experiment, such that the burden of obtaining such ID is equal among all. What would that really look like? If Joe Bob has to take 2 hours off work, without pay, to get ID, how do you get a Warren Buffet or Jeff Bezos to go without pay for two hours? Charge them $3 million for their ID card? And if you do, is their burden really the same when they still take home $30 million that day, while Joe Bob lost $30 out of his $600 weekly pay, plus the $30 cost of the license or 10% of his weekly take home? And even if you charge ~$17 million for Warren's driver's license, his weekly take home is still $160+ million. So is that the same burden?

By the way, the single prosecuted case of voter fraud from 2016 I'm aware of, is a man in Colorado, who voted for his wife after she'd moved out of state. They're both citizens.
It seems less social engineering and more taking advantage of search engine stupidity (Domain Authority) to do run or the mill black hat SEO. I mean seriously, I would have thought a multi-billion dollar search engine would be more sophisticated than “durr, the domain has amazonaws in it, therefore it must be legit!”
I was talking about the Senators.
Getting rid of fat arrows is one thing, but I use async/await pretty much all the time, and I still use anonymous functions in my code.

await (async function () {
//Do a thing
}());

I don't think async changes anything about how useful or problematic an anonymous function is.
Riiiigggghhhhtttt....and at a selling price determined how?
Your project is informative and awesome, I hope you don't mind the attention.
Yes, so much this. There is a very real opportunity cost to forgoing high salaries (and this opportunity cost is front-loaded as well since home prices keep appreciating).
I'm surprised Google didn't kill Google Sites yet.
Fluid Navigation Gestures
The Algorithms of August
How come national policy of the host country is only relevant to specifically China, though?

It's one thing to say "I won't censor and that's that", one could argue about which approach does more good/harm for the Chinese citizens affected, but it's an argument.

But the argument I'm seeing go around is a lot more like "fuck China specifically". Which doesn't seem to square with the other views activists generally espouse about foreign countries/cultures.
Right? "Sorry this is only my first multi-billion dollar startup. I guess I need to start a second to merit having a name in your headline."
> They all literally have a > 100 year head start in factories and whatnot

Which really begs the question - why did Tesla scoff at outside help from the big car companies? They've figured things out already...
I am genuinely curious about the passion of anti C++ commenters - could you comment on your journey towards your current antipathy towards C++? Did you use it and get burnt? What did you use it for? What were the short comings? How long did you use it for? When did you use it (ie which C++ standard version)?

This is directed not just at the above commenter, but I invite replies from anyone who takes the effort to comment passionately against C++. Perhaps if we can understand some commonalities in peoples grievances, we could go back and address them.
Is there a market for 50,000+ Tesla 3s for the next 10 quarters?
Right, the interface isn't very clear but instead of "Only Me" it shows "Only Me (+)" and if you hover it says: "Only Me, Anyone tagged."
What you want and what the law allows are different things, also just don't let any entity control how you think.

As for 'being held accountable' as publisher, I'm sure you're aware of many publishers that favor one side or one "viewpoint" in fact it's most of them, and they aren't being held accountable for that because we live in a free country.
They care about the bias precisely because it's not in their favor, as all politicians would.
Yes, there have been other cases of exactly the same issue. I recall a case where it was possible to pretend to be people via the chat system while using “View as”.
it's one of the top-line numbers in the published Q3 guidance: http://ir.tesla.com/static-files/7235e525-db16-470c-8dce-9ec...
And yet, when Ruby is compared with other languages with regards to bugs in an actual study [1] it does better than many statically typed languages (e.g. Java, C#, Go, Typescript).

Add to that that a Ruby code base will be significantly smaller than a codebase in most statically typed languages. That means less code to maintain, and probably fewer bugs.

1. https://www.i-programmer.info/news/98-languages/11184-which-...
Well, Tesla isn't a big car company. Its a growing car company.

But that's what makes these misses so important. Elon Musk originally promised exponential growth with 20,000 cars a month by Dec 2017. But that's a miss. He pushed it to 5000/week by Q3 2018, and now it seems like that's a miss as well.

So Tesla, as a growing company, is nearly a year late on its rampup plans. As such, it may not have enough profits to pay down its first major $1-billionish loan due March 2019.

---------

That's what people need to be watching: how does Tesla plan to pay off $1 Billion loan (its also a convertible bond, so if the Stock Market raises the price of Tesla to $360, they can give stock instead of paying off the loan.)

THAT's why it was important to get 5000/week by December 2017 as Elon Musk originally tweeted: https://twitter.com/elonmusk/status/881757617416056832

The runway has run-out. Elon Musk needs to raise capital to pay off the 2019 Billion $$ loan now.
Some people are still using Java 1.5 so I do not see how being a static language means you will find it easy to upgrade.
“The End” – Limit Theory shuts down after six years of solo development
material design new cancer
You would think that tightly controlled democratic states such as California would make an effort to make IDs easier to get, but instead they create a bureaucratic nightmare which requires 6 hours of your day (visit to the DMV).

The state believes requiring IDs disenfranchises the poor. It’s actually the disfunctional state governments that do it.
The problem is that RC planes almost universally require a much higher investment in skill-building to become competent enough to even fly, let alone fly well.

There is also a large community of builders and flyers [1], a network of clubs with actual airfields for the purpose, and a multi-million dollar insurance policy with membership.

Both the difficulty, the investment, and the training and peer pressure drastically reduces the number of participants who behave like asshats with their aircraft - to essentially zero.

With hobby drones, it is exactly the opposite -- just go buy some overgrown toy, and you can now put up in the air a device that with any of hundreds of failures of the device or pilot, can become a lethal projectile falling from the sky.

So, yes, serious requirements for anything over a few hundred grams is very reasonable[2].

[1] Academy of Model Aeronautics -- www.modelaircraft.org

[2](no, I'm not implying that the Govt automatically implements every reg in a reasonable & effective way, that could still end badly.)

[Edit: footnotes]
In Advanced and Emerging Economies Alike, Worries About Job Automation
Im looking to get in but I have been stalking the hacker page trying to skim every single information I can and believe me...I'm a walking hacker news...lol.
Seibel is doing a great Job in encouraging soon to be/ start-ups to apply to Yc...he's shown an uncommon belief in startups regardless of what they do or where they from.
That to me is a great change to the psyche of yc.
If a lot more people are open as you are we'll have more start-ups.
I'm not trying to schmooze you incase I say less about yc community...I haven't had that experience yet.
This is one of those cases where the word “average” is kind-of unhelpful. Mean? Mode? Median?
Cryptocurrency news feed SPA built with React and Redux
You’ve clearly never seen your local government at work.
This is something I have been interested in for a long time. I was hoping that if Risc-V were to split off to a GPU we would get a very similar set of instructions for both the CPU and GPU allowing us to use one compiler.
Not if it's monero.
> I would argue that crypto is actually an investigator's dream, as you can trace transactions instantly through the blockchain without needing to follow the money in multiple jurisdictions, faxes, waiting periods, cooperating with other law enforcement, etc. etc.

Is this a reference to crypto's distributed ledgers being open to the public?
Oh, lol.

Thanks :)
Probably some Machine Learning startups.
They pay like 2x more than competitors that aren't big tech companies.
Bye bye google
The startup behind Todoist has a novel new vacation policy
> the long-term societal tradeoff of not developing addictive mental candy

Along with React, GraphQL and a bunch of other technologies with various degrees of popularity https://opensource.fb.com

Along with various startups building around the projects incubated at Facebook - Asana, Interana, Phacility, Qubole, etc.
I meant in more explicit terms. Number of companies with two founders, with one founder etc.
So what? What I am saying is that there must be other possibilities. Even 1 person who is kind and honest would be enough to render what I said correct.

I was reacting to @stemc43 who said "I'd rather work with...". Why wouldn't you rather work with kind and honest people? If you are picking your ideal scenario already anyway why not pick the positive version instead of the negative one?
Fun challenge.

https://paste.pound-python.org/show/m403qNkpS5I8dnYjJGJq/

I wanna see the compiler that gets that.
I'm familiar with that. I'm referring to the hosting of the domains in the From line of the emails, which is what cloudflare is hiding. They're helping the spamvertised domains hide.
Vapor is pretty amazing. Super fast and pretty fun to work with; also a very friendly community. Ray Wenderlich’s team as well as Paul Hudson also have some great books on server-side Swift for those looking to learn this stuff.
They still have a ~400k net reservation backlog (based on investor call math). So close enough?

Tesla has demand levers available to stoke additional demand when supply is not constrained. They'll have sold almost half a million Model 3s with no active marketing effort (besides a Youtube promo video here and there) by the time the backlog has been worked through.

Crude (Brent and WTI) is trending higher [1], which is only going to help EV sales. EVs are already a slam dunk TCO-wise in most of the country except where fuel is still cheap in the Midwest/Appalachia [2].

[1] https://www.bloomberg.com/energy [2] https://www.gasbuddy.com/GasPriceMap?z=4