News for hackers. Stuff that matters.
Re:Three Routes to Spaghetti-Free Javascript by Groxx on Wednesday March 02, 2011 @03:30PM (#2281147)
Route 1: Streamline.js, a compiles-to-Javascript language.

Route 2: Mobl, a compiles-to-Javascript language.

Route 3: Stratified.js, a compiles-to-Javascript language.

And then a side-mention for something actually in Javascript: https://github.com/caolan/async

So, to make spaghetti-free Javascript... don't write Javascript? I'll keep looking, thanks.

Re:Three Routes to Spaghetti-Free Javascript by treeface on Wednesday March 02, 2011 @04:18PM (#2281367)
Try jQuery's deferred events. It is, IMO, the most elegant actual-JavaScript solution to the problem I've seen.