skysight-inc/HackerNews huggingface dataset:
> #1 is just moving the goalpost. You jumped from "why new is bad" to "why can't language mock fields".

I don't think I did. Someone says, well if you use new, how are you going to unit test your class?

And one answer from a user of the language would be: Ya, I guess you'd need to change the way you're creating dependencies so they happen in the caller, and then you'd need to change your class so it takes the instance on its constructor, etc.

And this is the original OPs issue with C#, all the ceremony involved.

Another answer would be that the C# language designer could build a language level feature that avoids having to do that and allows mocking new inside a unit so it can be easily tested without shenanigans.

In fact, in Java-land, there is a library that lets you unit tests classes that use new, it's called Powermock. So it is feasible.

> #2 What stops you from creating a complex system without having dependencies, thus avoiding DI? Also, I think it would make an interesting case study if you're willing to write it.

I've moved to a functional language instead personally. That said, I do still like C# and Java, and think they are great languages. I'm also not against DI, or other enterprise patterns, some have legitimate uses. But I have definitely seen what the OP is complaining about, those languages are too deep in their own rabbit hole sometimes. To the point that half the developers don't know why they use DI, that's just part of the template they used to bootstrap their app. There's no thought process about, wait, what is the issue in my code structure and design that I'm facing, and what could I do to solve it. Instead it's just, I'm using all the "best practices", they are the best, and I'm using them all, all the time, so my code is the best it can be. Without any thought about what advantages they're even getting out of it.

That's why I asked about the "new". Most people don't really know the pros/cons. They only repeat what they read blindly: "New" bad bad, no use "new", never, very bad, antipattern, here link proof, must use DI instead.

And sometimes when they know of a cons, they don't think about tradeoffs against alternatives. They just say, well it has this one con, so it's very bad! An antipattern!

I think that creates a setting where you get monstrous framework and code bases, where people just throw every known pattern at it, no matter if it was called for or not.
The Nazis had the Gestapo, the GDR had the Stasi.

I’m not sure the Berlin startup scene is responsible for originating much of the German skepticism around privacy issues. Germany has a long history with data protection laws, starting in the '70s.
Thoughts on the Cambridge Analytica Scandal
First hand experience showing that psychographic advertising, Cambridge Analytica's supposed super weapon, does not work.
The sooner this shell of a corrupt money laundering institution collapses under the weight of their substantial toxic assets the better. They're the money launderer of choice in Russia, Iran and for Jeffrey Epstein.
Only because their attempts at copying Apple and Google fail miserably.

Otherwise, here's Windows 10, have it for free, hell, here's Linux on Windows, just stay on the OS, buy apps on the Store and see these ads! Also give us telemetry.

Side note: no one cares, but I finally tracked down the cause of a really annoying bug, hibernation due to "thermal event" (CPU "overheating") in Windows 10: It's because of using dynamic disks in mirror mode (perhaps in other modes, as well). Makes Windows 10 hibernate randomly. Converted disks back to basic, no problems. Took me a long freaking time to finally solve this.
I presume you mean desktop Linux - I admit haven't tried a desktop edition Linux in this decade, so I might me off there.
Well I suggest you delete that post ASAP. I do not like notion of giving ideas how to solve Climate Change and cool down the planet Trump's way, 2 months before he left office.
What adblocker is recommended?
The monster you should let eat you
That might have happened for a small number of users, but it was an isolated incident, not a "feature" pushed to every Windows user.
Source for the Fauci claim? I've seen a claim of 6000 (not sourced properly), the RDA is 600, I couldn't find even a dubious source for 10000 and all decent sources didn't give a dose at all.

Given that 10000 is considered more than the maximum safe amount by many health authorities, I doubt Fauci would say he's taking that much even if he did.
> If you want to comply with worldwide payment laws and tax requirements, then I'd disagree it's "not one of the complicated problems".
It's also not something that a service like Stripe will handle for you to a useful degree.

And yet it is a key part of the engineering problem that has to be solved, which moves it away from "not one of the complicated problems" and being "quite standard work" (the original post I was replying to, disagreeing with the thrust of their post).

Which, AFAIK, you still can't actually test properly with Stripe's system before making it live. I'm not even sure it's fully documented yet, and if it is, that's a relatively recent development.

We've discussed testing payments before (GoCardless last time) and are in agreement that it can be improved. I've seen no way to test Stripe's dunning.

You can literally write the code to do things like this in a few minutes, including all conceivable edge cases. Many of us have. It's basic arithmetic combined with some almost-but-not-quite-trivial logic around dates.

And yet last month I worked with a SaaS which implemented recurring billing a few years ago, and can't get it right. They overlooked pro-rata entirely (which at least prevented edge cases) and dunning didn't work. They aren't the first either.

Which is why, when I see the mess people have made of it, I disagree with the original assertion.

But Paddle's model is a merchant-of-record, which also takes care of things like the tax reporting and remittance headaches that a service with Stripe's model doesn't. It's not a fair comparison.

It is an accurate comparison when answering "[Managing recurring billing] is not one of the complicated problems". We have merchant of records, we have profitable subscription companies like Recurly, Chargify and Chargebee. If it (and keeping up with a changing landscape) wasn't a significant problem for businesses then more would roll their own rather than outsource (and of those that have, get it right).

Reading your other comments on this page, we agree on many more things than we disagree. Here we likely disagree on semantics: what's an engineer's role; what's simple vs complicated? Great to correspond again.

https://news.ycombinator.com/item?id=25078516
>Your Computer Isn't Yours

Thus saith DMCA. The battle was lost when it become possible for arbitrary things on your computer to be declared a "copyright protection" and thus to be made off-limit to you under the harsh penalty of the law. This is what created walled gardens, locked down devices, etc. and made Apple and Google probably the biggest beneficiaries of DMCA and really made them into those large monsters.
My personal experience is that posting this leads to and instant surge of downvotes
This is not accurate : although I will not deny Dutch doctors are weary of preventive testing, it depends on your doctor.

My current doctor agrees to get my blood tested quite easily ( I don't have very serious issues ). It is not expensive either. When symptoms improved, we agreed let's test again, see where we are.

My previous doctor however, was very adverse. I left him because of this.
what a fun phrase. wiktionary says canada: https://en.wiktionary.org/wiki/rhyme_off
How to properly collect and analyze user feedback
Which stack did you move to?
Says the one who made the best/most_complex open source one rather than use QPainter ;)

But really, QPainter suffers from a lot of the same issues as Cairo (and then some). The main "problem" with them is that they are CPU bound. Both of them have OpenGL backends, but they are not "really" faster. There is also the fact that the Qt Company doesn't invest in it anymore since QtQuick2 was released. Because of that, it doesn't get some of the newer Skia features. So Cairo/QPainter are pretty good at server side rendering. Qt was never popular for that use case. Cairo used to own that market, but it's usage is declining due to the maintenance inactivity issues. Also, once upon a time Cairo was used in Firefox and Chrome, so it's SVGs tend to be rendered more accurately in modern browsers than Qt ones.

Skia itself is an unsustainable library to depend on. Its API and behaviour isn't stable. Google doesn't really care about non-Google use cases, so the CMake is broken 90%+ of the time. It adds a large maintenance burden on projects trying to use it. Distributions also hate it for being impossible to package reliably. In turn, it makes hard for smaller projects to migrate away from Cairo because users have an easier time getting their hands on Cairo than Skia.

(bias disclaimer: I worked with both as a KDE dev and as the AwesomeWM co-maintainer, a Cairo based project. A lot of the recent unreleased Cairo commits originates from the AwesomeWM community, but not from me)
Show HN: VPN-ish proxy for Docker/Kubernetes networks
VPN-ish proxy that seamlessly brings clients into remote Docker/Kubernetes networks. No public IP is required. No privilege is required. The only requirement is shell accessibility (`docker exec`, `kubectl exec`).

- GitHub: https://github.com/norouter/norouter

- Document: https://norouter.io/docs/getting-started/vpn

- Screenshot (macOS connected to a remote rootless Podman CNI network): https://twitter.com/_AkihiroSuda_/status/1327118992784437248
No. Bokeh can be perfectly described with classical optics.
How would that change anything?
I'm still on Mojave, I dread upgrading to Catalina and watching the 125GB FREE disk space halve in a single installation. For the first time I am behind by 2 releases. Is Mojave the XP of MacOS installs ?
> The more parties know you have a mega-weapon, the lower the chance you'll have to use it.

But if you have to... the lower you have a chance to win, as the enemy with more than 1 gram of gray matter will do just anything to take it down before you can shoot.

Betting all of your strategy on assumption that the enemy is scared enough of you not to attack is stupidity beyond all bounds.

If you attack someone, especially if you attack somebody stronger than you, then you attack with all force available to you, and maximum ferocity.

You assume the enemy will willingly throw away his biggest chance to take away your biggest force multiplier, and the biggest chance to win?
So let’s say I’ve got step 2. figured out with vacuum decay or similar, how do I check if the list is sorted in O(1) to determine if I destroy the universe or not?

And given that the list being sorted is a one in n! chance, often enormously less likely than than hardware malfunction, wouldn’t the algorithm mostly produce malfunctions rather than sorted lists?

(Genuinely curious if I’ve got the right understanding of the CS and potential physics.)
It's hard to say who is now Apple's target audience. It seems like their products are ideal for people who don't know much about IT and just want to watch a video or edit their holiday photos and maybe create a CV and will probably never go beyond that. Other people still enjoy Macs from 2012, but things are moving on when you look at desktop PC and what you can do. Apple looks more and more dumbed down.
Lets call this user-friendly.
I'm happy GNU/Linux user for many years and I don't remember when was the last time I had to do those kind of things.

Choose a mature/stable distro and that is it. Be prepared to trade a bit of convenience for privacy in case of weird/non-free hardware/firmware.
Yes , and they are also selling Ubuntu edition where you not only save quite a few $$$ (because no windows licence) but you're also sending a signal to manufacturers that there is a demand for compatibility with other OSes (unlike on Apple or MS Surfaces).

So if the dev edition fits your need consider buying this one
As rzwitserloot commented in Reddit's Java community:

Microsoft. This release is supporting a competitor in the OS space, who is shifting away from an ally on chip hardware, who also makes consumer electronics in direct competition with your hardware division, for a programming language which is in direct competition with your preferred language.

It's been a strange but good year :-)
Apple has had support for game pads for a while now. This will just make it more viable.

The only issue might be multi-touch based games on M1
And I believe you must not have been using Windows, and are relying too much of news of incidents affecting small numbers of people.

It is - quite clearly - a gross exaggeration that "every update borks the system".

Aside from MacOS, I use Windows 10, and have done for several years. I have the Microsoft Action Pack, which means I get multiple Windows 10 Enterprise licenses - and no forced updates.
Since there's been a bit of pedantry around words in the comments I feel it's very funny that no one's mentioned that the title seems a little strange.

"A 1000"....? Shouldn't it be "a thousand" or 1000? Nobody seemed to notice
My huawei matebook pro is the best laptop I've ever owned.

The only downside is that I have Windows 10 on it, and considering Microsoft actively destorys user data and has for 15+ years as company policy...I won't use it for serious work, only entertainment. :(

User state is also a time investment, so rebooting and destorying this is not ok even if all files by some stroke of luck were saved first
I assume they were talking about supplementation at normal supplementation levels, not 10x - 100x that.

As someone pointed out below, if you drink 10x-100x the recommended amount of water, you're likely to have adverse effects (almost certainly including death at 100x) too.
No it's not, the creator of Homebrew has nowhere near the clout of Van Rossum or Thompson. I don't think it's a big enough or technically complex enough project that its author should expect to skip the standard interview procedure, whereas the creators of Python and C absolutely should.
Hi dang, i don't know where else to contact you. I see you posting comments about there being multiple comment pages. Is there anything that could be done to avoid that, like allowing more comments per page (e.g. up to 10 of the current pages?), infinite scrolling, having a more visible "more pages" button, having the button not only at the bottom but also at the top, etc. ?
Long-distance airborne dispersal of SARS-CoV-2 in Covid-19 wards
"The craft approach has survived because building software systems has been a sellers market, customers have paid what it takes because the potential benefits have been so much greater than the costs."

Gotta disagree here. SW dev has never been a seller's market in the way that eg the property market or job market can be a seller's or buyer's market. There are powerful effects in the market making that a massive simplification. Firstly platform network effects; think of the browser wars for instance. Secondly, open source: a lot can be had for "free". Thirdly, lowest bidder: John Glenn famously commented, when asked what he thought about sat on top of an Apollo rocket, "every component has been built by the lowest bidder". Fourthly, novelty: a significant amount of SW dev is about building things that haven't been built before. Which can be more like a research project than eg putting up a new apartment block, or bridge, or designing and productionising a new car.
Subsistance farming based on potatoes is not without its risks:

https://en.wikipedia.org/wiki/Great_Famine_(Ireland)
In India, I can get almost any blood test with no requirement to get a prescription. The phlebotomist will even come home to collect the blood sample. The prices are fairly reasonable and most tests will be under $20.
I see, thanks. I don't recall using any 32bit programs recently so perhaps I should give it a try
> The Pirate Bay and find 4K rips of all movies and shows I want.

What? There's almost no 4K rips for shows or movies. To me it seems it's working pretty well.
can you recommend one? all the ones i've found have horrible reviews
It shows that people from WW2 doesn't live anymore. People forget:
https://en.m.wikipedia.org/wiki/List_of_nuclear_close_calls
> broad dedication to not-ness

Ah, being the change they want to see.
Lemongrass feed additive reduces cattle methane emissions by 33%
> If people buy it then, well, they are fine with it.

I don't think people have much choice these days. If you want a smartphone then you will either get something from Apple or from Android people. There are other choices but are they mainstream? In my local shops I can't see anything else. Android or Apple.

That's why I'm buying PinePhone and going to waste lots of my life to make it fit my needs, but I hope once time is spent I will be happier human being ;)
Sorry, what, exactly, should be fixed?

If you're referring to OCSP requests / responses being unencrypted, I would be interested in hearing what your solution to this problem is.

Also, I would recommend that you do not perform any packet captures (as mentioned earlier) to observe your OCSP traffic. You're gonna have a heart attack when you realize that this isn't just an Apple thing and that nobody encrypts OCSP.

Once you understand why, I'd be interested in hearing your new, revised solution.

Finally, it's not quite as bad as sneak makes it out to be. OCSP responses are cached so, as mentioned in TFA (so certificate status is not being checked every time you launch every app), although I'm not sure what the validity interval of OCSP responses from ocsp.apple.com is (and don't have anything running macOS to check). Additionally, I don't see anyone but Apple announcing any part of the 17/8 network (regardless of ocsp.apple.com. being CNAME'd to Akamai).
Just out of curiosity, how does it go with Cloudflare Workers? Obviously, any proxying is done dynamically in your own code, with no DNS records saved with Cloudflare. What's actually counted as a "web host company" or "origin" to which claims are forwarded with Workers?
Anti-natalists going a step further
Are you not worried about your data going to China? Huawei looks indeed great, but I would never use it. Maybe if there was a way to replace components with ones from legitimate source like Mouser or digikey, to ensure there is no spying going on.
Mine resumed. My internet went down at 11.9 GB and when it came back up the download quickly finished.
You can even buy thinkpads with ubuntu out of the box now, so hard disagree.
> I don't believe for a second that they are doing it for the benefit of information sovereignty or the development of tech and software.

They're doing it because the cloud is Linux and they need to get into the cloud because Nadella's vision for the MS OS going forward is a unified system that spans PCs, phones, tablets, IoT, everything, not just a desktop OS.
> kernel panics about once a week
> Which is pretty good for Apple these days.

sad and funny feelings at the same time :)

My old macbook air (2011) is on high sierra, I'm still working on it and it's perfect!
This is exactly correct.

I've seen as nauseum posts accusing Drumpf and his cohorts of treason, for which the penalty is death, not to mention more recently scads of Twitterers gleefully posting photos of the mutilated corpse of Mussolini and expressing desire for the same to happen to the president and his "collaborators".

It's getting to the point where AOC's recent calls for lists of said collaborators be compiled for harassment and ostracization seem reasonable, as at least she's not calling for their execution.

We could have seen this coming several years ago with calls for violence against "Nazis" (and btw a Nazi is anyone who disagrees with me politically) but big tech looked the other way because they support it.

I'd expect more cogent analysis from the top intellects if HN, but apparently the stereotype is true: "It's acceptable when our side does it".
It's a software problem, not a hardware problem.
This is just an argument against a straw man. Nuclear war, is bad, any mass killing is bad, any society collapse is bad.
It means actual prolongated suffering for most humans.
Nuclear caused extinction is actually a preferable outcome, I'd rather just instantly die than live in a brutal post sociatle apocalypse.

It's like the back talk against climate warming, trying to down play it as a non extinction event. Well that's true, We're not killing the planet, we're not even causing human extinction, we're just building a really bad future for our children.

Ofcourse people born into that future would see it as the norm, but we make decision from our view point, and the norm can be terrible when taken in to context.

But I digress, my point is that the rational community seems to have a smarty pants mentality, taking all rhetoric at face value, and usually creating very serious discussions that usually just sidetrack from the important issues.
https://abcnews.go.com/Politics/biden-beat-hell-trump-high-s...

I guess it was behind the gym, not the bleachers. Regardless, he had a specific location picked out and everything! Clearly a real threat.
And those are true heroes.

It is an immense effort to make proprietary hardware to work well, specially Apple hardware.
It was "resolved" by new laws being introduced almost globally that make development, distribution etc. and potentially even possession of "circumvention devices" illegal, making it possible to do such takedown requests in most countries that provide infrastructure.
So I jumped to Linux two years ago. Since, I installed Linux Mint on five different machines, old and new ones. I just put the Live DVD. It boots. I launch the installer. End of the story. I honestly never ran into a problem. Not going back to windows anytime. Don't see what's so great about MacOs either.
I very much appreciate the urbane nature of HN, and strive to contribute in a way that brings light; not darkness.

My digital community experience harkens from the USENET days, which made the worst pissing matches on Faecesbook look like polite disagreements between scholars.

A day or two ago, someone made a real mild slap at me (I can come across as a bit tiresome, if you haven’t noticed. Take my word for it; it’s preferable to my USENET persona), using a very tired old troll technique, and someone else flagged it.

I was actually surprised it was flagged, but it does show that people take civility seriously, hereabouts.
Probably in people mind there is nothing better.
My nextDNS blocks Qwant for some reason.... anyone an idea as to why?
Fair use is a right, and if the law doesn't accurately reflect that, then the law needs to be changed.
Wow, I could have written the exact same words.

I wonder what would it be like if access to this upper echelon worked differently; if selection wasn’t based exclusively on total sacrifice and dedication.

My feeling is there is a lot of hidden potential wasted among the rank-and-file...
I've got a P51. It's essentially always on fire and the fans are really loud.

Not sure I'd recommend it.
Build quality is very good however.
I read this several times but I'm absolutely not getting your intended meaning - can you say it in a different form if it isn't too much trouble?