Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 5,635 posts.

Programming Languages
Any year
1575

JavaScript Needs Blocks

While reading Hacker News posts about JavaScript, I often come across the misconception that Ruby's blocks are essentially equivalent to JavaScript's "first class functions". Because the ability to pass functions around, especially when you can create them anonymously, is extremely powerful, the fact that both…