3 ms·
I love the annotated source code, but I wouldn't necessarily recommend the Underscore library code itself as learning material to budding developers - it's opti
by jevakallio 9y ago
I love the annotated source code, but I wouldn't necessarily recommend the Underscore library code itself as learning material to budding developers - it's optimised for size and performance, not legibility and idiomatic style. I remember being a budding JS dev once upon a time, and being quite perplexed by it :)
- jashkenas 9y agoI quite agree that it's grown a bit gnarled and tangled with optimizations over the years. It's interesting to compare the current version to the earliest available copy of the annotated source code, from version 1.1.1, seven years ago, in a simpler JavaScript age: https://cdn.rawgit.com/jashkenas/underscore/1.1.1/docs/underscore.html https://cdn.rawgit.com/jashkenas/underscore/1.1.1/docs/under...
- mzzter 9y agoI've learned a lot from reading your underscore.js source code. For me, I started by reading and understanding the raw commented source code from the first release (without the initialization wrapper and initially confusing module setup): http://cdn.rawgit.com/jashkenas/underscore/f4299d7427abc59bca5b9c69904f25d0bf0f6791/underscore.js http://cdn.rawgit.com/jashkenas/underscore/f4299d7427abc59bc... Then I had an easier time following the annotated version after understanding how the other functions were built on top of each other in the simpler syntax.
- bootcat 9y agoWow, time flies and things get better with revision usually,
- KomradeKeeks 9y agoWould you happened to recall what projects/Etudes help you develop your programming skills? Asking for a friend