Hacker News new | ask | show | jobs
by rplnt 1654 days ago
That's basically mantra of one of the most popular technologies of the past - php. And javascript to a degree.

> Do anything, even the wrong thing, just work.

1 comments

On Error Resume Next
It's so bad that this ever existed.

It's even worse than PHP and JS were built around it.

Errors should never pass silently unless explicitly silenced.

Why? Very little on the web is critical. If it mostly renders, it's mostly good enough. shrug It's not like the big vendors with fancy programmers and difficult types release without bugs and security issues. But so what? Life goes on.
> unless explicitly silenced.

Which is what "On Error Resume Next" was doing by overwriting the current error handler. Seems to me that it was simply overused. Implicitly ignoring errors is more a C thing.

I suppose you're technically right. It's just the worst way to do it.