> First to note - Coffee-Script actually *prohibits* this kind of code organization, because all functions are necessarily assignments.
It is a myth that you have to put function definitions before the calling code in coffee. Here is a pattern I use in all my code ... start = -> doNext() doNext = -> ... start() On Fri, Aug 16, 2013 at 10:53 PM, Andrew Kelley <[email protected]>wrote: > I wrote this article as a response to all the recent callback hate: > > http://andrewkelley.me/post/js-callback-organization.html > > It contains: > > - Acknowledgement of better async syntax than what callbacks offer > - Tips on how to structure callback based code > - Reasons why you might want to stick with js instead of a > compile-to-js language. > > -- > -- > 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.
