Skip to main content

Sam

Member since May 21, 2015

Recent Blog Comments By Sam

  • Exposing Promise / Deferred Functionality On Streams In Node.js

    Posted on May 21, 2015 at 2:05 PM

    I apologize for being spammy, However I cannot edit my comments On second thought, for arbitrarilly large objects or objects that hold large arrays and etc. We more than likely will only want a few kvs, so buffering it may give us much more than we expect, and or allow for an attack. That being sai... read more »

  • Exposing Promise / Deferred Functionality On Streams In Node.js

    Posted on May 21, 2015 at 1:30 PM

    TBH, I just recently did just that. I Concatenated the buffers and Parsed it, so I will definitely show humility in regards to these types of common use cases where a JSON Object is just wanted or something else which needs the whole buffer is necessary. This type of use case also applies to minimif... read more »

  • Exposing Promise / Deferred Functionality On Streams In Node.js

    Posted on May 21, 2015 at 3:26 AM

    I respect the idea, promises seem like an awesome api, however this kind of defeats the purpose of having a stream in the first place. Streams are more akin to lazy evaluation where you want to modify the data as you get it and only use what you need at any point in time. While, if you are waiting f... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel