Async JavaScript: Build More Responsive Apps with Less Code

0
(0)

Async JavaScript: Build More Responsive Apps with Less Code
 

  • Author:Trevor Burnham
  • Length: 98 pages
  • Edition: 1
  • Publisher: Pragmatic Bookshelf, The
  • Publication Date: 2017-07-12
  • ISBN-10: 1937785270
  • ISBN-13: 9781937785277
  • Sales Rank: #2131479 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    With the advent of HTML5, front-end MVC, and Node.js, JavaScript is ubiquitous–and still messy. This book will give you a solid foundation for managing async tasks without losing your sanity in a tangle of callbacks. It’s a fast-paced guide to the most essential techniques for dealing with async behavior, including PubSub, evented models, and Promises. With these tricks up your sleeve, you’ll be better prepared to manage the complexity of large web apps and deliver responsive code. With Async JavaScript, you’ll develop a deeper understanding of the JavaScript language. You’ll start with a ground-up primer on the JavaScript event model–key to avoiding many of the most common mistakes JavaScripters make. From there you’ll see tools and design patterns for turning that conceptual understanding into practical code. The concepts in the book are illustrated with runnable examples drawn from both the browser and the Node.js server framework, incorporating complementary libraries including jQuery, Backbone.js, and Async.js. You’ll learn how to create dynamic web pages and highly concurrent servers by mastering the art of distributing events to where they need to be handled, rather than nesting callbacks within callbacks within callbacks. Async JavaScript will get you up and running with real web development quickly. By the time you’ve finished the Promises chapter, you’ll be parallelizing Ajax requests or running animations in sequence. By the end of the book, you’ll even know how to leverage Web Workers and AMD for JavaScript applications with cutting-edge performance. Most importantly, you’ll have the knowledge you need to write async code with confidence. What You Need: Basic knowledge of JavaScript is recommended. If you feel that you’re not up to speed, see the “Resources for Learning JavaScript” section in the preface.

    中文:

    书名:异步JavaScript:用更少的代码构建更具响应性的应用程序

    随着HTML5、前端MVC和Node.js的出现,JavaScript无处不在,而且仍然很混乱。这本书将给你一个坚实的基础来管理异步任务,而不会在混乱的回调中失去理智。这是一本快节奏的指南,介绍了处理异步行为的最基本的技术,包括PubSub、事件模型和承诺。有了这些诀窍,你就能更好地管理大型网络应用程序的复杂性并交付响应性代码。使用异步JavaScript,您将加深对JavaScript语言的理解。您将从一个关于Java事件模型的入门读物开始学习,这是避免许多最常见的Java脚本错误的关键。在那里,您将看到将概念理解转化为实际代码的工具和设计模式。书中的概念通过来自浏览器和Node.js服务器框架的可运行示例进行了说明,这些示例包含了补充库,包括jQuery、Backbone.js和Async.js。通过掌握将事件分发到需要处理的位置的技巧,而不是在回调中嵌套回调,您将学习如何创建动态网页和高并发服务器。Async JavaScript将让您快速启动并运行真正的Web开发。当你读完《承诺》这一章时,你将会并行化AJAX请求或按顺序运行动画。到本书结束时,您甚至会知道如何利用Web Worker和AMD for JavaScript应用程序的尖端性能。最重要的是,您将拥有自信地编写异步代码所需的知识。需要:我们推荐您具备基本的JavaScript知识。如果您觉得自己跟不上进度,请参阅前言中的《学习JavaScript的参考资料》部分。

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册