TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Learn JavaScript from actual websites?

3 点作者 jndsn402超过 10 年前
Is there a resource that walks through the end-to-end code of actual websites to help teach Javascript? I am almost through the Codecademy courses on HTML/CSS/JS/Jquery and I still have trouble understanding what is happening, or how something is achieved, just by checking out a page's source. If there was a JS teaching framework that picked apart the code of several actual websites, I would be interested. Thanks!

4 条评论

bzalasky超过 10 年前
If you haven&#x27;t checked out the annotated source of Backbone and Underscore, I&#x27;d recommend starting there. I&#x27;ve also added Backbone.Marionette. Once you&#x27;ve taken a look at the first two, you&#x27;ll be able to see how Marionette builds on top of both libraries.<p>- <a href="http://backbonejs.org/docs/backbone.html" rel="nofollow">http:&#x2F;&#x2F;backbonejs.org&#x2F;docs&#x2F;backbone.html</a><p>- <a href="http://underscorejs.org/docs/underscore.html" rel="nofollow">http:&#x2F;&#x2F;underscorejs.org&#x2F;docs&#x2F;underscore.html</a><p>- <a href="http://marionettejs.com/annotated-src/backbone.marionette" rel="nofollow">http:&#x2F;&#x2F;marionettejs.com&#x2F;annotated-src&#x2F;backbone.marionette</a>
taf2超过 10 年前
I thought you meant by viewing source and using web inspectors to learn javascript and I thought yes that&#x27;s a great way to learn how things work... Otherwise, Mozilla provides good reference materials. I think you need to just build something now to figure it out. - you have to learn it from solving problems. Pick a problem and solve it.
评论 #8788534 未加载
rajacombinator超过 10 年前
I think you&#x27;re better off learning through courses. Trying to reverse engineer other site&#x27;s JS by looking at their source is usually a pain because of how JS source is served (heavily minified) and it requires you to dig through the entire naming structure of the site&#x27;s HTML, etc. Just stick with some courses that teach you sound principles.
gsands超过 10 年前
codepen.io would be a good place to learn by example. You will see many isolated code samples with the clearly separated HTML&#x2F;CSS&#x2F;JS.<p>As you wrap your head around &#x27;what is happening&#x27; as you put it, you can start to combine what you see to make new creations of your own.<p>For the basic timeline of when things happen, research how a website is rendered. Here&#x27;s some info to get you started: <a href="http://frontendbabel.info/articles/webpage-rendering-101/" rel="nofollow">http:&#x2F;&#x2F;frontendbabel.info&#x2F;articles&#x2F;webpage-rendering-101&#x2F;</a>
评论 #8788544 未加载