by embedding-shape · 6mo ago · 0 comments
So what did the frameworks do? Of course wrap the entire application in one big try/catch, that then changes the entire page as soon as there is any error, instead of presenting users with the information that did load properly. Talk about undoing what the platform and language gives you for free...
I've seen literally pixel-identical error messages taking over the entire screen when there is a JS error, in exactly that way, across countless of websites. If it's not a framework, it's a library in wide use, because tons of websites have exactly the same issue.
But the cause of the error is a poor implementation from the developer.
I can write code that errors out in <insert your favorite language here> does that mean it’s bad?
Now we have some popular framework/library that instead seems to surface these errors that aren't sitting in the top-level scope of the JS application, yet the errors ends up blocking the entire application.
That means it's bad, yes. And it's not any language, we're specifically talking about JS in browsers here.