Yeah, I really dislike this "pattern".  It's confusing at best.  I never 
understood the reason for designing an API this way.  I suspect it has 
something to do with emitting events, like in the http module.

On Aug 30, 2013, at 9:48 AM, Paul <[email protected]> wrote:

> That means never doing something that seems dirty like this:
> 
> var thing = doThing(function() {
>     thing.doSomething(); // wtf? why should I have to reason about whether 
> this is valid here or not, just assume it is NOT
> });
> 

-- 
-- 
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