Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Quoted from the video on JavaScript:

"eventually i discovered that there is actually brilliance in this language, that it's right in a way that very few other languages ever get right"

Can someone please explain this? As someone who is not familiar with JS, I'm very curious to what he means in this sentence.



It's "Lisp in C's Clothing" (http://javascript.crockford.com/javascript.html)

JS has first-class functions with closures. This is simple concept that enables lots of interesting constructs — callbacks, methods, currying.

It makes event handlers/callbacks very easy (so easy that node.js can rely on them for everything).

It allows very flexible "fluid interface" like in jQuery.

Mixed with JS dynamism and prototypes allows you to invent your own OOP variants (and JS's standard prototype-based OOP isn't bad either).




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

Search: