News for hackers. Stuff that matters.
Re:How I want to write Node: Stream all the things by kimjotki2 on Friday February 14, 2014 @06:29PM (#7241795)
It looks like this whole notion of 'stream' is just a syntactic sugar for javascript guys who lost themselves in a bunch of nested stupid callbacks, which is worse than lisp parens. Instead of nesting whole callbacks, create a stream in the middle; execute first half of callback chain and dump the result into the stream so that next half of callback chain can be executed later.

Why is this so an enlightenment for node guys? UNIX does it right since epoch - simple programs perform simple tasks and connected via pipes. Python has gevent, so you don't even need 'a stream' or other bullshit, you just write the code as-is and greenlets provide the concurrency needed.

The real enlightenment comes from 'programming properly'; you start with C and torture your brain with function pointers and realize why it is a good idea to treat functions as a first-class objects. then you learn some 'proper' functional programming languages like lisp or something to learn how to think in functional way. which is the only guaranteed and proven path to prevent yourself from shooting your own foot by writing 20+ nested callbacks. If you start with binding an anonymous function to a <button>'s click event and think you can do this to do real programming, you'll never get it right.

Re:How I want to write Node: Stream all the things by woah on Friday February 14, 2014 @06:51PM (#7241912)
Wise words of wisdom from kimjotki2, the only real programmer on the internet. Bow down, bitches.
Re:How I want to write Node: Stream all the things by coldtea on Saturday February 15, 2014 @07:52AM (#7243623)
This is not reddit.
Re:How I want to write Node: Stream all the things by mattgreenrocks on Friday February 14, 2014 @08:37PM (#7242237)
What is it about JS that causes people to re-invent everything and call it progress?
Re:How I want to write Node: Stream all the things by tjholowaychuk on Friday February 14, 2014 @07:51PM (#7242097)
yup! node does streams horribly wrong
Re:How I want to write Node: Stream all the things by jhrobert on Saturday February 15, 2014 @10:44AM (#7244078)
I am considering the idea of spending some time studying node streams. Your remark worries me. Is there some sources I can consult about node stream potential weaknesses? Thanks.