@Nick: Thanks for the link, I'll read up and may come back with more thoughts and questions.
Is function nesting that much of a problem if you design your architecture properly? Surely large nests of functions and anonymous functions is just sloppy coding isn't it? -- Rob Griffiths Twitter: @bytespider Github: https://github.com/bytespider bytespider.euSent with Sparrow (http://www.sparrowmailapp.com/?sig) On Friday, 28 October 2011 at 10:51, Nick Morgan wrote: > There's a large section in Test-Driven JavaScript Development > (http://tddjs.com/) about converting a Node app using callbacks to one using > promises. I think a big part of it is just reducing function nesting. > > On 27 October 2011 22:10, bytespider <[email protected] > (mailto:[email protected])> wrote: > > I've been thibking about promises in javascript, and whilst I think I > > understand the basics i fail to see how they are useful over the usual > > callback mechanisim. > > > > I wrote a post http://cl.ly/BMAE to summerise my thoughts and I'd > > really like to start a discussion here to talk about the pros and cons > > of such methodoligy. > > > > -- > > To view archived discussions from the original JSMentors Mailman list: > > http://www.mail-archive.com/[email protected]/ > > > > To search via a non-Google archive, visit here: > > http://www.mail-archive.com/[email protected]/ > > > > To unsubscribe from this group, send email to > > [email protected] > > (mailto:jsmentors%[email protected]) > > > > -- > Nick Morgan > http://skilldrick.co.uk > @skilldrick > > Save our in-boxes! http://emailcharter.org > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/[email protected]/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/[email protected]/ > > To unsubscribe from this group, send email to > [email protected] > (mailto:[email protected]) -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
