skysight-inc/HackerNews huggingface dataset:
> The biggest argument against “checked” exceptions is that most exceptions can’t be fixed. The simple fact is, we don’t own the code/ subsystem that broke. We can’t see the implementation, we’re not responsible for it, and can’t fix it.

Here's what Oracle has to say:

> Here's the bottom line guideline: If a client can reasonably be expected to recover from an exception, make it a checked exception. If a client cannot do anything to recover from the exception, make it an unchecked exception.

https://docs.oracle.com/javase/tutorial/essential/exceptions...

- checked exception for recoverable errors

- unchecked exception for non-recoverable errors

So the argument that most errors can't be recovered from is _not_ a reason to abandon checked exceptions. It's a reason to reserve checked exceptions for those cases in which recovery is likely.

The main argument in this article appears to be based on a misunderstanding.
You can use flask_limiter library for flask
Novid – Covid Contact Tracing App
Without having a degree, I feel coding challenges are the only way I can truly compete.
I'm of the opinion that if there needs to be some objective technical challenge to determine a baseline of competency (and there are very many, very strong arguments for that) then there need to be standards.

I've encountered so many variables (no pun intended) in technical interviews that I've virtually stopped preparing. There's hardly any way to prepare when the field is so large and you never really know what you're going to be tested on.

I've had people challenge me on theoretical system-time timezone conversions (and incorrectly mark my correct answer wrong "because of physics"...), beside reimplementing native JavaScript functions, beside complex algorithmic problems, beside toy problems like building a binary calculator. [That's great if you learn I can rig a web page for adding 100 and 101, but how do you know if I know anything about databases for this back end position]

And those interviews were all for working with web tech, in a couple of the cases just front end positions.

There needs to be a common, limited standard and/or domain-specific standards.

It's really counter-intuitive to me, and I don't understand how it benefits the hiring process, if a company is looking for a web-back-end engineer for what is essentially a complex crud app and wants to propose the candidate solves a problem from a domain they've never worked in—and marking them on the correctness of the answer, rather than the work process.

I'm for objective, technical challenges. But I've seen enough that it seems apparent to me that it's broken.

(addendum: I've had several good interviews as well, and good interviewers. I had a good one recently as well that was fitting for the domain. They're not all bad, but most seem to be in my experience)
Some protocols have so much persistence, where others seem to be tied to one vendor's fate.

I wonder if its worth spending some time trying to understand what makes some protocols so robust and widely adopted. It's not just being open vs closed.

A few other examples:

- PostScript (probably) / PDF (iffy)
- CAN (adaptable)
- G-code
- Serial
- HTTP
- HTML (sort of, badly)
- VNC (maybe)
- JSON (for now)
The first Radhard Atmega device arrived just five years ago, so maybe someone is in a process of certification now)
But your question sounds a bit like "why there are no Ferrari semi trucks?"
Just because they are intended for different things)
Too complicated for the masses. Climate change is something everyone can observe more or less. Dead bees, elephants, wolves - not so much.
>One question I would ask you is: what is _similar_ about them? Could you express all of these with one abstraction? Is there a difference between choosing `class` as the base abstraction, vs a closure?

The answer is yes you can. But you're thinking in the wrong direction.

First let's make things clear. A function is just a one line expression where all values are immutable. There is no concept of time or procedures in a function.

function

def f(x):
return ((x + 1) * 2)/3

procedure:

def f(x):
x = x + 1
x = x * 2
x = x / 3
return x

You are saying that a procedure is isomorphic to an object which is to say you can define an object in terms of a procedure and a procedure in terms of an object. People often mix up the two terms, procedure and function but it's no big deal. The issue is, you used the term "Higher Order" function and the second issue I had was that it's actually quite an obvious thing presented as if it was novel.

Well first off all computers are procedural machines. The underlying machine is just executing machine code which is a series of procedures. So all programming languages on top of this are implemented with procedures.

That means OOP languages are implemented with procedures.

That means FP languages are implemented with procedures.

That means procedural languages are implemented with procedures.

Basically your post is just reiterating how an object is implemented by a compiler.

However the title of your post used "Higher Order Function." This implies you don't know the distinction between procedures and functions as "Higher order" functions are usually reserved for true functions, not procedures.

That was the point of my post, to help you see the distinction because although you can create objects from procedures, you cannot create objects from functions because objects require mutation which is a primitive that a function cannot actually provide. The relationship is surjective or unidirectional.

>harder to learn new things this way, and unless you are almost finished with your career, it can be detrimental

This is the internet. I can communicate without a filter on the internet with little consequence. Filters slow things down as do a lack of filter. Either way I can get to the point quickly without worrying about offending someone.
Same. I get trapped in these often and for large ones I've felt like I've needed to make drastic life changes like quit jobs or move to escape them. It's good to know that I'm not the only one that feels these things.
I've been looking for something like this for a while to organise photos from my phone, also without success. I hold all my photos locally and then securely sync them to a remote NAS.

My photo album folder naming structure is slightly different from this, but this will still speed up sorting photos.
The actual chances for guessing the 4 port combination are closer to 0.000000000000000000001%, about as likely as winning the lottery three times in a row. If you're trying to brute-force me with those odds, I'll take my chances.
You could jailbreak. They actively work to prevent that, though.
Further nit: there isn't a British system, it's English law (which includes the Welsh counties). Scottish/Irish law is different.

https://en.wikipedia.org/wiki/English_law

My understanding is it's more Norman than Angle, but there you go.
The net effects of climate change (and of course the magnitude) are big question marks in my book.

But you bring up the exact thing I think every time I hear the more extreme climate change claims.

We have some very real and relevant issues right now that are huge, existential even, and not based on theoretical models and we don't seem to be discussing or doing anything at all about these. Groundwater depletion. Topsoil depletion. Loss of habitat and biodiversity. Microplasics. Desertification.
This is reminiscent of gmail staying in "beta" for 5 years and having acquired 10 million users.

> And before anyone claims one shouldn't use stuff on versions below 1.0, consider that very popular projects like React were widely deployed in production before they decided to bump themselves out of 0.x...

I agree.

It's pretty easy to advise people not to use library with low version numbers, but then what do you use instead? Not every ecosystem out there has libraries for all common task, and if you need to, say, fill out a PDF form in language $X, and your choice is either a v0.5.22 library or writing it from scratch, I know I'd go for the v0.5.22... (especially with deadlines looming, and me having other things to do than reinvent the wheel).
Not that I disagree anyhow, but good luck with that argument here... this is US website, visited predominantly by US folks, so I don't blame them that they want to protect their companies. Even if DJI is properly on top of the drone game, at least in some parts of drone market.

The thing is, as a european, I don't give a nanofraction of a f*ck about these 'privacy issues'. Everybody steals data, americans are probably the most advanced (thank you mr Snowden for disclosing this, some proper respect there). No higher moral ground there. With current US administration Europe and US ain't big friends like they used to be. US set the tone to more 'everybody for themselves'.

US killed tens of millions of innocent civilians in past 50 years, destroyed whole regions of this planet for generations to come, for money, power, resources and their ideology. THAT is something I care about. So give me a break with this political games, give me the best drone, it will spy on me regardless of country of origin if it can. Same as phone, tablets, desktop (depending on software used) and so on. Welcome to 2020, it ain't nice but this is how things are.
Not as slow as many people think, especially with things like OmitStackTraceInFastThrow
They're still pretty big, but not destroying Tokyo anytime soon.
It’s hard to prove that this is a fix (i.e. I can prove it for my device, but your device might be special), but you can always just install a VPN app that doesn’t actually connect to a VPN, but rather acts in a LittleSnitch-alike way to the traffic it’s proxying.

I believe this is, in part, how CloudFlare’s 1.1.1.1 app works on iOS.
> if at the end of the day you can build something even if you write sphagetti code it's _something_.

I'd suggest that spaghetti code disqualifies one from anything but the smallest teams and projects. "Coding" is what we do on our own time w/o the likelihood of others interacting.

Software engineering is what happens to programming
when you add time and other programmers. [1]

[1]: https://research.swtch.com/vgo-eng

> I'd whole-heartedly recommend detaching yourself from the code you write. Now that I look back, a lot of the code review comments I got were annoying nitpicks rather than genuine design/code critique.

+1 understand that most code comments are 0.5% more effort for 1% better result, death by 1000 cuts, style things. They by no means denigrate your skills (unless you believe yourself to be perfect, godlike) and do have value for the team because those gains compound.
Another we'd love to hear opinions on. Based on a recent study where candidates are more likely to succeed if given private space and time to work on the problem, we'll disclose the coding challenge about 15 minutes prior to the interview allow the candidate to read it before joining the call. We struggle with the right amount of time provided for private review is. We want to be fair to all candidates and not implicitly favor candidates who have more free time to dedicate to the interview process than others. but at same time provide some sort of reflection space outside of a cold start to the challenge.
I usually tell interviewers I don't do per-interview assignments. I'll often e-mail them a list of current open source taks I'm working on, a paragraph with good requirements or a linked issue from an issue tracker. I'll list the programing language and framework and ask them to select from the list. I'll complete my task, with tests, and do a full presentation.

Universally I get turned down. "You have to do our assignment." Oh and I'll usually offer to do their assignment for $300. That doesn't go well either.

Only one company took me up on this offer, and it's the one I work for. (They didn't even ask me to complete one of my tasks, they just looked at the project I authored and said that was fine; and scheduled a full interview).

The few times I have actually done these assignments, I've never gotten the job.
It doesn't prove anything.

Here's another interpretation: iOS devices are more expensive hence people that use them can spend more money on apps.
Apologies in advance:

* If you used `outline` instead of `border` to indicate editable elements, that'd fix the annoying 'content moves by 2px every time I hover over something' problem.

* Editing in a modal instead of inline directly in the page feels very dated.

* There's at least one content block in your sample that isn't editable -- the 2nd para on the "Terms and Conditions" page contains a link that can be edited but the rest fo the text can't. Suggests that your parser for finding editable chunks of content is a bit fragile.

* Yes, after uploading some sample HTML, I see your parser is unusably fragile; any nested element at all (including simple text styling) will break your tool and make the element uneditable; only leaf nodes can be edited with your tool. (Also my uploaded file isn't editable; it shows the hover highlights but nothing happens when I click on them.)

* (I uploaded an extra index.html into the sample website. Now it has two index.htmls in it! Not sure how that will work out on download....)

* It can only edit text. Not links, not images, not layout, not anything else. Even if you're aiming for the most technophobic of customers they're still going to want more control than you're giving them.

The only real value-add you have here is in parsing existing HTML and allowing nontechnical people to change the text nodes inside it -- at minimum you'll need to improve how you identify editable nodes substantially before this can be considered at all usable for purpose.
You can beat this with amphetamines and deadline fear. You can also beat it with CBT-style self-reorganization but if you find yourself stuck and you have gotten to the part where you identify the problem but are unable to solve it, use amphetamines and apply some close up deadline terror.
But, one of the reasons for the fires is that due to lack of housing in cities, populations have been pushed more and more into wilderness areas, preventing proper forest management and exposing themselves to greater risks of fires.

Not to mention the second order effects of less density: more driving, more C02, more warming... more fires.
RemNote – great note-taking app nobody is talking about
I think part of it for me is this underlying anger. Despite these kinds of discussions, there's some sort of continued societal denial about many of the issues that are floating in the background.

Many of the things that are bubbling up in society seem all too much the same. Whether it's school or employers or whatever, there's this kind of overvaluing phenomenon, where the rich and/or successful get more rich and/or successful and we attribute their [increasingly, given increasing inequities] freakish success to something about them, as opposed to being in the right fitting environment at the right point in their careers, or corruption, or something broken in the system, or what. If you're too old, too black, too caring, worked at the wrong place, the place changed, didn't go to a prestigious enough school, were too rebellious as a young adult, whatever, don't know the right people, you're screwed.

I'm not sure what my point is, except to say this acceptance-struggle tension you're referring to is even more complicated because it's not just about lowering or raising your own personal expectations or standards, it's about everything else as well, about accepting or struggling against what's broken in society (at the risk of sounding too idealistic or self-righteous).

What do you do when it's not self-hatred vs acceptance, but self-hatred vs societal anger vs acceptance?
This is one of the reasons, I am actually in favor of only having the App Store on Apple. As soon as you have another way to distribute apps on the iPhone, app developers will try to migrate to the less privacy conscious store that lets them do all their dark patterns.

Sometimes, let the consumer choose does not work. For example, if governments did not regulate kids products and just said let the consumer choose, the market would be filled with unsafe products. Sometimes you need someone enforcing standards.

Apple’s enforcement of standards is one of the big reasons why I choose their ecosystem.
Same here, I'm on a bike for everything, I eat organic (literally, I forage a lot of fruit when going for a ride, currently there are many figs). So my consumption and my environmental impact is certainly super low.

I pick up plastic trash every now and then, it's hard to counter all that continuous litter volume

Next step is to spread this philosophy, but it's not easy or even possible to change other people lifestyles. It's sad because, it's definitely healthy to live that way

Just talked with someone today, near a fig tree, he said they should cut that tree next to the road because it was dangerous, I replied to him, the fig tree is more important than the road and car traffic with a smile, and a bit of sadness inside because I know what will happen
What the parent said is 100% accurate.

They pointed out that retailers would buy the software up front (at wholesale price), and assume the rest of the risk for "promoting, distributing, and selling" themselves. Thus, the retailer did not "charge developers" for those things[0].

I realize this is a bit pedantic but it's not fair to say the parent has said something "historically inaccurate".

[0] There were special marketing or buyback arrangements in some cases, but what's described above is the default retail model.
China injects 100s of thousands with experimental vaccine
That's whataboutism. In this post it's about Apple. That others do it doesn't excuse it.

And a big difference with Google is that you can sideload or use other stores on Android. And same on Windows, you don't have to use the store.
I have a react native app and it runs in both stores. The iOS users drive most of my revenue. My app could not survive without the organic search traffic from Apple.

I guess I was a bit misleading in my original comment. 98% of my users come from iOS and Android organic search results. I haven't been able to find any profitable non-store marketing channels.
the FAANG interviews are pretty standardized now - but then that only selects candidates who are well prepped for the interview itself.
> that I've virtually stopped preparing

Surely this is a good thing, no way for people to game the system and no time wasted.
Then pay the candidate! It might seem ridiculous but consider how much time is spent by interviewers, hiring committees etc, giving some fraction of that out even to utterly worthless candidates might not be the worst idea in the world. A side effect of this is that suddenly the cost of a bad screening becomes more intuitive
It's not a monopoly. By definition. It's not even close. That's all I am saying. So we should stop with this absurdity of talking about Apple having a monopoly. Apple does not even have majority market share in any of the markets that it participates in.
I agree. Sentences like "we think that you will also know it when you cross it" are extremely arrogant.
They're so similar you can easily translate between the two e.g. https://github.com/unruly/control/blob/master/src/test/java/...
It's probably a cost & manufacturing issue; I would guess that a draw that long is physically difficult to perform. It may be practical for something 1/2 or 1/3 the length of the pringles can.
> 3.1.3(b): Multiplatform Services: Apps that operate across multiple platforms may allow users to access content, subscriptions, or features they have acquired in your app on other platforms or your web site, including consumable items in multi-platform games, provided those items are also available as in-app purchases within the app.

This is worded so broadly, that it can perfectly be applied to browsers and email clients. User plays a browser or PBEM game that has subscriptions? Ka-ching
He conquers who conquers himself!
Good article, gets to the point with good info. The "what's the biggest message I can send across a path" problem is one of those things that I hadn't thought of before running into it but ended up being really interesting/harder to solve than I initially thought it was (which I think are the "fun" surprises in learning new things).

MSS clamping is going away with protocols like QUIC and HTTP/3 encrypting L4 headers/options. PMTUD remains the proper way to handle things, or something like PLPMTUD if you're not willing to assume IP. Some things create path MTU black holes, commonly firewalls but also APs. APs can be particularly troublesome because nowadays they commonly don't terminate the wireless encryption, the controller at the other end of the tunnel does, which means they can't inject an ICMP to let the client know that packet is too big. MSS saves the day (for TCP) but otherwise the AP can either drop or fragment at the encap layer transparent to the client. I've yet to see a system that delivers the fragmented tunnel packet so the controller can ICMP back that the packet is too big but it'd be the cleanest thing in that scenario.

Also if you're going to limit tunnel size arbitrarily beforehand probably best to make sure the resulting packet ends up being able to fit into 1428. A lot of products use a 1300 "inside" MTU for this (and similar) reasons. 1400 + auto IPsec calc will lead to trouble in this scenario.

Don't drop "inside" MTU below 1280 in IPv6 networks. IPv4 is much more tolerant with the standard being 576 but many supporting less.
Google’s Sundar Pichai Is a Nice Guy. Is That Enough?
don't understand why you got downvoted because ultimately it's what it all boils down to..
Even if OP is really passionate about, say, stamp collecting - I'm asking why people who collect stamps should care that OP wants to rule a large community of them, why should they submit to it?

There has to be more in it for them than "OP wants to be in charge, so we will go to OP's place and submit to OP's rules". And OP won't find out what that is as long as OP is asking a general place like HN "how do I collect all the stamp collectors on my site??" like they were collectible things, instead of going to a stamp collecting group and joining and contributing and observing what they might be missing that they don't know they are missing because they aren't technical enough to be aware of all the options, which OP could maybe build or contribute towards.

but that's not at all as exciting as being in charge, which I'm cynically suggesting might be OP's motivation.
The people arguing against "security through obscurity" seem to have an implicit assumption that you're not also doing proper security.

e.g. I move my SSH ports to a high port. But I also ed25519 keys. I think the port helps though. Plus keeps the logs clean.
And also in environments with high oxygen concentration. At one point dragonflies were the size of cats (the cause is different from deep sea gigantism).
I would fully support Apple charging, say, $50 extra to lock down its devices to the current standard. That would be a much better world and the users who desire the "premium experience" still get to have it.
Isopoda is an Order. This is in family Cirolanidae, so it has much smaller cousins in each beach.

It seems there is an opportunity here, crouching like a cat, to dedicate one of this new species to Hayao Miyazaki. Bathynomus ohmu seems an pretty convenient name also. Maybe the next.
understood ! will make sure next time. thanks for explaining that.
That's not a big difference, with Android, because nobody is making any money doing that. It doesn't work.

I didn't mention Windows. I was discussing platforms where everyone takes a 30% cut. You may say this is mere whataboutism, but anyone who reads Hacker News knows that 99% of the anger and attacks on this practice are directed at Apple. Nobody bitches at Google and Sony and Microsoft for doing the exact same thing.
In-App Purchase Rules