On Fri, Jan 3, 2014 at 11:16 AM, Jason Shinn <[email protected]> wrote:
> I read it in the node documentation, as did the OP, where the exact quote is
> reproduced.  It specifically is on the docs page for domains:
> http://nodejs.org/api/domain.html#domain_warning_don_t_ignore_errors.

Fair enough, that's talking about errors in a fairly global scope,
where you don't know what the cause is, and you can't sensibly
recover.

> nodejitsu (http://docs.nodejitsu.com/articles/errors/what-is-try-catch) the
> only place in node core we really use it is the example I gave,
> JSON.parse().

And with the fs apis, pretty common to try to do something with a file
if it exists, and then something else if it doesn't. And require.
Pretty common to require some optional module, if its there use it,
otherwise, don't.

And robust clients reconnect .on('error',..) when connections are reset.

Etc.

I don't see node as any different from any other language in all this.
Though I think the node core team have been frustrated by naive users
with apps that are exiting deciding "hey, it will be more robust if I
just ignore all errors!", which is a terrrrrible idea. Thus the docs.
Since you are actually thinking about this, you clearly aren't that
kind of user, though.

> As I said, my main point is that the warning, as stated, doesn't really
> provided a basis for learning why and, subsequently, intelligently using and
> handling errors.

I'm not going to claim the node docs are great. But they do accept PRs!

Sam

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to