idk man my advice has always been to first learn callbacks and what's going
on behind the scenes, and then to give something like fibers a try if you
want. It's more like OP said that he knew how to swim but was having
problems crossing the English Channel. In this case it doesn't matter
whether you swim, boat, or fly.. he just wanted to get across. I try to
limit my participation in these threads to mentioning non-obvious but
significant advantages of fibers, and defending downright lies; "la la la
la fibers" isn't my attitude. My feeling is that it's common for the
pro-pure crowd to be like "those advantages suck".

There are advantages that fibers get you and there are advantages callbacks
get you. I prefer a tiny bit of magic in order to reduce the amount of code
I have to write, and to get back native loops (for, while, do while,
continue, break) and native error handling (try, catch, finally). But maybe
the magic is too much for you and you prefer callbacks or pure-JS solutions.

Disclaimer: I am the author of node-fibers

On Tue, Apr 17, 2012 at 1:51 AM, Dan North <[email protected]> wrote:

> As a relatively recent adopter of node.js and even JavaScript I find the
> tendency to offer streamline etc. to newcomers a bit like offering a boat
> to someone who has just joined a swimming club and is learning to swim.
>
> - "I'm finding swimming tricky"
> - "Use a boat!"
> - "I think I want to understand swimming"
> - "Use a kayak! It's quicker. It's like it swims for you!"
> - "Nearly everyone else here is swimming. It can't be that hard. I just
> need help with wrapping my head around it."
> - "Try these water-wings called async while you get used to the water."
> - "Oh thanks, that looks useful."
> - "Use a kayak!"
> - "Look, I'm not afraid of getting wet or anything and I can doggy-paddle
> but it's exhausting. I want to learn good swimming technique. Can you point
> me to some useful resources?"
> - "La la la use a boat!"
> - *sigh* (leaves)
>
>
> So, since I'm also likely to end up coaching this stuff because that's
> what I do, and I'm a fan of good resources, I'm genuinely interested in the
> following:
>
> Can anyone recommend a good resource for an experienced programmer who is
> new to async, callback- and event-based, single event loop programming in
> JavaScript and node.js? And no I don't want a boat or anything else that
> masks the "async experience". Honestly, I'll be ok.
>
> Thanks,
> Dan
>
> -----Original Message-----
> From: Jorge <[email protected]>
> Sender: [email protected]
> Date: Mon, 16 Apr 2012 20:39:15
> To: <[email protected]>
> Reply-To: [email protected]
> Subject: Re: [nodejs] Re: How to avoid callback hell?
>
> On Apr 16, 2012, at 3:08 PM, Nuno Job wrote:
>
> > <snip>
> >
> > Nuno
>
>
> Gratuitous, and unnecessarily rude: -1024
> --
> Jorge.
>
> --
> 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
>
> --
> 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
>

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

Reply via email to