TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Annotated Underscore.js Source Code – Good for Budding JavaScript Developers

52 pointsby bootcatover 7 years ago

8 comments

jevakallioover 7 years 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 :)
评论 #15241229 未加载
评论 #15243882 未加载
armandososaover 7 years ago
Also interesting, even if it has become unfashionable these days, Backbone&#x27;s annotated source: <a href="http:&#x2F;&#x2F;backbonejs.org&#x2F;docs&#x2F;backbone.html" rel="nofollow">http:&#x2F;&#x2F;backbonejs.org&#x2F;docs&#x2F;backbone.html</a><p>And the tool to make these: <a href="http:&#x2F;&#x2F;ashkenas.com&#x2F;docco&#x2F;" rel="nofollow">http:&#x2F;&#x2F;ashkenas.com&#x2F;docco&#x2F;</a>
评论 #15241008 未加载
pvsukale3over 7 years ago
For beginners annotated code of highly optimized library might become confusing. Try reading Mary Rose Cook&#x27;s annotated code of 2 JS games and a Git clone <a href="http:&#x2F;&#x2F;annotated-code.maryrosecook.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;annotated-code.maryrosecook.com&#x2F;</a>
teh_klevover 7 years ago
Probably a bit long in the tooth now:<p><a href="http:&#x2F;&#x2F;robflaherty.github.io&#x2F;jquery-annotated-source&#x2F;" rel="nofollow">http:&#x2F;&#x2F;robflaherty.github.io&#x2F;jquery-annotated-source&#x2F;</a>
schemathingsover 7 years ago
Line 6: Naked function reference for surrogate-prototype-swapping. var Ctor = function(){};<p>TIL Ctor is short for constructor (?)
hacktothefutureover 7 years ago
Very nice! Even those of us who don&#x27;t consider ourselves &quot;budding&quot; have plenty to learn here.
评论 #15241010 未加载
p51nghover 7 years ago
How did you go about creating this? I think it&#x27;s super useful way of documenting code in general!
评论 #15241019 未加载
评论 #15241014 未加载
magic_beansover 7 years ago
This is amazingly helpful. Thank you for posting!