skysight-inc/HackerNews huggingface dataset:
Correct. The “try-catch-log” example from the article is so trivial that it can be used to support any argument really.
1. Rocket surgery is hard.

2. Going through several of the Apollo mission reports and accounts, it's clear that there were numerous additional instances in which missions could have been aborted or lost, above and beyond the Apollo 1 ground fire of the command module (three astronauts, Chafee, Grissom, and White, lost), and Apollo 13 (oxygen explosion in space, lunar landing scrubbed, no loss of life).

Apollo 11 saw a loss of landing computer and low fuel as the lunar module touched down. I believe it was Apollo 12 that was struck by lightning during ascent, and several other close calls.

For space flight to work, virtually everything has to go right. Not only is the domain tremendously complex, but tolerances are low.

On a related, unmanned mission note, the success (so far) of the James Webb launch and deployment is an impressive demonstration of technical execution and excellence.
Its all the rage to be critical of Google right now, easy upvotes for the idiots who dont read articles or understand the real world.

People who take the time to comment tend to exhibit (a little) more critical thinking skills
This is a perfect synopsis of why public transit in DC is so hard. Thanks for making my point.

DC, again, doesn't have the tax base one would otherwise expect, for reasons outside its control. The people who control the money that would otherwise be paid to DC do not represent DC. They represent Virginia and Maryland, and also New York and California and Alaska. New York and California and Alaska voters don't particularly want the money to go to DC. They don't see DC as an actual city where real people live, they see it only as the resented center of a distant federal government, only populated by politicians and jackets.

The fact that over a million "regular" people live in DC never enters the equation.

Meanwhile there's nobody in a position of authority representing DC. So those "real people" DC residents don't get a say.
IMO Maintainable code relies on 2 things: Readbility and Documentation.

How these are achieved is the matter of entire libraries worth of books, and everyone has a different opinion. Style guides are nice, but it is perfectly possible to follow every single rule in a style guide, and still write unmaintainable spaghetti-code, because readbility goes beyond what code and comments look like.

It is easily as (if not more) important, how code is organised. I suggest watching https://www.youtube.com/watch?v=5ZKvwuZSiyc for a good example.

So unfortunately, I do not know a simple answer to your question, I can only tell you what worked for me so far:

1. Try the simple solution first

2. Beware of premature optimization and do not optimize until performance was measured

3. Write Documentation while/before the implementation. At the very least keep a "dev-diary" outlining the code in broad strokes.

4. Beware of premature imposition of structure. Build a few parts that fit together, and impose structure (modules, classes) when it becomes apparent that they are justified.

5. Name things well. Not every variable needs to be `ThingOfThingAggragatorWallabaloogaMessengerFactory", and neither should there be a global named `f_zT`. If it has local scope and is obvious from context, single-letter names are okay.

6. It matters less what style is used, as long as it is used consistently (usually within a team)

7. Avoid tiny dependencies. I don't need a library for something I can write at 3AM with no coffee in my system (left-pad anyone?)

Those are some of the rules I try to adhere to. Not all of them will work in every scenario, none of them are set in stone. As outlined above, maintainability in code is a tricky and unsolved topic.
Oh i see you are logging exceptions caught in try/catch blocks... easy, remove the logging then just refactor that code to not have any exceptions by accounting for every possible situation. Then in 2 years when you are done, you can proceed to the other try/catch block.
You make it sound like none of these things exist. Sveltekit is part of the NodeJS ecosystem, and there are mature libraries that do many of those things.

The only thing is that Sveltekit isn't force feeding any particular library down your throat. When I moved over from Express, I pretty much just continued using the libraries I was already using.

If you look at how a lot of people actually use Sveltekit, it seems like they're outsourcing a lot of things like data storage and authentication to third party services. What benefit is provided to those users by baking in functions they don't need?
"intentional delay resulting in a failure" is very different than "intentionally failing". The DoD's hesitancy to touch civilian politics with a 10 foot pole is, IMO, one of the very best things about American government. The capitol police need to be empowered to handle these types of situations themselves.
> presumably this will be a paid position

I really wish it had "unpaid internship - with a chance to progress to full time role for impressive candidates" (with free haircuts as a perk?)

Is it the The worst IT manager role I have ever seen if the pay is 7 figures? Is it the The worst IT manager role I have ever seen if the pay is 5 figures? Beauty is in the eye of the paycheque.
Any company that runs down worker resources by running them out of spec is not sustainable and indicative of a lack of mature management. You wouldn't run your physical machinery outside of its operating area, so don't do it to your workforce. Automate. Fabs are the knife edge of technology, literally building the components that go into all other forms of automation, yet they are reliant on primate and medieval era organizational structures and processes?
I'm curious. The main thing he's pitching seems to be logging in with Metamask or similar with I guess the 'username' equivalent being a public key and you verify it with a private key. This tech has been around a while, since 2017 at least. I still have Metamask and keys in my browser from speculating on tokens back in the day.

Do any mainstream sites let you log in that way? Any plans for Metamask login on HN?
Well, yes, and for the USA is likely different but for some EU countries the CO2 embedded in imports from China is now larger than their own CO2 production, so that's not something that can be neglected...
Only a solar powered kind of crypto would promote green energy. But that kind crypto is not technically possible.
New American Interfaces (2019)
A placebo is frequently better than nothing and sometimes better than the real thing. I can even work if you know that it's a placebo !

Also placebo are getting stronger https://drdavidhamilton.com/the-placebo-effect-is-getting-st... ;)
Consider a parent -> child relation. You have an array `parents`, but want all their children.

parents.flatMap(parent => parent.children)
> I think it's the point that trusted computing is optional. If you don't want to provide that trust by running W11 with the appropriate chain of cryptographic assurances, you're not going to be able to experience services and products that require it

So, it's important that it's optional, so everybody will do their best to make it mandatory.

> why should Netflix give you a full 4k stream when you've chosen to disable the widevine extension in your browser? They can't tell their media provider "we try our best to prevent piracy" if they do that. The same goes for things like Valorant and the inevitable age where online games require TPM attestation - if someone runs their computer in an untrusted state that makes it nigh impossible for the anti-cheat to figure out they're running aimbot/wallhacks (or other cheats that do best by reading the process's memory), why should they let that computer play, when it could ruin the experience for other players?

Ah yes, of course; just like, in the name of preventing anything that they possibly could, it's totally reasonable for them to demand that you leave your webcam on and stream a screen share and the webcam to their servers at all times, since that will make it extremely difficult to cheat. Privacy and security concerns are irrelevant, since after all they have to do their very best possible job, right?
Interesting question. Quite complex. IMHO there is no clear right or wrong here.
Thanks, and cheers from the Blue Ridge Mountains. I'll save you some white duck tacos.
It is really common for any company that wants to maintain certain levels of compliance that they get a security audit. There are generally two paths forward for anything that is found, fix it... Or the terrifying path that is more commonly chosen "add it to the risk register". Company risk registers are signed off on by the boards, or more commonly an appointee of the board that is acting on their behalf. The risk register itself is almost never available outside the company except in some cases to major shareholders, or large business partners that make access to it a condition of a large deal.

I suspect what happened here is they were told of the issues and added them to their risk register them promptly forgot about them. By doing so they accepted the liability if those risks ever became realized which would open them up to a lawsuit like this.
> I'm not a parent

This is clear. Predictable daily schedules are quite reassuring for kids. Supply chain disruptions and politics are not even on their radar.
Amazom(dot)com redirects to our website. We don't own the domain
This is very strange, and we've reached out to them about it, but have yet to hear back
I'm excited to hear you're looking into this and take it serious. I think this is a great opportunity to for the Tauri community to become a more welcoming and inclusive place. Happy to help!
(2020). Not this article again. Observability is crucial in reducing time-to-resolution in incidents. I would much rather have to debug a chatty system than one which says nothing yet fails monitoring checks.
I suspect that many of the reviewers were running 21.04 as opposed to 21.10 which has been acknowledged still has support issues.
> Overlogging is just as bad.

It really is not: you can trim overlogging, you can't add missing logs.

Now one thing I am very much in favor of, but which I didn't see anywhere in TFA, is the ability to dynamically instrument instances (add or remove log points).

It's not necessarily easy to know what to log or not to log. With "normal" logging adding new log points is a complicated process (they're static so you have to introduce them, ensure they're correct, and then go through whatever deployment process you have), so there's a natural tendency to overlog because if you underlog you may miss critical information.

In systems where the capability exists, instrumenting log points "from the outside" without having to update the program being observed is much better, not only does it let you refine your logging more easily, it also lets you brutally increase logging density (possibly locally) without downtime.
Yep and in Japanese culture, tipping is considered rude. In Taiwan, it is rude to not offer to pay first after a lengthy meal with friends or family and tipping is not commonly observed. In the US, some Chinese restaurants will force you to tip with threats of violence (my personal experience while dining with family in a Chinatown restaurant, in lower Manhattan.)

- Japanese culture's do's and don'ts: https://www.youtube.com/watch?v=c4rLtlx7o1Y
The speakers are replaceable (and therefore upgradeable), but like a sibling comment noted, most of the magic in speakers in portable consumer electronics products comes down to DSPs and smart amps. We started with a CODEC that had built in smart amp and DSP functionality, but weren't able to get the necessary support from the supplier to enable it. It ended up not mattering anyway, because we had to switch to a different CODEC without that functionality due to the global silicon crunch.

This is absolutely something we want to improve in the future. We're actively investigating other audio parts we can use that have better capability, but equally importantly, supply availability and software support.
I do, because your program isn't the only thing running on my system. Low free RAM means paging, and generalized slowdowns when something else RAM-hungry, like a game or a web browser, is invoked.

Memory is a limited resource to be used judiciously, not an all-you-can-eat buffet.
This is true with identifiers which are already random, but unless you’re doing something like keyed hashing, a naive implementation of say SHA256(predictable_id) isn’t going to solve this problem against a determined attacker, but I’d like to learn a bit more about what you’re discussing here.
This looks interesting, but I don't think I can legally use it for my use case if I'm running it on Linux? (Small VPN shared with a few friends - right now we use Tinc, which is nice but a bit of a pain to configure.) It looks like I'd have to provide Linux under the terms of the SSPL if I let anyone besides myself connect to a VPN running this, which I obviously can't do because it's GPL.

I'm not expecting that I'd actually get into trouble for running a small network with my friends, but I prefer not violating software licenses. :)
Is there a leetcode test?
Let's say I have a list of friend objects:

myFriends: { name: string, friends: friend[] }[]

If I wanted to get a list of friends of friends, I could do something like

myFriends.map(prop('friends')).flatten()

Or

myFriends.flatMap(prop('friends'))

My data is a list of lists but I really want a list of friends so I flatten.

Maybe the Friend object is poorly created/designed but often times you'll just have to deal with whatever the API gives you.
Schnorr Basics
Yes and besides this mentioned M1 problem, it's been really great to use. I think Tauri has a lot of potential!
This is inane. Logging has been a thing since the stone ages of software engineering. The first thing you do in any environment is set up a debug log of some kind. You can make as many error states unreachable as you can, but what the hell do you do when there's an error anyway? Psychically debug the process?

edit: how are you going to communicate information as to why something crashed to your colleagues who do not understand certain parts of the system as well as you? A stack trace is not effective at expressing intent. Explaining yourself in logs helps people triage more efficiently.
Companies move to subscriptions because it’s more lucrative to them, not because customers prefer it.
So 24 patients reported relief of symtoms.
It would occur to me that a placebo effect could account for this.
A study with a control group would hold greater validity in my mind.
This seems purely anecdoctal despite academic styling.
What you wrote confirms what I thought, sorry. You seem incredibly bitter, and I'm also sorry that you feel that way. If software isn't for you, it isn't for you. I come from an era when I was considered a weird nerd because I understood and liked "programming". The idea that everyone should like it is bizarre and foreign to me.

There is worthwhile software, and I have written some. But worth it is in the eye of the creator, and so I maybe I find worth where you don't.

What is the "easiest" discipline is a nonsensical question to me.
To put that into scale, here's some quotes from TSMC's Wikipedia article[0]:

> In November 2020 officials in Phoenix, Arizona in the United States approved TSMC's plan to build a $12 billion chip plant in the city. [...] In 2021, news reports claimed that the facility may be tripled to roughly a $35 billion investment with six factories.

> In November 2021, TSMC and Sony announced that TSMC would be establishing a new subsidiary named Japan Advanced Semiconductor Manufacturing (JASM) in Kumamoto, Japan. [...]. The initial investment will be approximately $7 billion with Sony investing approximately $500 million for a less than 20% stake.

When you're committing to $42B of investments, $28.4B doesn't seem like all that much to have on hand.

https://en.wikipedia.org/wiki/TSMC
IME the challenge is that all leet code problems seem easy once you know the answer, in particular because the code itself is often very simple. And so many of the interviewers claiming a candidate cannot do "easy" problems are off-base. This usually stems from not knowing the history of the underlying data structure or algorithm. Interviewers take for granted the things they know, especially once they've asked similar questions a few times.

IMHO I believe the right approach is to either ask from a standard bucket of questions that require preparation and advertise which ones to candidates, or not ask them at all. Asking "only a few really easy ones" is becoming a red flag to me.
Anyone who participated in IOi/ACM ICPC can crack them easily
It is indeed, by my own subjective observation.

But that doesn't mean it's the fault of the engineers - and most likely it isn't.

Rather, the product people (who are also not dummies) basically realized that "dumber" results were more profitable, for various reasons -- most likely to do with "engagement" and prioritizing what 90 percent of the users will versus the needs of the other 10 percent.
Do any of these platforms provide SDKs for integration / other access to their 3D maps? I needed it for a project and couldn't find any.
all that says is: Google have the money and power to buy people out. Thats business 101, nothing new. Yeah it sucks but if you don't agree with it stop using google and apple products.
Impressive, I am new to coding, but I will definitely test this on a digital ocean server today, and take it for a spin.
Wrote a brief summary of the ongoing incident here - https://dev.to/tevko/what-happens-when-amazon-accidentally-s...
I didn't read that comment in relation to TSMC, but as a rebuttal to the GP's assertion that it was "people" who drove US production over seas over the past 40 years.
I don't consider what he said gatekeeping, they were valid questions IMO.
I wonder if finally someone (Russian/China?) convinces him to go down and retire? After all he has been there for three decades, and maybe the other countries are not exactly happy about his way.
If you can't imagine how the induction of a new state is an overtly complex task then I'm not sure how reasonable of a discussion we can have. I don't have a strong opinion one way or another primarily because my field of expertise lies outside of politics, sociology, and economics. On the surface yeah, I'm 100% for taxation with proper representation. I'm not well educated enough on the issue to know what 2nd and 3rd order effects it may have though
Who cares how much faster you can do it now? What happened with the professor?
Running your own PKI is fairly straightforward, particularly with tools like cfssl at your disposal.

But running your own PKI properly is quite hard.

Let's Encrypt gives you top tier PKI management for $0.
Obviously the medical community is aware of this.

Take for example the very recent approval of Molnupiravir:

https://www.bbc.co.uk/news/health-59163899

https://www.nejm.org/doi/full/10.1056/NEJMoa2116044

We conducted a phase 3, double-blind, randomized, placebo-controlled trial to evaluate the efficacy and safety of treatment with molnupiravir started within 5 days after the onset of signs or symptoms in nonhospitalized, unvaccinated adults with mild-to-moderate, laboratory-confirmed Covid-19 and at least one risk factor for severe Covid-19 illness.
>There was no such thing as just writing f(a,b) to call a function. You had to use something called "$@" or whatever

Just so it's clear, you do call a function in that way... some_function($a,$b).

It's how the function gets a hold of those arguments that you're talking about..the args are in an array called @_, like:

sub some_function {
($first_arg,$second_arg)=@_;
}

And, like most things in Perl, there's lots of different ways to deal with it. Using shift(), or passing args as a hash, etc.
My router is indeed OpenWRT-based, but even if that was not directly supported I can run LXC containers on it.

Thanks for your reply, I will try to deploy Netmaker alongside Tailscale and compare for my needs!
What if logging is part of your business logic?
Bitcoin is like if someone made a real version of "Universal Paperclips"[1]. We now have a segment of the economy optimizing for creating cryptocurrency tokens with little-to-no use value but huge trade value. We already see the impacts on electricity capacity and some luxury goods (video cards). As these operations become more and more sophisticated, it's not inconceivable that they will eventually put price pressure on raw materials as well.

Absolutely crazy.

[1] https://www.decisionproblem.com/paperclips/index2.html
I just go to insert mode and shift-Insert , to insert from clipboard

This works even if I ssh into something.
Kernel compiles are not particularly memory hungry. LLVM compiles on the other hand are very memory hungry, especially during linking.

I’m sure there are other 'workstation-ish' jobs that people would happily run on their laptop if it had > 16Gb memory. 64Gb is quite the leap.
> the second one is IO-bound impure one

Not necessarily, e.g., you can buffer in memory, and write to storage later.

> loggers can fail and break your app

Anything can fail and break your app. Weak point.
If there aren't constitutional mechanisms in place for peaceful transfer of power-- along with a tradition of mostly following the norms and conventions around the constitution-- it can all go wrong pretty quickly.

People may get very frustrated with democratic governments, but the mechanisms that well established democracies have for the peaceful transfer of power offer a much needed release valve on this sort of pressure.

But it takes time to establish the foundations for this. Heck, the US had been around for most of a century and still had a failed revolution (well, it's called a the Civil War, but that's mostly because it failed. I'm sure if the US South had won, they would have viewed it very much as a successful revolution in the same way the original colonies did when they seceded from Great Britain. Yes, there are subtle differences-- Great Britain was somewhat of an absentee overseer, and colonies are not quite the same as states. Admittedly this makes the gray area resolve closer to Civil War.)
there are no choices besides accepting the prevalence of monopolies, governments should not be restricting two of the greatest businesses in history.
> > Imagine you want to watch your favorite show on Netflix in 4k, but your hardware trust factor is low? Too bad you’ll have to settle for the 720p stream. Untrusted devices could be watching in an instance of Linux KVM, and we can’t risk your pirating tools running in the background!

OT: sounds like Emule.
There's also a dedicated null register "_, so "_d really just deletes it without storing it anywhere. But I agree _ is harder to reach than d.

I also really like junegunn/vim-peekaboo, which really helps if I know I copied something, but I'm not sure how far down the stack it is.
And to make it even more weird: The Netherlands, right next door, has just installed a new government that wants to build 2 new nuclear power plants.

Part of the reasoning is that solar and wind need to be combined with something. That something was coal, but they're closing coal power plants due to the environmental impact. The other options are gas and nuclear, where gas has both a political issue (Russia) and a higher CO2 impact than nuclear.
Nothing is impossible. However everyone agrees that Apple created a walled garden which is hard to escape. Try to use their watches without an iPhone.