I've been messing with stream control flow recently, and also find it to be lacking at the moment. I've been using a lot of functional programming techniques, and I find them to be very complementary. At any rate, I'd also be curious to hear any solutions people have found for dealing with stream control flow, so to speak.
Cheers, Adam Crabtree On Wed, Feb 1, 2012 at 8:23 AM, Lorenzo Giuliani <[email protected]> wrote: > hello, > I need an advice. I need to concatenate many files into one, yesterday I > came out with this messy code: > > https://raw.github.com/aliem/chomp/master/chomp.js > > My concern is that I don't know when this can (and it will) fail, right > now I'm only listening to the "error" event on the read stream. The > function's actual flow seems bad to me, most of the times I like how node > works, but I found that dealing with stream is a bit difficult. > > So, is there a better way to handle my use case?. > > bye > ~lor > > -- > 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 > -- Better a little with righteousness than much gain with injustice. Proverbs 16:8 -- 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
