4 ms·
Examples of beautiful Javascript
- deleted 15y ago[deleted]
- deleted 15y ago[deleted]
- defdac 15y agoMore of this. I don't know javascript that well, but looking at the annotated underscore.js was really enlightening.
- jashkenas 15y agoIf you enjoyed that, perhaps you'll dig the annotated Backbone.js as well: http://backbonejs.org/docs/backbone.html 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...
- combataircraft 15y agohttps://github.com/visionmedia/superagent https://github.com/visionmedia/superagent
- firefoxman1 15y agoAnything from TJ Holowaychuk is beautiful and extremely well-documented.
- clutchski 15y agoI don't use it, but I am quite impressed with the cleanliness of the Google Closure source. http://code.google.com/p/closure-library/source/browse/trunk/closure/goog http://code.google.com/p/closure-library/source/browse/trunk...
- nchuhoai 15y agoAgreed the google closure ecosystem is probably the most underrated one here on HN
- zzaman 15y agoOne 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/ https://github.com/visionmedia/express/tree/master/examples/
- minikomi 15y agoFor some twisted interpretation of beautiful I guess http://140byt.es http://140byt.es also qualifies