As someone who's recently become a huge fan of Q, but mostly writes code
that eschews dependencies altogether, I totally agree with Mikeal. The
strength of Node is at least in part its huge ecosystem, but that strength
is a liability when it comes to getting newcomers up and running. async,
express, mongoose, and winston are all far from perfect, but they're the
most commonly used tools for what they do, and they get the job done. Once
you're oriented and know what's going on, it's a lot easier to pick and
choose from what's available (or write your own thing) to find something
that works better for you.

There's a big difference between trying to help newcomers get established
by giving them a simplified menu of choices and censorship. This isn't
about "omakase" or even best practices, IMHO, it's just keeping people from
drowning.

F



On Wed, Apr 24, 2013 at 2:50 PM, Mikeal Rogers <[email protected]>wrote:

> I feel really bad for people that ask incredibly simple questions on this
> list.
>
> The solution nearly everyone in this community uses is the async library:
>
> https://npmjs.org/package/async
> https://github.com/caolan/async
>
> Its currently depended on by 1901 other packages. It's the
> defacto-standard for flow control in node.js. The only people that don't
> use it are people that prefer to do everything by hand and people that
> wrote their own pet library, anyone asking this question is unlikely to
> fall in to one of those categories.
>
> This list fills up with people advocating the library they wrote that
> almost nobody uses, which confuses new users in order to further their own
> agenda. If this is to be a place for new users to ask simple questions we
> need to find a way to discourage this behavior.
>
> -Mikeal
>
> On Apr 24, 2013, at 12:02AM, greelgorke <[email protected]> wrote:
>
> where's the fibers guy? :D
>
> Am Dienstag, 23. April 2013 22:31:57 UTC+2 schrieb azer:
>>
>> I wrote a guide for defining async values previously;
>> https://github.com/azer/**declarative-js<https://github.com/azer/declarative-js>
>>
>> On Tue, Apr 23, 2013 at 9:23 AM, Bruno Jouhier <[email protected]>
>> wrote:
>> > With streamline.js 
>> > (https://github.com/Sage/**streamlinejs<https://github.com/Sage/streamlinejs>),
>> you just need one
>> > line of code:
>> >
>> > var result = (Object1.retrieveNum1(_) + Object2.retrieveNum2(_)) /
>> > Object3.retrieveNum3(_);
>> >
>> >
>> > On Monday, April 22, 2013 9:54:50 PM UTC+2, Slobodan Blazeski wrote:
>> >>
>> >> Hi All
>> >>
>> >> I'm looking for suggestions of how to retrieve values asynchronously:
>> >>
>> >> In the synchronous world I have
>> >>
>> >> var num1 =  Object1.retrieveNum1();
>> >> var num2 = Object2.retrieveNum2();
>> >> var num3 = Object3.retrieveNum3();
>> >>
>> >> var result = (num1 + num2) /  num3;
>> >>
>> >>
>> >> but since functions  Object1.retrieveNum1,Object2.**retrieveNum2 &
>> >> Object3.retrieveNum3
>> >> retrieve data from the database or represent long calculation I need
>> to
>> >> pass callbacks,
>> >> that leads me to below
>> >>
>> >>  Object1.retrieveNum1Async(**function(num1){
>> >>       Object2.retrieveNum2Async(**function(num2){
>> >>             Object3.retrieveNum3Async(**function(num3){
>> >>                  var result = (num1 + num2) /  num3;
>> >>             });
>> >>       });
>> >> });
>> >>
>> >> is this the idiomatic way of doing this or there is something better
>> >>
>> >>
>> >> thanks
>> >> Bobi
>> >>
>> >>
>> >>
>> >>
>> > --
>> > --
>> > Job Board: http://jobs.nodejs.org/
>> > Posting guidelines:
>> > https://github.com/joyent/**node/wiki/Mailing-List-**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
>> > nodejs+un...@**googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/**group/nodejs?hl=en?hl=en<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 nodejs+un...@**googlegroups.com.
>> > For more options, visit 
>> > https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>.
>>
>> >
>> >
>>
>
> --
> --
> 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.
>
>
>
>
>  --
> --
> 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.
>
>
>

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