JavaScript redux: Closures and Continuations

This is why I love being back blogging, I had three insanely smart people contact me to help me understand the problems I wrote about in my last post.

First, Martin IMed and gave me yet another late night lesson in programming (I think the last time we did that we were talking about either Lua or Ruby.). He helped explain that my issue wasn't with JavaScript, it was actually with closures in general.

Then Sam Ruby IMed me with a link to his treatise on the subject he posted on his blog back in 2005... Very, very educational, with examples in C, Java, JavaScript, Python, Ruby and BASIC just in case you don't get the concept right away. I consider myself quite hard boiled after reading that post. :-)

Finally, Simon emailed early this morning with a link to an article he wrote for the Mozilla Developer site on exactly the area of JavaScript I was mis-understanding. I think I actually saw that article when it came out, but didn't read it closely enough. If I had, I might not have been so bewildered... but obviously (to paraphrase Donald Rumsfeld) I didn't know what I didn't know.

Thanks guys!


< Previous         Next >