On Jan 21, 2014, at 15:26, Alex Kocharin wrote:

> As for models, requiring a file without assigning its returning value means 
> that that file have side effects. It is rarely justified (except for tests), 
> and if you have the whole folder of such files, it smells really bad.

Doesn’t smell bad to me. Last time I looked at writing a nodejs app using 
mongodb, for example, you were expected to register all your models at the 
start of the application. There’s no need to assign the return value to 
anything, because the models are already known to the mongodb library and you 
can retrieve them whenever you need them.

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