Skip to Content
精通模块化JavaScript
book

精通模块化JavaScript

by Nicolás Bevacqua
April 2020
Intermediate to advanced
177 pages
1h 45m
Chinese
Publishing House of Electronics Industry
Content preview from 精通模块化JavaScript
为什么要使用模块化
JavaScript
ix
这些开发人员以及对易读、易维护、可扩展性强的模块化编程(甚至不限
JavaScript
语言)感兴趣的人,都可以从本书中受益。
为什么要使用模块化
JavaScript
刚开始我是抱着试着玩的心态接触
Node.js
的,但不知不觉喜欢上了
JavaScript
。与此同时,我发现了开源并且爱上了这种实践。与
C#
封闭的
环境对比,
Node.js
的开源生态让我在怎样写出更便于他人使用的健壮代码
方面找到了新的视角和乐趣。在这个背景下,我发现自己喜欢思考怎样定
义接口,谁会使用接口,还有如何让用户有更多时间做其他事而不是花时
间弄明白我们想让他做什么。
本书旨在提供一种友好的方法来帮助人们编写出好的模块化代码。并不是
JavaScript
模块特别难写,而是说我们要遵循合理的设计实践来恰当地
分配简单性和灵活性,以便用户在多数情况下可以依赖于简单且足够灵活
的模块,同时保证内部复杂性是可控的——这并不是一件简单的事情。我
曾经在
JavaScript Application Design
1
一书和
Pony Foo
博客里零散地写过一
些最佳应用设计的内容,但我一直渴望出版一本全面讨论如何分析、设计、
编写模块化代码的书籍。
尽管找不到哪本书是从
JavaScript
的角度专门阐述这个主题的,不过我能
很容易地找到涉及模块化代码主题的书籍,例如
Steve McConnell
所著的《代
码大全》(
Microsoft Press
)或者
Robert C. Martin
所著的《代码整洁之道》
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

数据驱动力:企业数据分析实战

数据驱动力:企业数据分析实战

Carl Anderson
基于Python的智能文本分析

基于Python的智能文本分析

Benjamin Bengfort, Rebecca Bilbro, Tony Ojeda
Lua游戏AI开发指南

Lua游戏AI开发指南

Posts & Telecom Press, David Young

Publisher Resources

ISBN: 9787121387074