skysight-inc/HackerNews huggingface dataset:
Can't the SOLID principles apply equally well to functional programming by just replacing "class" with function, object, or type (depending on the principle)?

Single Responsibility is achieved by composition

Open/Closed is probably the one that fits least with FP, but it seems like FP achieves the same result by replacing both extension and modification with composition.

Liskov Substitution can be replaced by a subtyping or duck typing.

Interface Segregation seems like its more about design than programming. However, to the degree that it applies to programming, composition seems like it actually better meets this principle than inheritance.

In terms of Dependency Inversion: If anything, it seems like one of the biggest problems with FP is that it makes it easy to take this principle too far by making things too abstract (e.g. the category theory aspects of languages like Haskel seem like they could easily be abused).

I'm not super experienced with OO so am I maybe misinterpreting these principles?
As opposed to open carry?
Much easier for management at that level to know they need to, for example, reduce staff from 15 to 12 or 10 than it is to know they need to reduce 1500 people to 1200.
We in South Africa have the same issue due our location and the dependence on the export of natural resources.

Our third biggest export is motor vehicles and parts mainly from VW/BMW/Mercedes Benz/Toyota but we dodged the Holden/Ford bullet by making cars that could be sold locally and worldwide.
Host headers are explicitly required by the spec, and there are no clients left that leave them out (including non-browser clients like curl and wget). There is simply no reason to facilitate requests that have no Host header, so servers receiving them quite rightly serve some kind of error response.
Sad seeing this comment greyed out, I have friends who are journalists and they lament this all time.

The media model always had this strain in it on the fringes but now it's prevalent everywhere in a world of A/B tested headlines and click KPI's rather than newspapers sold.
This is much better source than the TALOS website[0]. Clearly spells down the impact.

Somewhat related, the Alpine Linux security mailing list is currently marked as "inactive". For a distro that calls itself:

"Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox."

I find it very weird that there is no way to subscribe to security notifications.

[0]: https://talosintelligence.com/vulnerability_reports/TALOS-20...
A nice opinion to have while there are other options.

Wait until Uber is the only option for a ride across town. Now what?
It's a little bit contradictory that you simultaneously believe that the people who worked on GC are much smarter than you, but at the same time they were wrong to choose to work on GC rather than your research program ;-) Not all problems can be solved by throwing smart people at it. There has been research along the lines you suggest. Look at the MLkit region inference research, or escape analysis research, for example. It doesn't work very well in practice. It can correctly infer like 95% of memory allocation/deallocation, but that remaining 5% leaks memory which means you need a GC anyway. It's still valuable research though. Go, for example, made the bet that they can use a low-pause low-throughput GC by reducing the pressure on the GC by doing escape analysis. Maybe that would work even better with the far more powerful region inference of the MLkit.
The top 1% shouldn't be about wealth period. It should be about holistic merit with first come, first serve basis.
It should be accessible to anyone.
Wealth is what caused celebrities to pay millions of dollars for guaranteed admittance.
> On the other hand, I don't see why I, as a platform, should host content I find objectionable.

So you shouldn't have to provide services to people you find objectionable, even if those people are in a protected class? It's a common but mistaken belief that we have no obligations to society or to our fellow citizens.

For hosting specifically, it depends on multiple factors: your ubiquity, the demographics of your audience, the intended/stated purpose, etc. For instance, the Supreme Court recently decided unanimously that social media is the public square, and so no law can restrict access to social media (they were trying to ban sex offenders from social media).

Considering Twitter's and Facebook's stated purposes are to become the place for all online conversation and debate, if they achieve that goal then censoring content arguably violates people's rights. Doubly so because people like Jack Conte have literally stated that access to social media is a human right.
IBM’s Rometty: Red Hat will remain independent – ‘I don’t have a death wish’
A minority of Americans that listening to and vote in charlatans and demagogues that legislate against their interest. Of which Trump is its ultimate expression.

What do you think is the ultimate cause of wage stagnation then?
Are we beyond using email as a login method?
So I'm creating a new application and wondering if it's necessary for me to include an option to login via email (and password) versus only providing the ability to login with Facebook/Google/Twitter/etc.

Pure email accounts are a hassle for me (the developer) because I need to manage passwords, verify emails and support forgot password flows.

Email accounts also seem to be a hassle for the common layperson because they (1) are at risk of forgetting the password and having to go through the forgot password flow themselves or (2) having to try a couple passwords and wasting time at the login prompt because they don't remember the right one.

I've tried to find some research on the value of social logins[1] but it's a bit slim on user attitudes and their preferences.

Essentially I want to balance friction at login (as well as onboarding) while also alleviating any technical complexity I don't have to do by leveraging these social login methods (exclusively).

Are we beyond using email or should I still support it?

[1] https://janrain.cloud-papers.com/content/62/2013-consumer-research-value-social-login
If it's built with nodejs you won't be able to make a binary without packaging the whole node/npm with it.

For standalone binary Golang is a better choice but that probably wasn't in scope for the developer who wrote it.
> The day humans start eating raw fresh or rotten meat and find enjoyment in that is the day I will accept that humans are meant to eat other animals.

Sushi. Shrimp. Spanish ham and other cold meats like chorizo. Steak tartare. Jerky. Many fermented meats that I don't know the name of. My brother even loves eating raw meatballs.

We cook, not because we aren't meant to eat meat, but for the better taste and easier digestion.

I personally hate raw vegetables, they're too crunchy and taste like... cardboard (personal preference of course). Cooking is not a phenomenon exclusive to meat.
But with PayPal, that’s not the case. Your “money” in your account at PayPal is just a number in a table. The actual money, however, is in PayPal’s bank account where it is earning PayPal interest and investment opportunities.
So what do you think is the ultimate cause of American wage stagnation?
The already have the money. The notion that it's somehow "in your account" is just PayPal fiction - especially if they deny you access to "your account" indefinitely.

(Supposedly they don't operate fractional reserve, which means that Peter Thiel pinky-promises not to touch the principle. But it's still in PayPal commercial investment vehicles, earning away.)
Klarna has it, not sure which markets though.
Between the salt and the dog urine, hard to believe they survive at all.
> We were lucky that we have moved away from PayPal for actual business revenue

Maybe that’s the real reason for the ban? PayPal might not like people not being completely reliant on PayPal, so PayPal might tend to ban those who don’t use PayPal for everything, hoping to make all potential non-PayPal users go out of business before they become large enough to be visible? Of course, this is all paranoid speculations.
I agree with you.

It seems like American Exceptionalism has been shifting from a definition of “America is unique” to “America is perfect”. Obviously no country can meet the 2nd definition.

America has definitely been a force for good in the world, but just like every other organization run by humans, it makes mistakes and sometimes succumbs to human weakness like greed and overconfidence.
https://en.wikipedia.org/wiki/Kitchen_work_triangle
I had misread your initial comment. As a north-american, I often hear people arguing in favour of more sprawl. A detached house and minimum two cars for a family.

I think we agree that we can have nice 'small' but dense cities. We don't all need to be New York, but we also don't want to clutter the planet with suburbs.
That's a dangerous game. Australia played it many times and paid the price. I don't think that they'd be so ecologically efficient in a different habitat.

A change in Australian culture to eat more kangaroo might help a lot.
It doesn't matter, it's just a rule of politesse that the elites don't attack each other personally in public. It might even be beneficial because it allows the focus to be on Facebook's actions rather than the colour of Zuck's soul.
I use "Should I answer?" On android, it's free for me and I block everything.

(not affiliated)
I’ve been seeing more and more of a sort of “Two Cultures” Aggression among the tec crowd, and I’m somewhat baffled by it. I even share some of the misgivings (Hegel: ugh...). But all grievances about the shortcomings of individual sub-fields together still don’t feel like they would justify what to me often seems a very emotional antipathy against anything that isn’t “pure” science.

Someone like Richard Feynman, who was arguably at the forefront of making fun of the humanities, never devolved into today’s unthinking “learn to code” sort of hatred: he heaped scorn on certain practices that deserved it (coining “cargo-cult science”), but remained open to fall in love with ideas he liked, and even succeeded in writing, painting, music, education, and cultural diplomacy. He would seem to be an excellent role model, showing how to constructively engage in other fields without compromising your principles.

I also think we sometimes overlook the triumphs of the humanities because they look so different than those in the natural sciences. While physics has the nuclear bomb, philosophy may well lay a claim to that bomb never being used after 1945. Only the latter connection is far more diffuse, with ideas percolating through layers of society, bouncing between academia/media/politics/literature/etc. Democracy, the rule of law, (international) cooperation, capitalism, and so on are similar: these ideas don’t just randomly appear, and are very much in the wheelhouse of “the humanities”. But from inception to general acceptance their trace gets lost, and they often become so common we don’t even notice them anymore, much like the proverbial fish who doesn’t know what water even is.
Just like nobody can _stop_ you from murdering another person or demanding a bribe or any number of terrible things.

I don't understand the point of your vehement sophistry. Everyone understands how societies work. There are laws. People get punished after the fact for transgressing them. Cryptocurrency is not somehow magically exempt from that reality.
> You can find pretty much the same horror stories about any Bank or credit card company.

I don't know if you can in the US, but not in my country. A bank working like paypal would be in trouble, and quickly. Closing accounts without prior notice? Deciding unilaterally to freeze assets? A bank can't do that unless ordered by a judge. If they would, they'll be on the receiving end of a court order and will get a call from the regulator's office that they really don't like to hear from.

Paypal is shady, and there's a reason they run their operation from Luxembourg, one of the top places to do shady financial business in Europe.
Joe Armstrong Obituary
Calling to (continental) US numbers is easy to find for $0.01/minute, billed to the second. If you've got volume, it's cheaper.

Blocking numbers of spam calls is like blocking numbers of spam email; most of them are spoofed so it's most likely not to help.
OpenFaaS (around 2.5 years since launch) with 200 contributors, 17k stars and around 40 end-user companies in production. www.openfaas.com
> Naive ARC is AFAIK very expensive as it causes a lot of updates

It also means you can't really rely on CoW after fork(). After a while your whole heap will be duplicated in every process because of the RC updates.
"X is a good person, but ..." is simply something that a lot of people have been taught to do when they want to criticize someone but don't want to appear to be entirely negative (without necessarily having anything nice to say about the person). It's a common strategy to try to come off as more polite, especially when your statement is written or will be quoted.

A common aphorism that approximates this is "you catch more flies with sugar."
> Maybe, just maybe, these companies have internal processes for handing over such materials to the relevant authorities

Trusting authorities is not a solution, which should be obvious from an analysis of any country's recent history of scandals. Journalism is critical for keeping abuse of authority in check, and so censorship is a very serious problem.
It's not natural. It depends on your previous experience. Preferring C-style semi-OO stateful programming and OO merely shows what influenced your thinking.
Saving you a click: "The Windows Terminal is in the very early alpha stage, and not ready for the general public quite yet. If you want to jump in early, you can try building it yourself from source.

Otherwise, you'll need to wait until Mid-June for an official preview build to drop"
WTF Is Category Theory??
>Every Friday go online and withdraw all-but-the-necessary £€$$ to your bank account (transfer wire or via card number). I do get some revenue via PayPal, and the very same day (or the next) I 'download' comes it to my bank account (connected to PayPal via card) and IMMEDIATELY is shipped to another account that has all the controls to make money (relatively) unmovable.

PayPal does have a feature they don't advertise named Auto Sweep, which withdraws any balance in your account each day. You need to contact support to enable it.
> There is literally no good reason to ever use a debit card

Unless you're trying to get out cash from an ATM, or make any other cash-advance-like purchase. Then there's a really good reason to use a debit card instead of a credit card. It's the only time I use my debit card.
Others have said it, but it bears repeating.
If you build on someone else's platform for free, or cheaply, you are the product not the customer. At best, you are both product and a minor customer.

Paypal has a history of doing this sort of thing. I've seen articles about it with Google services as well.

This is one of the many reasons why I suggest using open standards. You could accept bitcoin or eth for payment, but that is possibly too impractical for some customer bases. There are alternative payment gateways to Paypal, but many of them have allegedly done similar things, including Stripe.

Here is an article with advice on selecting a payment gateway for your startup, from the folks at Chargify.
I recommend Remark

https://remarkjs.com
So if I eat less sugar I'll loose weight, who'd a thunk it?
When Engineers Become Whistleblowers
On balance has done more damage?

Do you believe that in the countries where the US has intervened that without US involvement things would be that much better? Seems to me that when the US supported a dictatorship, the alternative wasn’t a thriving democracy but just another dictatorship aligned to a different power.
the original message was they thought the article was written 'for a reason', it sounded a little provocative but I figured I'd engage anyway.
> I just don't get how somebody can cook frequently and even semi-seriously and have the fridge, sink, and stove all two or three yards apart.

It works for restaurant kitchens. In my own, definitely not "dream" kitchen, I find I would like more space so that my prep area isn't also my pre-wash staging area and my stove isn't coating everything I need to store around it with steam.
It's like trusting all the evidence presented by the prosecutor during a court case. Yes, likely none of that is faked or outright lies, but until you give the defense a chance to respond it shouldn't be trusted as accurate representation.

If we wouldn't trust the evidence from a prosecutor by itself, why would we trust evidence from an entity fulfilling the same role in the court of public opinion?
In high-performance systems, software architectures have actually been moving toward non-shared mutability. Shared immutability tends to waste a performance-limiting resource (memory bandwidth).
Inheritance usually looks more natural when it comes to toy examples.

It the real world, a few edge cases can break down an elegant inheritance hierarchy and composition is often the better solution.
>>>fertility falling off a cliff even in developing nations.

Does this mean kids born today will have better jobs, higher pay, cheaper real estate. This seems like a good thing.
Deciphering Another Secret of Life
Excellent point. Arguably content targeting should consider geographic location (and it probably does to some extent).

If we have to start categorizing content so we can preserve journalism with objectionable content, geographic scoring should get boosted even more.
Or to make theft as unappealing as possible, do an “Apple” on them, and require proximity of a “recognized” device for them to turn on, and require a long password, unique to each scooter, to reset the pairing.

They’ll still get stolen, but after apple implemented its current “find my iPhone” scheme, thefts of those devices has plummeted compared to what it was before.
Can't they already expel any diplomat for any reason?
Indeed it is similar to Shadertoy (or any other live GLSL editor like, for example, the live editor from The Book of Shaders ( https://thebookofshaders.com/ - which I really recommend, VERY good source for learning, helped me a lot! ), but I wanted to have a set of more flexible features to fit my personal usage like, for example, using any external images (from imgur or any other website that allows cross-domain access) as sampler2D-uniform texture inputs, or using my own MP3 files to be FFT analysed and produce audio-reactive shaders with more combinations of frequency bands and averages available, the resolution selector, export to GIF, etc. I still have to document and publish all the set of uniforms available and provide an usage guide to make all the features more clear. There's already some incredibly great live GLSL editors around, all of them with their bright features (and the lack of some good ones). My intention was not to produce a clone, but to contribute with a different set of tools to the same purpose.
That'll happen with most N-gram searches.
> For instance, we say “users want control over their privacy,” but what people really want is some subset of:

> (...)

> To avoid persecution

> (...)

That's like saying "drivers don't want safe cars, they just don't want to die in a car accident".

Will you stop making safe cars, then? If not - how is that an useful information?

I understand it wasn't the main point of the article, and I might even agree with the main point in general (I'm not sure, there are exceptions), but that was bad example.
>Cars do not belong in the city.

>Pay for taxi

Which is it?
Agree with this 100%. It's nice for consumers who want to screw merchants (sure, I assume there are some legitimate charge backs as well), but for merchants it's hell on earth unless your business is a bit a of hobby thing and you don't care if you lose whatever is in PP + PP access itself overnight without any reason.
This is the first time I hear about this for UK. The chargeback rules are set by the network , i.e. MasterCard, Visa (sure Amex as well but they are both issuer , acquirer and network so that’s perhaps an unfair example). Is there a different rule set for MC USA vs MC rest of the world?

I worked for a fraud detection company in the UK that existed precisely because chargebacks work so well, here. So this is definitely news to me.
In general: nope. Privacy and tracking concerns, exclusion of users not on your choice of login services...

Otherwise: depends on your target audience. I.e. are you building a google analytics add-on? Asking for a google account sounds reasonable.

It's up to you to decide on the trade-offs.

I personally won't be signing up except maybe with a burner account to see what the fuss is about (if you get that much chatter going around), but I won't be using (more importantly paying for) it ;)
Conda can create environments with literally nothing in them. If you’re putting the full-blown anaconda metapackage in every environment, then it sounds like you’re using conda wrong for your use case. Just tell conda to install the packages you actually need.
"All" might not be possible, but every Rust release tends to see improvements in lifetime elision. I just went through a few Rust apps I wrote 6 months ago and was able to get rid of nearly every explicit lifetime annotation thanks to improvements.

So there's definitely room for improvement, but also good progress being made.
So if a crook steals your money and buries it in the back yard instead of spending it it's not theft?
Wow, this company is burning cash in a bonfire as fast as they can get it.
"I’m always surprised as to why people are concerned about card details misuse. You are not responsible for card-not-present fraud (without 3D Secure). "

I am not surprised. You have obviously never stood in Ethiopia or wherever and have gotten a call from your bank: " This is the fraud department, unfortunately we have to block your card but we send you a new one".

Trick question: How many CC do you carry at a given time?

Hint: based from experience it should be at LEAST 3.
Call for Code – Developer competition that seeks solutions for natural disasters
>Interesting, is there any alternative for the EU market?

Have a look at Revolut (however, you need a monthly subscription to use disposable virtual cards).
I think it will also involve selecting seeds only from "better" performing trees from the city tree gene pool. This will then ensure that beneficial mutations / changes survive. An unfortunate requirement of evolution to force progress.

In a way it will be survival of the fittest for trees. Unfortunately it might take considerable work from urban planners which I cannot see happening on a large scale any time soon.

Maybe a better idea will be to selectively breed species in hard environments and then distribute the seeds to cities that need them. With genetic modifications becoming prevalent in the food industry this might be not far away from happening.
Or they'll cleverly not be an ad for that drug, but have you talk to your doctor about hepC, where the only drug that they could be talking about, but never mention, is over $100k.
It's not just you. I also think the domain name is in poor taste.
> we're not using PayPal to process our SaaS products

Disclosure: I used to work in payment industry.

Unfortunately from the brand's perspective (Visa, Mastercard, etc.) it doesn't matter which of your product is using their channel to process payments, if the business is involved in doing something shady, the whole company will be flagged. If you already passed KYC 12 years ago, but your business _today_ won't pass KYC if you were to apply again, then it's a matter of time until you get kicked out.
> nukes (Green Eggs)

Think you mean the Butter Battle.