Hacker Newsnew | past | comments | ask | show | jobs | submit | keyston's commentslogin

Impressive work.. Next time I work with node I'll keep this in mind. One thing that would be nice is the ability to chain blocks. I can't think of a example at the moment but didn't see any examples that showed if this is possible already or is that the purpose of .defer()?


Chaining blocks works, for instance something like:

var queryResult = getDatabase().sync(). getCollection().sync(). fetch({ query }).sync();

Assuming all those are asynchronous operations.

Chaining wouldn't work with .defer() right now. It only supports syntax like "var x = something().defer()".


This is good news.. atleast for texas. I'm about 45mins from austin and finding local gigs are always hard. Wonder if they do remote work...


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

Search: