Hacker News new | ask | show | jobs
by ratww 1862 days ago
> Should every line of code get wrapped in try/catch?

For third party dependencies that might not get loaded for whatever reason? Yes, sure. There are better ways to do it, but that's the idea.

1 comments

The code listed does check if it's been loaded. The stub that gets loaded is wrong. How do you guard against that?