mirror of
https://github.com/cheetahlou/CategoryResourceRepost.git
synced 2025-10-21 17:33:48 +08:00
298 lines
23 KiB
Markdown
298 lines
23 KiB
Markdown
<audio id="audio" title="87 | 程序员练级攻略:前端基础和底层原理" controls="" preload="none"><source id="mp3" src="https://static001.geekbang.org/resource/audio/59/d3/5983e8e8f6f1ee8b536ec56b31d442d3.mp3"></audio>
|
||
|
||
对于前端的学习和提高,我的基本思路是这样的。首先,前端的三个最基本的东西HTML 5、CSS 3和JavaScript(ES6)是必须要学好的。这其中有很多很多的技术,比如,CSS 3引申出来的Canvas(位图)、SVG(矢量图) 和 WebGL(3D图),以及CSS的各种图形变换可以让你做出非常丰富的渲染效果和动画效果。
|
||
|
||
ES6简直就是把JavaScript带到了一个新的台阶,JavaScript语言的强大,大大释放了前端开发人员的生产力,让前端得以开发更为复杂的代码和程序,于是像React和Vue这样的框架开始成为前端编程的不二之选。
|
||
|
||
我一直认为学习任何知识都要从基础出发,所以这篇文章我会着重介绍基础知识和基本原理,尤其是如下的这些知识,都是前端程序员需要花力气啃下来的硬骨头。
|
||
|
||
<li>
|
||
**JavaScript的核心原理**。这里我会给出好些网上很不错的讲JavaScript的原理的文章或图书,你一定要学好语言的特性,并且详细了解其中的各种坑。
|
||
</li>
|
||
<li>
|
||
**浏览器的工作原理**。这也是一块硬骨头,我觉得这是前端程序员需要了解和明白的关键知识点,不然,你将无法深入下去。
|
||
</li>
|
||
<li>
|
||
**网络协议HTTP**。也是要着重了解的,尤其是HTTP/2,还有HTTP的几种请求方式:短连接、长连接、Stream连接、WebSocket连接。
|
||
</li>
|
||
<li>
|
||
**前端性能调优**。有了以上的这些基础后,你就可以进入前端性能调优的主题了,我相信你可以很容易上手各种性能调优技术的。
|
||
</li>
|
||
<li>
|
||
**框架学习**。我只给了React和Vue两个框架。就这两个框架来说,Virtual DOM技术是其底层技术,组件化是其思想,管理组件的状态是其重点。而对于React来说,函数式编程又是其编程思想,所以,这些基础技术都是你需要好好研究和学习的。
|
||
</li>
|
||
<li>
|
||
**UI设计**。设计也是前端需要做的一个事,比如像Google的Material UI,或是比较流行的Atomic Design等应该是前端工程师需要学习的。
|
||
</li>
|
||
|
||
而对于工具类的东西,这里我基本没怎么涉及,因为本文主要还是从原理和基础入手。那些工具我觉得都很简单,就像学习Java我没有让你去学习Maven一样,因为只要你去动手了,这种知识你自然就会获得,我们还是把精力重点放在更重要的地方。
|
||
|
||
下面我们从前端基础和底层原理开始讲起。先来讲讲HTML5相关的内容。
|
||
|
||
# HTML 5
|
||
|
||
HTML 5主要有以下几本书推荐。
|
||
|
||
<li>
|
||
[HTML 5权威指南](https://book.douban.com/subject/25786074/) ,本书面向初学者和中等水平Web开发人员,是牢固掌握HTML 5、CSS 3和JavaScript的必读之作。书看起来比较厚,是因为里面的代码很多。
|
||
</li>
|
||
<li>
|
||
[HTML 5 Canvas核心技术](https://book.douban.com/subject/24533314/) ,如果你要做HTML 5游戏的话,这本书必读。
|
||
</li>
|
||
|
||
对于SVG、Canvas和WebGL这三个对应于矢量图、位图和3D图的渲染来说,给前端开发带来了重武器,很多HTML5小游戏也因此蓬勃发展。所以,你可以学习一下。
|
||
|
||
学习这三个技术,我个人觉得最好的地方是MDN。
|
||
|
||
- [SVG: Scalable Vector Graphics](https://developer.mozilla.org/en-US/docs/Web/SVG)
|
||
- [Canvas API](https://developer.mozilla.org/kab/docs/Web/API/Canvas_API)
|
||
- [The WebGL API: 2D and 3D graphics for the web](https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API)
|
||
|
||
最后是几个资源列表。
|
||
|
||
- [Awesome HTML5](https://github.com/diegocard/awesome-html5) 。GitHub上的Awesome HTML5,其中有大量的资源和技术文章。
|
||
- [Awesome SVG](https://github.com/willianjusten/awesome-svg)
|
||
- [Awesome Canvas](https://github.com/raphamorim/awesome-canvas)
|
||
- [Awesome WebGL](https://github.com/sjfricke/awesome-webgl)
|
||
|
||
# CSS
|
||
|
||
在《程序员练级攻略》系列文章最开始,我们就推荐过CSS的在线学习文档,这里再推荐一下 [MDN Web Doc - CSS](https://developer.mozilla.org/zh-CN/docs/Web/CSS) 。我个人觉得只要你仔细读一下文档,CSS并不难学。绝大多数觉得难的,一方面是文档没读透,另一方面是浏览器支持的标准不一致。所以,学好CSS最关键的还是要仔细地读文档。
|
||
|
||
之后,在写CSS的时候,你会发现,你的CSS中有很多看起来相似的东西。你的DRY - Don’t Repeat Yourself洁癖告诉你,这是不对的。所以,你需要学会使用 [LESS](http://lesscss.org/) 和 [SaSS](http://sass-lang.com) 这两个CSS预处理工具,其可以帮你提高很多效率。
|
||
|
||
然后,你需要学习一下CSS的书写规范,前面的《程序员修养》一文中提到过一些,这里再补充几个。
|
||
|
||
- [Principles of writing consistent, idiomatic CSS](https://github.com/necolas/idiomatic-css)
|
||
- [Opinionated CSS styleguide for scalable applications](https://github.com/grvcoelho/css-styleguide)
|
||
- [Google HTML/CSS Style Guide](https://google.github.io/styleguide/htmlcssguide.html)
|
||
|
||
如果你需要更有效率,那么你还需要使用一些CSS Framework,其中最著名的就是Twitter公司的 [Bootstrap](http://getbootstrap.com/),其有很多不错的 UI 组件,页面布局方案,可以让你非常方便也非常快速地开发页面。除此之外,还有,主打清新UI的 [Semantic UI](https://semantic-ui.com/) 、主打响应式界面的 [Foundation](http://foundation.zurb.com/) 和基于Flexbox的 [Bulma](http://bulma.io/)。
|
||
|
||
当然,在使用CSS之前,你需要把你浏览器中的一些HTML标签给标准化掉。所以,推荐几个Reset或标准化的CSS库:[Normalize](https://github.com/necolas/normalize.css)、[MiniRest.css](https://github.com/jgthms/minireset.css)、[sanitize.css](https://github.com/jonathantneal/sanitize.css/) 和 [unstyle.css](https://github.com/Martin-Pitt/css-unstyle)。
|
||
|
||
关于更多的CSS框架,你可以参看[Awesome CSS Frameworks](https://github.com/troxler/awesome-css-frameworks) 上的列表。
|
||
|
||
接下来,是几个公司的CSS相关实践,供你参考。
|
||
|
||
- [CodePen’s CSS](https://codepen.io/chriscoyier/post/codepens-css)
|
||
- [Github 的 CSS](http://markdotto.com/2014/07/23/githubs-css/)
|
||
- [Medium’s CSS is actually pretty f***ing good](https://medium.com/@fat/mediums-css-is-actually-pretty-fucking-good-b8e2a6c78b06)
|
||
- [CSS at BBC Sport](https://medium.com/bbc-design-engineering/css-at-bbc-sport-part-1-bab546184e66)
|
||
- [Refining The Way We Structure Our CSS At Trello](https://blog.trello.com/refining-the-way-we-structure-our-css-at-trello)
|
||
|
||
最后是一个可以写出可扩展的CSS的阅读列表 [A Scalable CSS Reading List](https://github.com/davidtheclark/scalable-css-reading-list) 。
|
||
|
||
# JavaScript
|
||
|
||
下面是学习JavaScript的一些图书和文章。
|
||
|
||
<li>
|
||
[JavaScript: The Good Parts](https://book.douban.com/subject/11874748/) ,中文翻译版为《JavaScript语言精粹》。这是一本介绍JavaScript语言本质的权威图书,值得任何正在或准备从事JavaScript开发的人阅读,并且需要反复阅读。学习、理解、实践大师的思想,我们才可能站在巨人的肩上,才有机会超越大师,这本书就是开始。
|
||
</li>
|
||
<li>
|
||
[Secrets of the JavaScript Ninja](https://book.douban.com/subject/26638316/) ,中文翻译版为《JavaScript忍者秘籍》,本书是jQuery库创始人编写的一本深入剖析JavaScript语言的书。适合具备一定JavaScript基础知识的读者阅读,也适合从事程序设计工作并想要深入探索JavaScript语言的读者阅读。这本书有很多晦涩难懂的地方,需要仔细阅读,反复琢磨。
|
||
</li>
|
||
<li>
|
||
[Effective JavaScript](https://book.douban.com/subject/25786138/) ,Ecma的JavaScript标准化委员会著名专家撰写,作者凭借多年标准化委员会工作和实践经验,深刻辨析JavaScript的内部运作机制、特性、陷阱和编程最佳实践,将它们高度浓缩为极具实践指导意义的68条精华建议。
|
||
</li>
|
||
<li>
|
||
接下来是ES6的学习,这里给三个学习手册源。
|
||
<ul>
|
||
<li>
|
||
[ES6 in Depth](https://hacks.mozilla.org/category/es6-in-depth/),InfoQ上有相关的中文版 - [ES6 深入浅出](http://www.infoq.com/cn/es6-in-depth/)。还可以看看 [A simple interactive ES6 Feature list](https://codetower.github.io/es6-features?utm_source=mybridge&utm_medium=email&utm_campaign=read_more) ,或是看一下 [阮一峰翻译的ES6的教程](http://es6.ruanyifeng.com) 。
|
||
</li>
|
||
<li>
|
||
[ECMAScript 6 Tools](https://github.com/addyosmani/es6-tools) ,这是一堆ES6工具的列表,可以帮助你提高开发效率。
|
||
</li>
|
||
<li>
|
||
[Modern JS Cheatsheet](https://mbeaudru.github.io/modern-js-cheatsheet/) ,这个Cheatsheet在GitHub上有1万6千颗星,你就可见其影响力了。
|
||
</li>
|
||
|
||
然后,还有一组很不错的《[You Don’t Know JS 系列](https://github.com/getify/You-Dont-Know-JS)》 的书。
|
||
|
||
- [You Don’t Know JS: “Up & Going”](https://github.com/getify/You-Dont-Know-JS/blob/master/up%20&%20going/README.md#you-dont-know-js-up--going)
|
||
- [You Don’t Know JS: “Scope & Closures”](https://github.com/getify/You-Dont-Know-JS/blob/master/scope%20&%20closures/README.md#you-dont-know-js-scope--closures)
|
||
- [You Don’t Know JS: “this & Object Prototypes”](https://github.com/getify/You-Dont-Know-JS/blob/master/this%20&%20object%20prototypes/README.md#you-dont-know-js-this--object-prototypes)
|
||
- [You Don’t Know JS: “Types & Grammar”](https://github.com/getify/You-Dont-Know-JS/blob/master/types%20&%20grammar/README.md#you-dont-know-js-types--grammar)
|
||
- [You Don’t Know JS: “Async & Performance”](https://github.com/getify/You-Dont-Know-JS/blob/master/async%20&%20performance/README.md#you-dont-know-js-async--performance)
|
||
- [You Don’t Know JS: “ES6 & Beyond”](https://github.com/getify/You-Dont-Know-JS/blob/master/es6%20&%20beyond/README.md#you-dont-know-js-es6--beyond)
|
||
|
||
接下来是一些和编程范式相关的文章。
|
||
|
||
<li>
|
||
[Glossary of Modern JavaScript Concepts: Part 1](https://auth0.com/blog/glossary-of-modern-javascript-concepts/) ,首先推荐这篇文章,其中收集了一些编程范式方面的内容,比如纯函数、状态、可变性和不可变性、指令型语言和声明式语言、函数式编程、响应式编程、函数式响应编程。
|
||
</li>
|
||
<li>
|
||
[Glossary of Modern JavaScript Concepts: Part 2](https://auth0.com/blog/glossary-of-modern-javascript-concepts-part-2/) ,在第二部分中主要讨论了作用域和闭包,数据流,变更检测,组件化……
|
||
</li>
|
||
|
||
下面三篇文章是德米特里·索什尼科夫(Dmitry Soshnikov)个人网站上三篇讲JavaScript内在的文章。
|
||
|
||
- [JavaScript. The Core: 2nd Edition](http://dmitrysoshnikov.com/ecmascript/javascript-the-core-2nd-edition/)
|
||
- [JavaScript. The Core (older ES3 version)](http://dmitrysoshnikov.com/ecmascript/javascript-the-core/)
|
||
- [JS scope: static, dynamic, and runtime-augmented](https://medium.com/@DmitrySoshnikov/js-scope-static-dynamic-and-runtime-augmented-5abfee6223fe)
|
||
|
||
“**How JavaScript Works**” 是一组非常不错的文章(可能还没有写完),强烈推荐。这一系列的文章是SessionStake的CEO写的,现在有13篇,我感觉可能还没有写完。这个叫 [亚历山大·兹拉特科夫(Alexander Zlatkov)](https://blog.sessionstack.com/@zlatkov) 的CEO太猛了。
|
||
|
||
<li>
|
||
[An overview of the engine, the runtime, and the call stack](https://blog.sessionstack.com/how-does-javascript-actually-work-part-1-b0bacc073cf)
|
||
</li>
|
||
<li>
|
||
[Inside the V8 engine + 5 tips on how to write optimized code](https://blog.sessionstack.com/how-javascript-works-inside-the-v8-engine-5-tips-on-how-to-write-optimized-code-ac089e62b12e) ,了解V8引擎。这里,也推荐 [Understanding V8’s Bytecode](https://medium.com/dailyjs/understanding-v8s-bytecode-317d46c94775) 这篇文章可以让你了解V8引擎的底层字节码。
|
||
</li>
|
||
<li>
|
||
[Memory management + how to handle 4 common memory leaks](https://blog.sessionstack.com/how-javascript-works-memory-management-how-to-handle-4-common-memory-leaks-3f28b94cfbec) ,内存管理和4种常见的内存泄露问题。
|
||
</li>
|
||
<li>
|
||
[Event loop and the rise of Async programming + 5 ways to better coding with async/await](https://blog.sessionstack.com/how-javascript-works-event-loop-and-the-rise-of-async-programming-5-ways-to-better-coding-with-2f077c4438b5) ,Event Loop和异步编程。
|
||
</li>
|
||
<li>
|
||
[Deep dive into WebSockets and HTTP/2 with SSE + how to pick the right path](https://blog.sessionstack.com/how-javascript-works-deep-dive-into-websockets-and-http-2-with-sse-how-to-pick-the-right-path-584e6b8e3bf7) ,WebSocket和HTTP/2。
|
||
</li>
|
||
<li>
|
||
[A comparison with WebAssembly + why in certain cases it’s better to use it over JavaScript](https://blog.sessionstack.com/how-javascript-works-a-comparison-with-webassembly-why-in-certain-cases-its-better-to-use-it-d80945172d79) ,JavaScript内在原理。
|
||
</li>
|
||
<li>
|
||
[The building blocks of Web Workers + 5 cases when you should use them](https://blog.sessionstack.com/how-javascript-works-the-building-blocks-of-web-workers-5-cases-when-you-should-use-them-a547c0757f6a) ,Web Workers技术。
|
||
</li>
|
||
<li>
|
||
[Service Workers, their lifecycle and use cases](https://blog.sessionstack.com/how-javascript-works-service-workers-their-life-cycle-and-use-cases-52b19ad98b58) ,Service Worker技术。
|
||
</li>
|
||
<li>
|
||
[The mechanics of Web Push Notifications](https://blog.sessionstack.com/how-javascript-works-the-mechanics-of-web-push-notifications-290176c5c55d) ,Web端Push通知技术。
|
||
</li>
|
||
<li>
|
||
[Tracking changes in the DOM using MutationObserver](https://blog.sessionstack.com/how-javascript-works-tracking-changes-in-the-dom-using-mutationobserver-86adc7446401) ,Mutation Observer技术。
|
||
</li>
|
||
<li>
|
||
[The rendering engine and tips to optimize its performance](https://blog.sessionstack.com/how-javascript-works-the-rendering-engine-and-tips-to-optimize-its-performance-7b95553baeda) ,渲染引擎和性能优化。
|
||
</li>
|
||
<li>
|
||
[Inside the Networking Layer + How to Optimize Its Performance and Security](https://blog.sessionstack.com/how-javascript-works-inside-the-networking-layer-how-to-optimize-its-performance-and-security-f71b7414d34c) ,网络性能和安全相关。
|
||
</li>
|
||
<li>
|
||
[Under the hood of CSS and JS animations + how to optimize their performance](https://blog.sessionstack.com/how-javascript-works-under-the-hood-of-css-and-js-animations-how-to-optimize-their-performance-db0e79586216) ,CSS和JavaScript动画性能优化。
|
||
</li>
|
||
|
||
接下来是Google Chrome工程经理 [阿迪·奥斯马尼(Addy Osmani)](https://medium.com/@addyosmani) 的几篇JavaScript性能相关的文章,也是非常好的。
|
||
|
||
- [The Cost Of JavaScript](https://medium.com/dev-channel/the-cost-of-javascript-84009f51e99e)
|
||
- [JavaScript Start-up Performance](https://medium.com/reloading/javascript-start-up-performance-69200f43b201)
|
||
|
||
其它与JavaScript相关的资源。
|
||
|
||
<li>
|
||
[JavScript has Unicode Problem](https://mathiasbynens.be/notes/javascript-unicode) ,这是一篇很有价值的JavaScript处理Unicode的文章。
|
||
</li>
|
||
<li>
|
||
[JavaScript Algorithms](https://mgechev.github.io/javascript-algorithms/index.html) ,用JavaScript实现的各种基础算法库。
|
||
</li>
|
||
<li>
|
||
[JavaScript 30 秒代码](https://github.com/Chalarangelo/30-seconds-of-code) ,一堆你可以在30秒内看懂各种有用的JavaScript的代码,在GitHub上有2万颗星了。
|
||
</li>
|
||
<li>
|
||
[What the f*ck JavaScript](https://github.com/denysdovhan/wtfjs) ,一堆JavaScript搞笑和比较tricky的样例。
|
||
</li>
|
||
<li>
|
||
[Airbnb JavaScript Style Guide](https://github.com/airbnb/javascript) ,Airbnb的JavaScript的代码规范,GitHub上有7万多颗星。
|
||
</li>
|
||
<li>
|
||
[JavaScript Patterns for 2017](https://www.youtube.com/watch?v=hO7mzO83N1Q) ,YouTube上的一个JavaScript模式分享,值得一看。
|
||
</li>
|
||
|
||
# 浏览器原理
|
||
|
||
你需要了解一下浏览器是怎么工作的,所以,你必需要看《[How browsers work](http://taligarsiel.com/Projects/howbrowserswork1.htm)》。这篇文章受众之大,后来被人重新整理并发布为《[How Browsers Work: Behind the scenes of modern web browsers](https://www.html5rocks.com/en/tutorials/internals/howbrowserswork/)》,其中还包括中文版。这篇文章非常非常长,所以,你要有耐心看完。如果你想看个精简版的,可以看我在Coolshell上发的《[浏览器的渲染原理简介](https://coolshell.cn/articles/9666.html)》或是看一下[这个幻灯片](http://arvindr21.github.io/howBrowserWorks)。
|
||
|
||
然后,是对Virtual DOM的学习。Virtual DOM是React的一个非常核心的技术细节,它也是前端渲染和性能的关键技术。所以,你有必要要好好学习一下这个技术的实现原理和算法。当然,前提条件是你需要学习过前面我所推荐过的浏览器的工作原理。下面是一些不错的文章可以帮你学习这一技术。
|
||
|
||
- [How to write your own Virtual DOM](https://medium.com/@deathmood/how-to-write-your-own-virtual-dom-ee74acc13060)
|
||
- [Write your Virtual DOM 2: Props & Events](https://medium.com/@deathmood/write-your-virtual-dom-2-props-events-a957608f5c76)
|
||
- [How Virtual-DOM and diffing works in React](https://medium.com/@gethylgeorge/how-virtual-dom-and-diffing-works-in-react-6fc805f9f84e)
|
||
- [The Inner Workings Of Virtual DOM](https://medium.com/@rajaraodv/the-inner-workings-of-virtual-dom-666ee7ad47cf)
|
||
- [深度剖析:如何实现一个 Virtual DOM 算法](https://github.com/livoras/blog/issues/13)
|
||
<li>以及两个Vitual-DOM实现供你参考:
|
||
<ul>
|
||
- [Matt-Esch/Virtual-DOM](https://github.com/Matt-Esch/virtual-dom)
|
||
- [Maquette](https://maquettejs.org/)
|
||
|
||
# 网络协议
|
||
|
||
<li>
|
||
[High Performance Browser Networking](https://book.douban.com/subject/25856314/) ,本书是谷歌公司高性能团队核心成员的权威之作,堪称实战经验与规范解读完美结合的产物。本书目标是涵盖Web开发者技术体系中应该掌握的所有网络及性能优化知识。
|
||
全书以性能优化为主线,从TCP、UDP 和TLS协议讲起,解释了如何针对这几种协议和基础设施来优化应用。然后深入探讨了无线和移动网络的工作机制。最后,揭示了HTTP协议的底层细节,同时详细介绍了HTTP 2.0、 XHR、SSE、WebSocket、WebRTC和DataChannel等现代浏览器新增的能力。
|
||
</li>
|
||
<li>
|
||
另外,[HTTP/2](https://en.wikipedia.org/wiki/HTTP/2)也是HTTP的一个新的协议,于2015年被批准通过,现在基本上所有的主流浏览器都默认启用这个协议。所以,你有必要学习一下这个协议。下面相关的学习资源。
|
||
<ul>
|
||
- [Gitbook - HTTP/2详解](https://legacy.gitbook.com/book/ye11ow/http2-explained/details)
|
||
- [http2 explained](http://daniel.haxx.se/http2/)([中译版](https://www.gitbook.com/book/ye11ow/http2-explained/details))
|
||
- [HTTP/2 for a Faster Web](https://cascadingmedia.com/insites/2015/03/http-2.html)
|
||
- [Nginx HTTP/2 白皮书](https://www.nginx.com/wp-content/uploads/2015/09/NGINX_HTTP2_White_Paper_v4.pdf)
|
||
<li>HTTP/2的两个RFC:
|
||
<ul>
|
||
- [RFC 7540 - Hypertext Transfer Protocol Version 2 (HTTP/2)](https://httpwg.org/specs/rfc7540.html) ,HTTP/2的协议本身。
|
||
- [RFC 7541 - HPACK: Header Compression for HTTP/2](https://httpwg.org/specs/rfc7541.html) ,HTTP/2的压缩算法。
|
||
|
||
新的HTML5支持 [WebSocket](https://en.wikipedia.org/wiki/WebSocket),所以,这也是你要学的一个重要协议。
|
||
|
||
<li>
|
||
[HTML5 WebSocket: A Quantum Leap in Scalability for the Web](http://www.websocket.org/quantum.html) ,这篇文章比较了HTTP的几种链接方式,Polling、Long Polling和Streaming,并引入了终级解决方案WebSocket。你知道的,了解一个技术的缘由是非常重要的。
|
||
</li>
|
||
<li>
|
||
[StackOverflow: My Understanding of HTTP Polling, Long Polling, HTTP Streaming and WebSockets](https://stackoverflow.com/questions/12555043/my-understanding-of-http-polling-long-polling-http-streaming-and-websockets) ,这是StackOverflow上的一个HTTP各种链接方式的比较,也可以让你有所认识。
|
||
</li>
|
||
<li>
|
||
[An introduction to Websockets](http://blog.teamtreehouse.com/an-introduction-to-websockets) ,一个WebSocket的简单教程。
|
||
</li>
|
||
<li>
|
||
[Awesome Websockets](https://github.com/facundofarias/awesome-websockets) ,GitHub的Awesome资源列表。
|
||
</li>
|
||
<li>
|
||
一些和WebSocket相关的想法,可以开阔你的思路:
|
||
<ul>
|
||
- [Introducing WebSockets: Bringing Sockets to the Web](https://www.html5rocks.com/en/tutorials/websockets/basics/)
|
||
- [Websockets 101](http://lucumr.pocoo.org/2012/9/24/websockets-101/)
|
||
- [Real-Time Web by Paul Banks](https://banksco.de/p/state-of-realtime-web-2016.html)
|
||
- [Are WebSockets the future?](https://samsaffron.com/archive/2015/12/29/websockets-caution-required)
|
||
|
||
# 小结
|
||
|
||
总结一下今天的内容。我一直认为学习任何知识都要从基础出发,所以今天我主要讲述了HTML 5、CSS 3和JavaScript(ES6)这三大基础核心,给出了大量的图书、文章以及其他一些相关的学习资源。之后,我建议你学习浏览器的工作原理和网络协议相关的内容。我认为,掌握这些原理也是学好前端知识的前提和基础。值得花时间,好好学习消化。
|
||
|
||
下篇文章中,我们将讲讲如何做前端性能优化,并推荐一些好用的前端框架。敬请期待。
|
||
|
||
下面是《程序员练级攻略》系列文章的目录。
|
||
|
||
- [开篇词](https://time.geekbang.org/column/article/8136)
|
||
<li>入门篇
|
||
<ul>
|
||
- [零基础启蒙](https://time.geekbang.org/column/article/8216)
|
||
- [正式入门](https://time.geekbang.org/column/article/8217)
|
||
|
||
- [程序员修养](https://time.geekbang.org/column/article/8700)
|
||
|
||
- [编程语言](https://time.geekbang.org/column/article/8701)
|
||
- [理论学科](https://time.geekbang.org/column/article/8887)
|
||
- [系统知识](https://time.geekbang.org/column/article/8888)
|
||
|
||
- [软件设计](https://time.geekbang.org/column/article/9369)
|
||
|
||
- [Linux系统、内存和网络(系统底层知识)](https://time.geekbang.org/column/article/9759)
|
||
- [异步I/O模型和Lock-Free编程(系统底层知识)](https://time.geekbang.org/column/article/9851)
|
||
- [Java底层知识](https://time.geekbang.org/column/article/10216)
|
||
- [数据库](https://time.geekbang.org/column/article/10301)
|
||
- [分布式架构入门(分布式架构)](https://time.geekbang.org/column/article/10603)
|
||
- [分布式架构经典图书和论文(分布式架构)](https://time.geekbang.org/column/article/10604)
|
||
- [分布式架构工程设计(分布式架构)](https://time.geekbang.org/column/article/11232)
|
||
- [微服务](https://time.geekbang.org/column/article/11116)
|
||
- [容器化和自动化运维](https://time.geekbang.org/column/article/11665)
|
||
- [机器学习和人工智能](https://time.geekbang.org/column/article/11669)
|
||
- [前端基础和底层原理(前端方向)](https://time.geekbang.org/column/article/12271)
|
||
- [前端性能优化和框架(前端方向)](https://time.geekbang.org/column/article/12389)
|
||
- [UI/UX设计(前端方向)](https://time.geekbang.org/column/article/12486)
|
||
- [技术资源集散地](https://time.geekbang.org/column/article/12561)
|
||
|
||
|