Echo JS 0.11.0

<~>

timoxley comments

timoxley 3708 days ago. link 1 point
I don't know how you could even bring frameworks into this?
timoxley 3708 days ago. link 2 points
Single argument doesn't capture required/optional semantics. I think a hybrid approach is best.

Also isn't discoverable, requires reading docs or source.

Usually I try to get 1 or 2 required args, then everything optional in an object. If thing requires more than 2 args then would consider single argument object. Callbacks as last param don't come into count.

Another option is fluent APIs.

E.g.

Link(target, dest) // args
Vs.
Link({from: target, to: dest}) // named args object
Vs
Link.from(target).to(dest) // fluent
timoxley 3737 days ago. link 1 point
Cool idea but a language to implement this seems like super overkill, when you could implement basically the same thing with a simple fluent API, without any magic or compile step.

e.g.

clicking().on(".rsvp").addClass("open").on("#overlay")
timoxley 3742 days ago. link 1 point
I am a bit sad that ngraph doesn't do as well as vivagraph. Any clue why?
timoxley 3744 days ago. link 1 point
Yep, the javascript universe needs more developers who don't know basic APIs and only know how to use shitty abstractions. Good point.
timoxley 3754 days ago. link 1 point
As in this is so wrong I had to check if I was reading a jenn schiffer.
timoxley 3754 days ago. link 1 point
Note this isn't raw JavaScript, its raw DOM API. JavaScript is the language.
timoxley 3834 days ago. link 2 points
Silly finger pointing like this over minor issues isn't really newsworthy, let alone three exclamations newsworthy.

Have you isolated this to spawn or is it an issue with streams in general?
Is it perhaps already fixed in master or 0.11?
Is this a regression i.e. does node exhibit this behaviour in previous versions or is this new?
[more]