skysight-inc/HackerNews huggingface dataset:
I believe that classes, inheritance and OOP as the leading paradigm for two decades were the worst thing to happen to programming after NULL.

You don’t need classes at all, classes are simply a mix of several concepts that are best kept separate: Currying, namespacing, data structs and closures with a bit of syntactic sugar on top. Worst cake ever.

I code in C, Rust, Typescript and Python, and didn’t code any class in the past 5 years, because classes are never the best option. The mix of data and behavior in particular is horrendous, and made much worse by inheritance (now you don’t know which behavior is used without exploring layers of abstractions).

Inheritance was a solution to a problem caused by classes and would never have existed, had other paradigms been dominant. It caused headaches and bugs for generations of programmers (Think of the ORM problems, etc.).

Just code simple, directly serializable data structures, and functions and you’ll be much happier.
I actually curious as to why Teams uses Electron at all. Microsoft is after all telling .NET users that MAUI is the future of .NET UI API's (I'm not convinced). Teams is hardly a complex UI, I would thought this would have been a great opportunity to dogfood their own tools? ¯\_(ツ)_/¯
So your logic is, only wind and solar can improve and nuclear can never improve.
From what I’ve seen, he gets summoned, and angry when things like “Calyx pays great attention to usability, while GrapheneOS gives more focus to security at the price of usability” gets mentioned, which is just false.

Also, do note that it is indeed a dangerous business — false sense of security is the worst. And there are plenty of companies taking advantage of people wanting something “privacy-oriented”.
I think that it would be much more readable if they inverted the x and y axes...
It is a balancing act, and it changes over time.

What I considered important to review at X interval last year, is perhaps not that important this year and so I lengthen the time between reviews (simply move the link).

And at some point the content is firmly embedded and does not need regular review.
Interactive Bookshelf ESP8266 Raspberry Pi
It’s interesting how much SQL, a declarative language, requires thinking about performance. In theory, declarative languages would allow the user to think less about imperative concerns like the query plan. I’ve rewritten the same SQL query and got a 1000x speed up, looks like this author has too.
2 10.80.71.15 (10.80.71.15) 1.095 ms 10.80.70.253 (10.80.70.253) 0.919 ms 10.80.71.15 (10.80.71.15) 1.067 ms

3 138.197.249.124 (138.197.249.124) 1.365 ms 138.197.249.102 (138.197.249.102) 1.354 ms 138.197.249.100 (138.197.249.100) 1.549 ms

4 138.197.251.140 (138.197.251.140) 1.179 ms 1.168 ms 138.197.251.136 (138.197.251.136) 1.114 ms

5 * 138.197.249.217 (138.197.249.217) 1.167 ms 1.155 ms

9 vl1272.lon1-eri1-d1-a75.uk.eu (213.186.32.253) 2.594 ms be101.lon1-eri1-g2-nc5.uk.eu (91.121.215.119) 2.654 ms 2.466 ms

14 (51.89.234.11) 2.102 ms 2.091 ms 2.076 ms
Thank you so much for the detailed comment. I do agree the tool itself will likely be just another in the endless row of experiments!
> It's just that "it kills a bird" isn't a justification for banning something.

I don't know, it killing lots of things with lungs seems like a red flag to me.

Perhaps it warrants switching the assumption "Teflon good (until proved harmful)" to "Teflon bad (until proven safe)".
I like the way that this site lets you compare "pleasantness" of climates, e.g. humidity + temperature etc year round.

This makes me wonder, where in the world has the objectively "best" climate? Comfortable or warm all year round, not too humid, not too windy, lots of sun.
cdn.office.net is fully, unrestrictedly accessible.

Also, I believe those re-authentications are actually ALL the app is doing in those moments.

It's not actually loading anything, not emojis, not notifications or anything else (all of the app still works normally) - it's just re-authenticating, re-authenticating, re-authenticating, re-authenticating... in the background (eating quite a bit of CPU and bandwidth in the process).
I really liked the Chinese policy of welding people in their homes (where some starved to death) and lying to the populace about the real numbers and severity of the coronavirus.
I don’t know about not having deliverables. Aren’t the deliverables of their subordinates their deliverables as well? i.e. If things don’t go well the guy in charge eats the blame as it’s his/her job to make sure it does.
Not users, but mods of /r/bitcoin "produced enough chaos". They did that by simply deleting any dissenting post and banning all dissenting users.
> Why the coordinated action?

In politics, if you do the same as other countries, you have a lot of support to justify said action without much effort. If you do it like Sweden you are bombarded with criticism. So the easy option is to copy from your neighbor.

Especially in times when the press tends to shield their favorite candidates from accountability. You don't even need to defend yourself, others do that for you.
Structured Concurrency in Swift 5.5
Well, even if you don't use OVH you should be ready for this kind of stuff.
Interesting question I thought of reading about "safety net/services" comments from the people who worked in both the EU and the USA, i.e. those that have moved at least once.

Let's say you are from the EU.
Why wouldn't you work for a while in the US, accumulate wealth with low taxes and no social safety net (but good insurance, etc.), then when you don't want to work, move back to Europe and retire (or work much less) with the social safety net and your American wealth? ;)

Moreover, if you are not from the EU, but have an in-demand skillset, why wouldn't you make the money, and then get a gig in Europe for however long it takes to get PR (looks like it's only 4 years in Germany), to get the benefits? :)
- Wait, why do you require a high-end gaming laptop with 64GB of RAM, 8 core CPU and the latest NVIDIA graphics card? Is this for private gaming?

- No, just chatting in Teams.
Our servers in Strasburg were down for around 10 minutes, now they are fully operational but it looks like some of their sites are still experiencing issues [1]. On the positive side: it was my second day as on-call and I already had the worst incident(no ssh, provider site is down).

[1]: http://status.ovh.com/
As a someone who worked on Chromium, I think it is a gigantic pile of s̶h̶i̶t̶ complexity.
Good. A step in the right direction. Many more needed. But there are good ideas in this GitHub discussions threads... So there is hope.
> That is a lot of rationalization you had to go through for that judgement. I think it is a ridiculous excuse.

You need to be deep in denial and very disingenuous to refute the nature of /r/HermanCainAward or even /r/LeopardsAteMyFace.

You're talking about a very niche subreddit which is dedicated to posts on radical and very vocal anti-mask/anti-vax/Covid-hoax militants views who, after a long and well documented presence on social media pushing their propaganda, end up being admitted to hospital due to covid, and in some cases even dying, from the very same issue they've been actively rejecting denying and attacking all who did not.

This is the sort of militancy that gets people killed and directly contributed to worsening the effects of the pandemic, not only it's spread but also the indirect impact of having to contain new waves and having hospitals over capacity. This blend of radical anti-intellectual militancy hurts people all around.

Pointing the spotlight onto these cases, where vocal militants experience the expected consequences of their actions, provides a decisive contribution to educate the public on where exactly where the disinformation ends and reality starts.

It takes a very disingenuous and dishonest spin to try to make this about deaths or judgement.
They do have tabs in the office suite, for the toolbars. And there are those annoying settings windows where the tab rows swap places when you switch tab.
Having worked on infrastructure deployed this way, I can say this oversimplifies a bit. There's virtually never no spot capacity at all, there's no capacity at a given bid price, for a given instance type, in a given region. You can start to scale up on-demand infrastructure using spot price as a signal, before there's literally none left, and you can also run on clusters of heterogeneous instances, and change your instance type mix when one instance type's price goes up. In the worst case you can fail out of a particular region whose spot prices have gotten too high. Lots of options.
Cool! Are there any pictures available of the tin plate after the year is completed?
> Vast majority think life in SF Bay Area getting worse, want to leave, poll finds

Headline is dishonest clickbait. 56%—which is not a “vast majority”— are “considering leaving in the next 5 years”,
I'm curious how a similar tool built for airplane and helicopter crashes. What if it was due to mechanical failure, would you want the story to focus on a mechanic?
Also what is the granularity? Right now on AWS you have to pay for the full hour even if you use it for 5 minutes.

A per minute granularity can make Google's offering more enticing for a lot of users.
> expensive development time is focused

Is development time all that expensive? Compared to time spent making different designs.
No, actually, there's still no data that mask mandates work. You can simply look at case graphs for different countries, and try to figure out when mandates were added or removed. It can't be done, although introducing changes to the case curves big enough to notice was the only justification for the policy. Given the short serial interval any mandates should have made a clear and obvious impact on case numbers within days, but that never happened.

"we have to spend a year doing studies to figure out what a little back-of-the-napkin risk analysis shows"

Both risk analysis and the studies proved wrong. The real world data is the ground truth here, because that's what the policies were designed to affect.
The article is talking about direct source dependencies, not service dependencies. Services have to be backwards compatible or provide a migration period (of course, there's no real alternative). Sort of similar to your /v2/. If you as a service provider really want to support N versions of your service, you could in theory have multiple instances of your service on different versions. Sounds like an ops and usability nightmare to me though.

Clients must be rebuilt every few months so services do not have to support old clients indefinitely, so as a service provider you can rely on a reasonably well constrained migration period.
well if X10 engineers exist, and these two are them, it's like 20 engineers just left.

Or also if the project has 10 engineers, and the first is the lead who knows everything and the second one is the one who knows deeply about some real important dependency it could suck - losing 20% of your engineers on a project is bad enough, but the two most important ones comprising that 20% could derail a project.
Slightly related is the crashes[1], which collects reports of crashes in the local news. They do this because they feel that in the news cycle these are heavilly underreported (as compared to for instance a terrorist attack) and therefore they seem less as a problem (to for instance improve infrastructure to reduce the risk of crashes).

[1] https://us.thecrashes.org/
> I don't find the end result to be significant for anything other than code cleanliness/readability.

Agreed, I think. But isn't readability a very important goal? "Programs must be written for people to read, and only incidentally for machines to execute."

> I often find the decision to make class/function/object to be somewhat negligible when the purpose is as trivial as the examples provided.

Yeah I agree with that. The reason I chose trivial examples was just to make it easier to understand.
Nuclear and renewables do not mix well. If you optimize for a minimum cost grid, one or the other dominates. Mixed solution s have higher cost.
By comparison, crypto really just isn't that useful or interesting. What will humanity learn from crypto.
I think the implied assumption is that you don't spend 6 hours a day riding the bike you just bought. Though conveniently, the obesity rates are high enough that even this wouldn't require an increase in calorie intake in the top polluting countries and would in fact be an overall improvement to national health. And you'd still produce much lower emissions.

On a sidenote, >10% of conventional fuel is made via agriculture, and seemingly around 5% of electricity production in the US, 10% in EU28[1].

[1] https://www.bpb.de/nachschlagen/zahlen-und-fakten/europa/751...
Ugh. You reminded me that while OVH used to hand out a /128, if you needed more address space you had to pay more for “enterprise” IPv6 or something.
These polls and accompanying articles seem completely useless or worse

Like, what is that percentage usually?

Ok now compare that to other major cities.

How do they compare?

Ok now you might have something to talk about

Like 'homelessness is so bad here zomg and getting so much worse'

Uhhh compared to where?

Inquiring minds want to know about these paradises of socialism
So ovhcloud seems up, where's that hosted?
Kind of weird to list every program that reads an input file with higher privleges under sudo or suid. That's like almost every program, and kind of the entire point of sudo/suid.
Even though vaccinated are still transmitting and catching it? Seriously, who am I punishing.. if you want it then get it. According to your logic that is how to prevent COVID except when it isn't.
How to create a dummy text in the blindtextgenerator?
Alternative is spending 50% of your time in meetings where you have to motivate what the code you write should look like in order to avoid people spending 10% of their time writing migration code.

And it isn't like those with dependencies has no recourse, if they think one of the dependencies breaks too often they just remove the dependency and live without it. The library maintainers of course wants to avoid that so they have strong incentives to not break API's. And they can't break API's without first notifying or fixing their users either since then their code will just get rolled back, at Google it is typically much more work to break an API than for the downstream dependencies to fix those breakages.
These aren't tabs in the sense GP means, because they don't allow you to do something with multiple documents or such.

Yes, Microsoft GUIs are riddled with tabs of the other kind.
how is that meteor did not destroy her bed or at least put it all to the flame heated by the friction
Watch American Graffiti - high-school kids driving around in neat hot-rods.
When you read the article:

-It's currently €30/y for a permit and due to a change in law they're changing that to €120 for everyone.

-For anyone over 1800KG, that becomes €180/y. So "heavy car" drivers pay 1.5x what a lightweight car driver pays

-That limit is increased to 2000kg for EVs. That does mean that a early adopters who drive a Model S are likely to pay the increase tariff as well.

Sure, still not a bad idea but quite far removed from the oneliner "raising the parking fee 6x for SUVS"
If this is an unforced error that would be monumentally stupid.
Hetzner is also cheap but for some reason they don't seem to suffer from these kinds of issues.
Visual Studio (Code) have tabs as far as my hazy memory reaches back.
Brandon could use that.
LOL. OVH has turned into the laughing stock of the industry. Its a shame really, I always used to gravitate towards their offerings vs competition because I liked the fact that they have servers literally everywhere...but what good are servers everywhere when u get a major outage every few months?

Perhaps I'd tolerate the constant outages if they were actually any good at communicating. Their status page sucks. They rarely update it properly, and when they do, its hard to find the information you need and that you know relates to your servers.
They wouldn't have ratted her out, they'd parade her dead body around celebrating.
Router maintenance, no impact predicted. Many people saying that if "all servers down everywhere" is not impact, they wonder what actual impact is.

https://twitter.com/ovh_status/status/1448185498812485633
Stuff is apparently starting to come back up. Mostly still inaccessible though.
Great, now fix your terrible UI.
I’m not sure.
Once it becomes normal to WFH, coming into the office in the future might be seen like like asking for a sharp 9am start or to wear a suit and tie today.
It seems like (only?) their name servers are down. I got my website back up by avoiding to use these (it's hosted on a dedicated server at OVH). They'll probably have the same kind of issues as facebook did while trying to get things back up.
When I played hackthebox.eu I made extensive use of this :D

And that's when you realize how many websites there are out there that make simple attacks so much easier.
Yes, you're right about ImTui, removed that line. Disagree about portability. I mean, yes, you could write a shell script targeting even a single specific machine, but generally you want to assume as little as possible beyond a GNU operating system and its common utilities.
You still need to make sure that these programs are set up such that they don't accidentally allow more access than you expected them to.
Comment aside, I'd love to buy a Remarkable, but I'm not going to do so. The reason is that: "by default remarkable doesn't come with a marker". How can that even be possible? And I'm not sure if it's possible to use something else as a marker. The marker is just 59 euros. Of course I'd also like the cover, such an expensive device without a minimum protection is not a good idea. The cover costs 119 euros. That's a total of 178 euros for a device that costs 399. So that almost amounts to 45% of the cost of the device. Can anyone explain me why such a rip off? Even if I had a ton of money I wouldn't buy...
That kind of command line builder is definitely something I'd like to see. Makes it much easier to built complicated one-off commands.
Celo's Mobile Crypto Hackathon is live
Bitcoin Addiction Hospital
Quite OT, but the design language of BMW seems lost. I don’t know why the grill needs to be the most distinguishing feature on an electric car.
Next to think of the children! Until it comes time to help a child in need, or pay that once child a livable wage and ensuring housing is affordable for shelter.
Preemptible VMs are GA, Spot VMs are not; if there are changes that might be made to Spot before GA (such as other limits, etc.), this gives them the freedom to do that, without impacting those using Preemptible.
This is judging a fish on it's ability to fly. In other words, it is judging an object oriented program on its ability to resemble top-to-bottom sequential execution style programming, while ignoring that the language is commited to a different paradigm.

Some of the criticism is really superficial:

function createEmployee(firstName, lastName) {
return {
firstName: firstName,
lastName: lastName,
};
}

OO-Programs have these weird factory functions called constructors that do exactly that. To me, it makes sense that such functions should share their living space with the class that they are creating. Where else would you like to put these functions? "Utils"?

As for classes, namespaces and objects: as others have pointed out, this is an implementation detail. In Python, for example, classes are objects. Besides, classes and objects are functions (and the other way around) so it doesn't matter all that much in practice.

What buggs me more is code like this:

class SayHello {
public static void toPerson(String name) {
System.out.println("Hello " + name);
}
}

Sure, comparing it to an empty Python file which just says "print" this looks like an aweful lot of code. However if the paradim is poorly understood, it will seem to be working against you:

class Name {
public Name (string name) {
this.name = name;
}

public static void greet() {
System.out.println("Hello " + this.name);
}
}

The programming is different in that you create a declarative network of objects that then ... act. At this level, there is hardly any difference, except that the name has been introduced as a proper concept. Many people will argue that such value objects are expensive or inefficient (which they are) but if that cost hits you hard, you should be asking yourself why you picked a high level language to begin with.

Yes, in such a paradigm a place is needed where the entry point lives, but I found it fundamentally useful. Whatever you call the class it:
- Can read and encapsulate access to env variables
- It can accept commandline arguments (as main(argv[]) indicates)
- It's the place to setup and configure your (object)- dependency tree (what IoC/Dependency Injection-Containers are doing)
- Or it can be the ultimate exception handler for messages deeper in your program, e.g. where you would start your main message pump / game loop, etc.

The rest is ergonomics.
Copy Editor: A RegEx Puzzle
People who really want it will pay for it, I know a few. There isn't really any competition.
What could be the best way for status page apart from third party services? I remember one project that used IPFS as distributed status page. https://news.ycombinator.com/item?id=16273609
Well they are not French.
> No one is saying we shouldn't invest in exploring fusion.

Actually, jhallenworld's comment was saying exactly this: "We should put more resources into storage now, fusion can wait".

That's what prompted my response about horses in the first place. Analogy is apt, because first engines were wildly inefficient compared to horses, yet, if people back then would never pursue them, we would never have eventual progress. So no, while we should invest in storage, fusion CAN NOT wait.
That may be an interesting effect. People test their failover solutions if one of their provider is down when the provider is not actually down. But when it is actually down, everyone else is executing their failover plan at the same time, and compete for other clouds resources.
"Astronomers have discovered unusual signals..."

There are lots of 'unusual' radio waves in the universe; astronomers discover them almost daily. May of them are variable. But there's that word 'signal' again. Crap science journalism likes to play on the connotations, the suggestion of purpose, of meaning. Dictionary says: "An indicator, such as a gesture or colored light, that serves as a means of communication."

"the astronomers tried to find the object in visual light. They found nothing." Fairly usual for radio objects. That's why they were missed until Reber came along.

An interesting anomaly, I get that. Rouses the curiosity. Just stop with the 'signal' please, until it fits the case.
So, probably a very naive question here, but how his the "continuity" across pre-emptions working?

Say I am running a long batch process on one of these spot VMs and I get pre-empted ...

Does my job restart where it was stopped automatically and everything is transparent save how long the job takes to complete, or do I have do to checkpointing myself and deal with the fact that my jobs may be killed at anytime?

Also, if the restarts are indeed transparent to my job, what of stateful network connections?

Finally, what kind of guarantee do I have that my job will ever complete if pre-emption can happen at an arbitrary frequency for arbitrarily long?
Sand can be used as a surprisingly effect store for electrical energy (round trip efficiency > 50%).

https://arpa-e.energy.gov/sites/default/files/2021-03/07%20D...

I am particularly taken by the fluidized bed heat exchanger. What an neat concept, and so compact.
Drone delivers lungs for transplant to Toronto hospital in world first
That part is very easy to implement without all the extra cruft that a blockchain also brings with it. Git manages to do that same thing without burning a ton of coal every time you make a commit.