News for hackers. Stuff that matters.
Re:Show HN: Interactive JavaScript tutorial on closures and ... by frugalfrank on Friday July 22, 2011 @11:31AM (#2793913)
I finished it yesterday, got stuck for a while in the Asynchonous Callbacks exercise. It wasn't completely clear to me what you wanted.

I went back today and saw that you changed the exercise and description.

"Define a function named doStuffAsync that takes one argument callback, that reads the contents of the file "passwords", appends "OWNED" and writes the results to file "world.txt", then calls callback. Remember, read doesn't return the file contents directly."

From the description shown above, It wasn't clear that you wanted world.txt to contain the content of 'passwords' plus 'OWNED' appended.

Re:Show HN: Interactive JavaScript tutorial on closures and ... by nwhitehead on Friday July 22, 2011 @06:22PM (#2795383)
I'll reword it, I agree that it is confusing still.
Re:Show HN: Interactive JavaScript tutorial on closures and ... by frugalfrank on Friday July 22, 2011 @08:57PM (#2795778)
Aside from that one, everything else was very clear and helpful. I've read about closures a few times, but don't think I really got it until finishing your exercises. Thanks!
Re:Show HN: Interactive JavaScript tutorial on closures and ... by nwhitehead on Wednesday July 20, 2011 @07:25PM (#2787842)
Just put this online, try it out and let me know if you see any problems. Kudos to whoever finishes first!
Re:Show HN: Interactive JavaScript tutorial on closures and ... by invalidOrTaken on Thursday July 21, 2011 @04:29AM (#2788860)
I enjoyed it, now understand clojures better, and had never heard of continuation-passing style (though I got the hang of it after a bit). Thanks! I was impressed!
Re:Show HN: Interactive JavaScript tutorial on closures and ... by invalidOrTaken on Thursday July 21, 2011 @05:14PM (#2791326)
Err, oops. Closures, not clojures.
Re:Show HN: Interactive JavaScript tutorial on closures and ... by sidcool on Thursday July 21, 2011 @11:41AM (#2789948)
Thanks, this is a wonderful article.