Live data from Hacker News

Examples of beautiful Javascript

stackoverflow.com

1–10 of 13 posts

Re: Examples of beautiful Javascript

#5
post #4

More of this. I don't know javascript that well, but looking at the annotated underscore.js was really enlightening.

If you enjoyed that, perhaps you'll dig the annotated Backbone.js as well:

http://backbonejs.org/docs/backbone.html

Interesting bits are the somewhat-flexible linked list of custom events, the proxying-through of many Underscore methods for Collections, the "inherits" helper function, and so on...

Re: Examples of beautiful Javascript

#10
One of the problems I have with articles like these is that they focus on Javascript's use in front-end development so the conversation settles on DOM tools examples of good Javascript.

Using Node.js (i.e. non-DOM server side Javascript) myself, I would love to see examples of beautiful Javascript in general i.e. linguistic best practices, not those specific to DOM programming.

Also, as a side note, for anyone interested in beautiful Javascript in Node.js, I love the examples posted on Express' Github repo: https://github.com/visionmedia/express/tree/master/examples/

Post reply on HN