skysight-inc/HackerNews huggingface dataset:
While there can be UX benefits to using SPAs, something I have not often seen expressed, but which I believe is that the main advantages of SPAs are for business rather than technical reasons.

1. Clear separation of concerns for front-end and back-end teams. With SPAs, the work is clearly divided into front-end and back-end parts, with the back-end team working on the server side code and the front-end team working on the static assets (HTML, JS, CSS). Both sides only communicate through a clearly defined API (e.g. REST, GraphQL, SOAP) which allows both teams to work independently of each other, and means that if there are bugs or problems, there is less confusion on which team is causing them and thus which team needs to fix them. Compare that with server side rendering using an MVC framework such as Rails. The migration and model code "obviously" belongs to the back-end team, and the static assets (JS, CSS) and views/templates belong to the front-end team, but what about the controllers and routing? Both teams are going to need to work on those parts of the codebase, and that's going to increase the need for inter-team communication and confusion on which team owns what. For example, I interviewed at a company where the front-end team was US based and the back-end team was outsourced to India, and they were moving to a SPA so the teams could work more independently. Previously they had used JSP, which meant the front-end team had to write HTML and then send it to the back-end team and then they had to coordinate how the back-end team was going to re-write the HTML as a JSP template.

2. Cheaper mobile and desktop apps. While it seems HN is very negative about non-native apps, it's not hard to see the business case of quickly and cheaply converting your website into a mobile or desktop app using something like Electron, Cordova or a web view. Even if you do plan to make a native app, the SPA and native app can reuse the same APIs, reducing the amount of work for your back-end and QA teams.

3. Flexibility in changing back-ends. While less common than the other two cases, if you decide to change your back-end code (such as Twitter moving from Ruby to Scala) if your app is an SPA you only need to recreate the APIs and don't have to rewrite all your templating code (this is less of a problem if you use a more "neutral" cross-platform template language like Handlebars). For me personally, I'm moving all my personal projects to Elixir/Phoenix from PHP, Rails or Java, and because I used server side rendering I had to convert all my templating code to EEX.
Yes, indeed. US/Europe to -> rest of world (except US) involves no security when transiting Canada.

Domestic connections do require security, connections to US generally require preclearance security. Connections from most other countries also go through security.

The odd thing is that they don't separate arrivals: so you'll mingle with worldwide arrivals, go through transfer immigration with everyone else, and finally you show your boarding pass and get routed either to the departure gates, or to security, based on your boarding pass.
Indeed, but as a large, general-purpose system programming language there are many features that support certain important and special cases, with no application of the language, even library development, using them all.

As an example, we needed locked containers, so wrote a little template and specialized it over the couple of containers we needed. It supported just what we needed. If this same functionality were extended to the standard container library it would not only have need to be thought out to handle every non-locking case, but would have either needed a lot of repetitive boilerplate (and repetitive specializations) or else additional hair that was not worth our while to learn/use. We were able to avoid the problem by adding some documentation in the local style guide.
That's already illegal regardless.
> The risk for regulation has passed as citizens see AirBnB as an accepted reality. Hotels aren't happy, but rightfully see AirBnB as a competitor.

I agree with your overall, but I'm not so sure I agree with this part.

South Lake Tahoe just passed a voter initiative in November that bans AirBnB (and VRBO) except for a few places right next to the major hotels. It was, not surprisingly, heavily supported by the major hotels.
The analytics I'm referring to would be for our marketing page (and only our marketing page). The logs are for our services themselves.

It may seem like splitting hairs, but I believe it's entirely reasonable to collect useful data on the marketing site vs collecting data via the services our customers pay for (and are used primarily by those who are not our direct customers).

There's also a difference between aggregated data (e.g., number of page hits / avg time spent on page) and PII (e.g., IP addresses, browser fingerprinting).
I find diminishing returns. If I try to add logic and gizmos to get it to automatically be closer to my ideal, it just complicates things and would probably take 10x longer to "finish". Thus, a "perfect" composer may be do-able, but the end result would be a Swiss-Army Spruce Goose. That is if the sheer complexity doesn't introduce bugs to make it worse.

As far as open-sourcing it, I'd have to clean it up to be presentable to humans-that-are-not-me, being it's a ball of ad-hoc experiments.
I planted butterfly bushes and milkweed to attract more butterflies in our area. After my city started spraying city-wide for mosquitoes, the butterflies and bees vanished.
Classic langsec failure.
Most unequal on the planet? That is ridiculous. Even SF with its thousands of dotcom millionaires and thousands of homeless is worse, let alone places with proper inequality like Mumbai or Lagos...
Theresa May loses Brexit deal vote by majority of 230
It did spark some research into formally verifiable code so not all hope is lost; also other interesting spin-offs like zero-knowledge proofs in cryptography etc. are all very interesting. Now that the hype on speculation is gone, we can hope there’ll be more interesting “blockchain” news about moving research in this area forward, without recently seen nonsense.
Combine brine processing with sewage treatment? There's ample non-potable water whenever someone flushes the toilet, I would surmise.
Even if a "Product Owner" brings a lot of customer information, it is still damn important for those developers who are genuinely willing (and able), to interact with customers—even if it is only via medium-bandwidth tools like video calls. Developers should not worry about spending some time talking to users.
> That's an odd convoluted definition that I've never heard of before

It's a “definition” in the sense that it is a description semantically equivalent to what the phrase “dark side of the moon” has always referred to; it is not, however, a description of the etymology of the term, which derives instead from the long established use of “dark” to mean mysterious, hidden from knowledge, obscure, occult, etc.
Not sure why you can't have an alliance among smaller countries without all the regulations. It seems orthogonal to me.
>... the C++ community doesn't take language simplicity or comprehensibility seriously...

I think this is an unreasonable assertion and not borne our by a read of the committee discussions.
This comment itself isn’t useful, so I expected to be down voted, but I was just wondering if there’s anyone out there—who doesn’t have an ax to grind—who can comment on the practicality of Ethereum. Is anyone using it to do something useful that couldn’t be done (or couldn’t be done nearly as well) otherwise?
The idea of a "world computer" where everyone runs everyone else's code and branches to code they cannot see was a security nightmare and a mistake from Day 1.

Satoshi left out Turing-completeness from Bitcoin for this exact reason.
Does Mars make a particularly good outpost for asteroid mining with its much lower gravity well, and the fact that if you fuck up and de-orbit an asteroid you’re not potentially destroying a large swath of populated land below?

There may be refining steps which you would want to do on the surface vs in orbit, and getting the raw ore down and refined product back up would be substantially cheaper on Mars.

Probably it wouldn’t be worth building a colony in the first place for just this economic benefit, but once you have the colony, you can exploit this advantage?
Red Dead Redemption 2’s Pinkerton agents are at the center of a lawsuit
It's hard to be silent towards an online checkbox.
That is correct. Google played a big role in open-sourcing Spinnaker alongside Netflix back in Nov 2015.
Sure. In Rust there's a function called [`str::repeat`](https://doc.rust-lang.org/std/primitive.str.html#method.repe...) that takes a string slice and repeats it a number of times, allocating a new String in the process.

Do there exist inputs -- either string or repetitions -- for which the following function does not panic owing to allocation issues (as documented) but either 1. cause a SIGBART or similar to be thrown or 2. fail to produce a new string which is the correct multiple size of the original string slice?

It's not possible, I contend, to answer this question with tests. The cardinality of input strings and repetitions is bounded but very, very high. You can for sure find _examples_ where `str::repeat` functions as documented but demonstrating that it always will is a different thing.
> Surely DuckDuckGo has implemented their own search engine, crawler and indexer apart from other providers?

No. They have their own crawler but it's only used for Instant Answers and other widget stuff.

https://duck.co/help/results/sources

> In fact, DuckDuckGo gets its results from over four hundred sources. These include hundreds of vertical sources delivering niche Instant Answers, DuckDuckBot (our crawler) and crowd-sourced sites (like Wikipedia, stored in our answer indexes). We also of course have more traditional links in the search results, which we also source from a variety of partners, including Oath (formerly Yahoo) and Bing.

So in other words, all organic search results come from Bing and Oath.
Hi there, don't mind feedback at all. I think it's implied by posting here. Thanks first of all, for this well considered feedback.

This marks our starting point, so yes. At the moment, the Launch view serves as a place, that unifies the things you check during a Product Hunt launch, nothing more.

Many people use Product Hunt, many people use Stripe, so we started there. The way we've set things up however, is entirely flexible, so as long as useful data is exposed via API, there's something we can do with it.

So, now we've launched, and then the real work begins. We'll listen to all feedback, and then see what views and integrations to work on next.

We can implement new views quite quickly, so watch this space.
If you want to stay in touch with what we're doing, feel free to join us on Telegram: https://t.me/joinchat/AAAAAE9hRjYlBpzqRr7FyA

Again, thanks for your feedback, it's appreciated.
Yeah Stroustrup put his foot down this year on whacky proposals.
I've been thinking of running a periodic contest in my MMO game. The one who can camp out for at least a minimum time span, the furthest out in space will win a prize. (Space, in the as-yet unimplemented design, would get deadlier by the square of distance from home base at coordinate 0,0) Prize entrants have to pay something like $1 and completely eschew non-cosmetic in-game purchases.

How would the law distinguish something like that from "a game of chance?"
one countermeasure i use for this is to substitute the phrase "i'm pretty sure that..." in place of "i know...". that gives both you and others the mental room to consider alternative causes. the 5 why's is another more formalized technique: https://en.wikipedia.org/wiki/5_Whys
There is difference alright but I think IID and a small team that meet regularly is all you need.
Presuming this isn't going to be used for anything five figures and up, then I'd say the more important document for a freelance gig is the Scope of Work. The crux of the SOW is expectations. The contract - for (smaller) freelance work - imho doesn't come into play unless the expectation set (or not) by the SOW goes sideways.

While the contract defines the legal CYAs, etc, the SOW help define the relationship without all the heavy-handed language gymnastics.
> Suddenly there’s no distinction between R. Kelly and a high school girl sending a mean emoji.

Do they not even get their own point?

They have literally called out, in an article about the cruelty of it.

You have rule of law and oppose lynch mobs or embrace lynch mobs.
It sounds like it could be practical, but in practice, it can't. You can't just go around having everyone run code they can't audit. That's insane. It also causes terrible slowdowns in the network which is why they can't scale.
> I don’t think it’s a laughable use case to want to bring those that are too poor to participate in the banking system into the modern era

I don't either. But something like M-PESA, which works (a) without a bank, (b) on cheap hardware and (c) without requiring great technical knowledge to avoid your coins getting stolen is a better fit for that problem.
So much blabbering about how to count users, but why do they want to?
This is a historic loss:

> Government defeats by more than 100 votes are vanishingly rare; the only ones recorded in the past century occurred during the minority Labour government of 1924. Postwar, the only government defeats on a similar scale were by 89 in 1979, and 86 in 1978.

The "No" lobby was packed [1].

[1] https://twitter.com/CMonaghanSNP/status/1085257330432884737
I'm not so sure about this. Even if you can avoid directly blinding drivers, what about all the wasted light from reflection? Are roadways now 10X brighter than they were before?
This is a matter of the food environment. People used to be a lot thinner back then. Does anyone really think this is because people had gotten more lazy and less disciplined?

Of course, a bad food environment is not an excuse to not lose weight, but it's also not an excuse for the government and society to do nothing at all and blame it all on the individuals.
So basically they think they can rewrite contract law because they said so?
Simplest possible smooth contouring algorithm
Git recently had a malicious-server-rce bug, though not related.
Ooh, same thing happened to me actually on my new(ish) Apple TV, wan’t compliant for the interactive Bandersnatch.

I had the option to watch without interactivity, is that worth it or does that miss 90% of the experience?
I'm not calling him out. I'm saying that he has zero intellectual credibility to describe these issues accurately.

For instance:

>But the “Invisibilia" episode implicitly suggests that call-outs are how humanity moves forward. Society enforces norms by murdering the bullies who break them. When systems are broken, vigilante justice may be rough justice, but it gets the job done. Prominent anthropologist Richard Wrangham says this is the only way civilization advances that he’s witnessed.

>Really? Do we really think cycles of cruelty do more to advance civilization than cycles of wisdom and empathy? I’d say civilization moves forward when we embrace rule of law, not when we abandon it. I’d say we no longer gather in coliseums to watch people get eaten by lions because clergy members, philosophers and artists have made us less tolerant of cruelty, not more tolerant.

Here Brooks straw-mans Wrangham and Brooks' other ideological opponents. Many/most of us would not say that "clergy, philosophers, and artists have made us less tolerant of cruelty". We would say that, as a society, we no longer gather to watch people being fed to lions because the lowest sectors of society have gained enough power to prevent themselves being fed to lions.

This difference in lens derives directly from Brooks' being a Republican: he comes from what has traditionally been called an "idealist" tradition, and he illustrates that here. He thinks that ideas move history, so better ideas (from philosophers, artists, and clergy) make society better.

In other traditions, particularly the one he's attacking, the engine of moral progress is the gradual, halting, progressive balancing of power across individuals and groups.

To successfully attack the "balancing of power" model, you have to actually name that model, then show counter-evidence. Brooks has instead casually elided the model he hopes to attack in favor of pillorying his purported opponents as incompetent at applying his model.

If you have a severe fever, you might have mononucleosis, and you might have meningitis (this happened to someone I know). Or you might have the flu. If I think you have the flu, I can't label running a test for mono as incompetent treatment of the flu. It's testing an entirely different hypothesis which stands on its own.

This goes to the heart of Brooks' conclusion:

>The problem with the pseudo-realism of the call-out culture is that it is so naïve. Once you adopt binary thinking in which people are categorized as good or evil, once you give random people the power to destroy lives without any process, you have taken a step toward the Rwandan genocide.

If you think that ideas drive history, call-out culture is the first step to the Rwandan genocide. If you don't believe that in the first place, you have no reason to accept the conclusion: preventing an "American Rwandan genocide", in your view, might require something else entirely, or such a genocidal war may be a priori so unlikely that it's no more worth "preventing" it than spraying "tiger repellent" on oneself when going outside.
Yeah. And your response to my original comment is fair. It is definitely a dog-whistle for some people, but I had ceding ground to people trying to steal common usage words to encode hate speech. I was on the fence about mentioning it.
Right to privacy and freedom from surveillance is a dream.
I'm using Django templating language to serve up pages with a base template and also allow server side stuff to show up in the html pages.
Given the down votes and critical replies I’ve received, it would appear that my understanding of the trade-offs between single page applications and traditional web applications is sorely lacking. I will do some research on the issue; if anyone has any particular resources they’d like to recommend, I’ll check them out.
> While its community support is very good, PostgreSQL's core documentation could be improved.

hm... I'm thankful for PostgreSQL's high quality documentation.
I would not at all agree that "today's old people aren't fluent with technology."

Today's old people wrote the software your bank probably still relies on today. In ten years, you're going to be talking about me, one of the ones who saved you from Y2K, wrote software you have likely used (if you've used Windows or Visual Studio, you've used my bits), wrote mobile phone software you might be using even today, and you better hope I was having a good day when I wrote that routine controlling the programmable logic controller in the nuke plant down the road. So in ten years old people will magically be fluent in technology? No, no more than your nephew can help set up that network because he spends all day on Facebook. Techies have always been a subset of the population, always will be. But that doesn't mean the "normals" can't use what we produce. That also doesn't mean that "produce" has anything relation to "consume". I don't know the first thing about making a movie, but I do love watching one.

People drive cars without knowing what the Otto cycle is. People use microwaves without knowing how to use a compiler for the IMX6 chip driving it. People can use Facebook without knowing how to write a for loop in PHP. But it wasn't always this way. You used to have to know something about the Otto cycle to drive, or you'd burn the tops of your pistons off when you advanced the spark too much with the manual lever. You better know where in the compression cycle to start hand cranking the engine for maximum success (and minimal arm-breakage). But that's because (take your pick) the technology sucked, or simply wasn't ready for prime time. My wife and I were talking about why women didn't generally drive "back then". Manual transmissions, right? No, women drive stick just fine, ya pigs. But that's what I've heard. Reality: power steering. Anyone with a left leg and a right arm (and I have evidence that you don't even need the arm) can push a pedal and move a lever. But turning our '81 VW out of a tight parking space at low speed? Yeah, you better sack up and get a good grip on that steering wheel. Moving 4000 lbs. of steel around wasn't quite ready to be accessible to everyone.

My long-winded point is that old people will be fine with technology. But here's a tip for all you up-and-comers: make sure your product is not yet-another-thing-I-have-to-fuck-with. Old people don't get technology? No, old people have a low tolerance for yak shaving. Why did VCRs flash "12:00" back in the day? A sign of technological doltishness? No, it's a sign that first sentence in "how to set the clock" is, "grab a set of trimming shears..." Fuck it, it can just flash. Your device randomly needs a reset every X number of days because you outsourced the firmware development? Fuck it, back in the box it goes. You get the idea. I can barely remember to take my pills, and you're giving me something else that needs regular attention?
AFAICT these things don't actually emit laser light, they use a high power laser to stimulate some sort of phosphorus-like material that then emits incoherent white light. The point is then that this secondary light source is very small (compared e.g. to LED with similar lumens), so the light can be much more easily focused by optics.
Bankruptcy doesn't always mean going out of business. And the IP is still probably good, and likely going to be liquidated and sold on to someone else (who will hopefully start a new business with the tech).
But then what's the point?

EDIT: This is an honest question, not snark. I'd appreciate an honest answer instead of a blind drive-by downvote. I don't learn anything about why a thin UI layer over a bunch of search engines I can access directly is useful for privacy if you just downvote my comment.
Disclaimer: this might not be the case at all airports, but certainly YVR and YYZ have implemented this.