skysight-inc/HackerNews huggingface dataset:
I agree that both exceptions and error values (aka result types) have their place. I would say that error values are good for when a caller should explicitly handle that case, and that exceptions are good for errors that a caller should not be expected to handle explicitly. A lot of times this breaks down as meaningful application errors vs operational or programming errors. I am struggling to find the right words for this, so I can give an example:

Let's say we have a function used to register a new user account on a site like HN.

An error value would be appropriate to return when the username is already taken, so that we can express to the caller that this is a possibility that must be handled. Most likely the caller would want to tell the user. A maintainer doesn't really care when this occurs, since it's part of the application's healthy behaviour.

An exception would be appropriate if the database is unavailable. The caller would not be expected to tell this to the user, nor is there any logical way for the caller to react to this situation specifically. In this example of a web app, the best course of action is likely returning a generic "unexpected error" message and/or a HTTP 500. The caller can typically let the exception propagate to the web layer's top level exception handler where it will be logged. As a maintainer of the system, a stacktrace is valuable for pinpointing the problem with the code path that lead to it.

(Checked exceptions, where available, blur these lines a bit)

---

In the Java world... (stop reading if you don't care about Java) ...it has been increasingly common to see types like Result<T,E> used for error values. Recently, there have also been additions to the language that make errors-as-values more practical. Sealed classes (a preview feature in Java 16, and a full feature in the soon-to-be-release Java 17) are basically an implementation of product types (with a characteristically verbose Java-ey syntax) that could be used to implement results. Returning to our example with this:

sealed interface RegistrationResult {
record Registered(Account newAccount) implements RegistrationResult { }
record UsernameTaken() implements RegistrationResult { }
...
}

https://openjdk.java.net/jeps/409

beyond Java 17, you will be able to pattern-match over these with exhaustiveness enforced by the compiler. It will look something like:

switch(registrationResult) {
case Registered(Account newAccount) -> ...;
case UserNameTaken() -> ... ;
...
}

https://openjdk.java.net/jeps/405
>He's still a 5-year old though, so removing TV alone won't help with that, you still got to parent / occupy him most of the time

Right. There's nothing quite as engaging as tv/gaming that he can just sit without guidance and safely do by himself for a few hours at a time while his parents are busy working. Probably comes down to lazy parenting.
As a kid I got into Eve Online (an MMO) and started to learn to program front end by creating Eve related websites for in-game currency (yes the TOS allows it). My code got forked and I still see it being used.

With the right game there is so much opportunity for growth in transferrable skills. It would have been hard to motivate myself to learn about databases, creating backend services, using SSO for login, rate limits when you're trying to scrape mass amounts of data, validating inputs to guard against bad actors, reading api docs, etc all to help make more in-game currency by exploiting inefficiencies in the world market to make profits from trading or creating internal tools. I learned about chain of command, opsec, and dealing with HR within my "guild."

Minecraft also helped to that regard with creating mods & server plugins for friends.

Sadly I think these opportunities are decreasing with the shift to mobile gaming. How are you supposed to mod a mobile game? How are you supposed to open the game's jar file and overwrite some files when you can't modify the download from the iOS store? How are you supposed to play with spreadsheets on an ipad?

I can see how my unhealthy 8-9hr/day addiction during my teens could have turned out terrible if I was born in this current generation. Thankfully it built a good foundation for a career.

I don't get kids these days with being able to play mindless mobile games. The closest thing to a game I have on my phone to a game is AnkiDroid (spaced repetition notecard software).
> Piano is good to show that you are fit and attract a mate, it isn't good to make friends. And therefore piano is seen as a noble hobby while gaming is seen as a waste of time.

I met two young women once who played Soul Calibur obsessively. I visited their house once and they asked if I wanted to play and I beat them both with my Voldo. They could not win a single round. So they spent a couple weeks really trying hard, reading Shoryuken forums, watching top tier players, really doing their best to really show me up. Then they invited me back again, and I promptly handed their asses to them a second time. Then I impregnated the hotter one.

Women in the tail end of millennials and zoomers do play video games in fair numbers. I'm an early millennial (born in 85) and it was not a cool thing to be be good at games when I was in high school, but it is now. Streamers have done wonders on this. Exhibiting competence and dominance in gaming can be a positive mating strategy, I got some wonderful children as proof.
> The GPL also has issues in Taiwan, apparently because it's illegal there to enforce its constraints on anything but the first user / immediate level.

NEW! License restriction free Linux source code for only $ 9.95 ! Only used once! ORDER NOW!
Yes, the NPR piece [1] mentions that as well, that all cows eat lots of grass, and so-called grass fed beef really means grass-finished beef.

[1]: https://www.npr.org/sections/thesalt/2019/08/13/746576239/is...
>It's annoying for sure but a smart editor could simply offer you all possible columns in the current context

I'm using databases with >500 of tables

I guess it's not that trivial
There is no difference really, becoming level 121 isn't a difficulty goal and doesn't matter but getting into masters league in Starcraft or similar will impress a ton of people since it is really hard. Similarly nobody will care about you spending a year learning Piano if can't play anything decent afterwards. And most people who practice instruments don't learn how to play well so their efforts were in vain, and unlike the level 121 mage they didn't even have fun doing it.
Probably numbers from countries with high vaccination rates (Israel) that continue to be inundated with new cases[1]

It's pretty clear the the vaccine does not stop transmission of the virus.

[1] - https://www.npr.org/sections/goatsandsoda/2021/08/20/1029628...
Why bother with a key?

> To lock all doors, with the driver door closed, press and hold 7•8 and 9•0 at the same time. You do not need to enter the keypad code first.

https://www.ford.com/support/how-tos/keys-and-locks/securico...
> Why should the government control how I manage my time?

It doesn't. Unless you're under 18.

> As a case in point

Age aside - as this law is worded, Discord wouldn't be restricted, offline games wouldn't be restricted, non-gameplay-as-a-service online gaming like voice-chat DND or P2P fightcade matches wouldn't be restricted, other forms of media aren't restricted, and you still have 3 hrs/week for the restricted subset if you must. I don't see why your stated benefits require a majority of your time to be spent on a gameplay-as-a-service game, so I don't see anything constructive in your life that would be prevented by this law in particular.

And it's this law in particular that positivity is being expressed for. In light of the recent (read: ongoing over the past decade+) design trends of gameplay-as-a-service games in East Asia regions, which something like Splitgate doesn't fit the profile for.
I'm using the same technique. Taking MRs from Junior Devs together with the Ticket description, reducing the scope a bit and sprinkling different errors or incomplete implementations here and there.

In the interview, I'm checking of problems that the applicant notices and see how he approaches the problem.

So far I've been satisfied with all hired who passed that test. And they liked not having to solve stupid whiteboard problems.
Well done! I've been seeing your project around Twitter and IndieHackers lately. Very smart to cross-link it over. Even if is doesn't cause conversions now, it might be the seed to a few later.
> The biggest challenge in climate change (for example) is that it's simply happening on too long a timescale for the average person to pay much attention to it.

I disagree. This may be a problem, but I think the bigger problem is one that was described in a post on HN a few weeks back. Namely, that most of the folks advocating for action and sacrifice on climate change are themselves unwilling to lead by example, e.g. stop using air travel, give up or very sharply reduce automobile usage, etc.

This leads a lot of people to either 1) Write the whole thing off as some BS cooked up by elites or; 2) conclude that no one, including those who claim to care most about the issue is actually going to do anything about the problem.

You can't have Congressmen and Senators calling climate change an "existential threat" while they're hopping on a commercial airliner every week to fly back home from DC. While these folks may be correct in their assessment of climate change, their own behavior completely destroys any credibility they may have had on the issue.
This is incredible. And although I can't condone unauthorized entry to any system or network. At least this was (on the surface) for a nobel cause. I don't think it will have any impact though, maybe the usual "we condemned these actions" with no action after.

If I remember Iran has in the past enacted some complete external lockdowns of the internet. I wouldn't be surprised to see more of that. Sadly.
I got into software from a similar background. You can get pretty solid CS basics very quickly if you go through a book like Cracking the Coding Interview and do a few leetcode problems. It will also probably dramatically improve your experience writing code.
One game that improves problem solving skills is Space Engineers.
I've been using Firefox Containers for over half a year now (I use it with the Temporary Containers[1] extension). For most parts, it's working great.

However, whenever I encounter pop-up sign-in pages, such as for older websites and some Firefox extensions, the resulting user session cannot be accessed by the original page or extension. This is even if I open the pop-up with the same container, or with the 'No container' option.

[1] https://addons.mozilla.org/en-US/firefox/addon/temporary-con...
Because you don't have to kill the animal to get it?
I'm skeptical of that Ronald French story.

Wikipedia, and all the journalists recently covering the story, take all his assertions at face value and don't seem to question whether it's a simple spotlight-seeking tall tale.

It seems like he told his story after everyone who could corroborate or disprove it was already dead.
> Just because an authoritarian government made a decision doesn’t necessarily mean the decision was authoritarian.

True.

> In the U.S., it’s somehow become popular opinion that the government shouldn’t do anything.

Amongst some people and some topics. Liberals don't think the government should do anything about heroin needles and homeless people, and conservatives don't think the government should do anything about gay conversion camps (arbitrary examples). This is the core of how democracy works. What you're seeing here actually is a breakdown in homogeneity when you have 300+ million people trying to make decisions when they have different values.

> Without the ability to make coordinated decisions, the U.S. has predictably fallen behind on a wide variety of metrics (income equality, health care, education, mass transit, etc.)

Which depends again on factors such as demographics, etc. and is largely a function of the lack of homogeneity. Not to mention all sorts of compelling arguments. Like we have people who won't take a vaccine, but we were also one of the first countries to roll out mass vaccinations. It's not simple.

> You should reflect on why you view a government making a decision for the health of its citizens as a bad thing.

I think many people do reflect on that. It's a precarious balance of liberty, management of a nation state, and many other things. I don't think it's wise to try and over-simplify these things into "well the government just wants you to be healthy". Ok. Let's ban all junk food, alcohol, cars, high-end restaurants, skydiving, and make everybody walk 10,000 steps/day or else they go to jail. I mean, why would you view the government making a decision for the health of its citizens as a bad thing?
My comment was in response of the OP’s “an inherited fortune of a lost hindu prince”.

I was making the point that the British gov also used the resources of a Hindu country.
I don't know about you, but most of the things in the article shape my real world: XR blocks my street, Exxon pollutes my air, cyberpunk shapes the aesthetic of art around me, corporate advertisements determine what is consumed by people I meet with. How is it online? And even if it were online, why do you treat as less real? Now most of the societal interactions happen online
That's not that unusual. If you have a contract written in something other than English and it ended up in a US court, the court would probably look at this translation and essentially be like, well, even though it says that it was translated by a non-party to this case and there's no reason to believe it's intentionally mistranslated, so good enough. Especially if the parties to the dispute didn't have any objections.
> If a 4 year CS degree isn't enough

If it's not enough for an employer, it's because that employer devalues what's taught in most CS programs. Granted, there's a significant mismatch between CS degree work and real world work, but that's true in lots of engineering. Ask any engineer in whatever subfield how much time they spend solving differential equations. I mean, great that I learned how to balance a binary tree and write a heapsort in my DS&A class, but have I ever needed to do that at work? Other than to pass some stupid coding interview?
One could solve the problem further and more conveniently by doing the bubble up implicitly at every call and just re-invent exceptions.
Naturally, most of the comments here are expressing dissent to yours, simply because there is more to be said on that perspective.

Most of the people who agree with you simply upvote your comment and move on.
Obligatory Disco Elysium mention, but it still proves your point, because it is considered so unusual by today's standards.
If you believe this then surely you'd want less government since you can't leave these people to their own accord and also making decisions.
I gave up on it after the free trial. The search extremely shitty for anything except popular Western music, and oh the recommendations! You like some Shiv Kumar Sharma? How about also trying $random_hiphop_dude?

YT Music has its flaws, but there is simply nothing that comes close to music discovery there.
Lots of others ITT are expressing the same view, and I understand the logic behind it.

Alcohol is an addictive, psychoactive, carcinogen. The difference between drugs and “online game time” is pretty stark from my perspective.

The essence of your argument seems to be: “we already give up some control for other health-related regulations and online game time is no different.”

I have to admit, drawing the exact line is difficult and I’m unable to create a clear definition of government overreach. This specific example is obvious to me, but clearly some people disagree.

Where do you think the line should be? Would you be okay with CCP mandated exercise, sleep time, or diet? Do you believe there should be a line at all?

Not trying to be adversarial here, I am genuinely curious.
I fail to see removing one from eSport scene damages the productivity of a country, if not increase it.

eSports are pretty much a negative to the country as a whole. Gaming company use it as ad and sell the illusion to make big bucks. Yes, you could have the next Faker in your country. So what? for every international pro you create there's 100s more kids wasted their youth on a pipe dream where their time could be used to more productive matter. The damage could be justified IF you are the game dev/publisher so your country could benefit from all the royalties, but this is not the case for many of the countries(of course in China this is a mixed case where Tencent holds 100% of Riot).

This is actually a problem in Korea that they have many failed eSport candidate that have no proper skill to live in a very competitive job market. Although Parasite(2019) is a bit exaggerated but not getting in prestigious school/company(Samsung) will likely to put you in a very miserable economy situations.
How to Generate Secure License Keys in 2021
How about Soft Landing expectation?

Neither optimistic nor pessimistic, there will be a lot of issues in many countries, a lot of people will have to live with worse life quality (as they already do since 1970s in many places), but the life will generally go on as usual. Expect a rebound in 2nd half of XXI century.

Collapse will not likely happen, but even if it did, there's the experience of collapse of USSR which offers a lot of insights. The chief of which, humans can take a lot of beating before they actually start to die.
RE: this section
"If you recognize (recognize – you don’t even need to be able to define) one of those words, you’re early to crypto"

This does resonate, as we have seen huge growth and continual adoption (even by what wall street would call Dumb Money") over the past several years, while otherwise tech-savvy non-olds sit on the sidelines. Myself included.

I've been making an effort to educate myself recently and keep up with crypto trends, because it really does feel that this is a key innovation of this century. Maybe it's irrational, but I feel like if I opt out of this in my late 20s/early 30s, then I'll be our generational equivalent of the Boomer who never bothered to master Excel basics at [insert bank here].
So the only possible thing that can be legislated is a foster system?!

Even the US already does far more than that, like making alcohol illegal for minors.
People have been making a lot of prediction about China, such that market economy would lead to more political openness or a middle class would demand more political freedom - all good guess but turn out wrong.

I think we're bad at prediction - so why not let them experiment and see how it turns out 50 years later.
Show HN: A Pythagorean Mosaic
> However, even if information is shared in good faith and not for the purpose of deceiving or misleading others, the spread of misinformation is nevertheless highly problematic.

Just go ahead and say "heresy". We already have perfectly cromulent vocabulary available for these debates, no need to invent new.
https://en.wikipedia.org/wiki/Legal_drinking_age

I mean, yes, "other countries" don't have age limits, but it's pretty rare and it's overwhelmingly not what you'd call successful or stable countries.
I'm surprised Tesla (or similar data collection fleets, like Google Street View) isn't measuring this and offering it to road authorities as a dataset. They have 1 million+ vehicles traversing roads daily, and they're already collecting labeled data (10 second video clips) for Dojo. Lane markings directly impact quality of driving assistance experience, so vehicle manufacturers have a vested interested in high quality road/lane markings.
Artemis (on which this is based, if loosely) is most fun when you have hardware built to simulate the environment of a bridge.

Recently, the most involved bridge setup for Artemis I've ever seen - present at Convergence and other geek conventions in the Midwest - was given up for adoption, owing to its enormous size and the owner's desire to reclaim garage space.

Truly huge, since it was room-sized. I would have liked to take it but I don't have the space.
How would that work ? Croatia is a EU member.
The US and France are signatories to a good stack of copyright related treaties:

http://www.copyright.gov/circs/circ38a.pdf

You'd have to dig to find the details of the agreements and what they mean for GPL'd software, but it's not as simple as "France is not part of the USA". I'd be surprised if the authors of the GPL didn't take the differences into account. They aren't fools.
After Preston gave notice, he received a checklist from his manager that explicitly said: “Do not wipe or factory reset any Apple owned units (such as laptops, Mac, ipads, and iPhones).”

...or what? Apple's going to sue a former employee because they did what they've always done when leaving a company: oopsie, you don't wipe machines here before giving them back? We did at the last two companies I worked at; really sorry about that. ¯\_(ツ)_/¯
yes, based on the current primephonic one. apple can't make a good music app if its life depended on it.
Conference call
Yes, that is what it says. Not "cannot be used in court". Just that they consider the English version authoritative.

Are you trying to tell me you can't tell the difference between these statements?
The key piece of info was that the Germans had details of a few plans, some of which were engineered to appeal to what the Germans wanted to hear. The Normandy landing in many ways was a dumb place to land.

The allies also had the benefit of experience in the Pacific. They knew that once you had a beachhead, victory was a matter of stuffing enough troops over the line and slogging through attrition. There were more American replacements than Germans.
the best version of me has definitely absolutely created a wing-in-ground / wing-in-sea effect flying boat. mines more a personal craft, & can transform somehow between efficient sleek transmit mode (3~5 people packed in like sardines), and casual party boat mode.
This is security theatre to placate the masses. Delta is already in every country. Vaccinated incoming travellers with recent tests showing negative results would have a negligible impact on total Delta infections.

Moreover, Delta is not a significant threat in countries where at-risk populations have been mostly vaccinated, which describes the US and most European countries. Infections != deaths.
> "Senior Full Stack"

Also why companies will hire someone with 3 years of experience into a senior position.
Variant strains are going to happen regardless of what we do, just like with the flu. This is an invalid argument that people keep using in ignorance. It's like people honestly believe the world was going to achieve 100% vaccination rate.
Drinking age in China exist only on paper, and it doesn't exist for most people. If you call the police in China for drinkning age violation, they would probably think you are insane. Hardly can be said in the US.
> This is a such a classic HN comment:

Thanks!

> The answer to your decentralized chess is that no one would care if it broke the rules or not unless millions of people were hopelessly addicted to it and it warranted a second look.

Ok, so you'd have a online gaming vacuum for all <18 gamer kids of China. Don't you think someone would make a game or two run over IRC (or SMTP some other protocol) if it meant capturing that entire market? Then it would be millions; and then perhaps authorities would care, and then perhaps herpaps an IRC server could* be "an online gaming platform", which would be interesting and peculiar legally, is what I'm saying.

(What really distinguishes / categorizes something as a game network protocol as distinct from written human language, legally..?)
And then they might read the article