Hacker News new | past | comments | ask | show | jobs | submit login

You have seen what the author posted later on in the discussion?

https://github.com/sam-mccall/node-plate




I like this syntax more: https://github.com/creationix/do


I like neither.

They're still riddled with boilerplate (anonymous functions) and are quite horrible to read and write (bracket nesting).

I sometimes wish node.js (and js in general) would adopt co-routines. They'd seem to be the perfect middle-ground here; async code that looks almost like threaded-code, and no more callback-hell.


There are soo many interesting ways to solve this: http://news.ycombinator.com/item?id=2101724


Is that the wrong link, or are you threadjacking?


Wow, wished I saw it earlier (can't edit now). Bad paste. Correct link:

http://www.infoq.com/articles/surviving-asynchronous-program...


Link unrelated


And later still:

https://github.com/sam-mccall/node-ship

(supports a few more things than just method chaining)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: