Modern Asynchronous JavaScript

0
(0)

Modern Asynchronous JavaScript
 

  • Author:Faraz K. Kelhini
  • Length: 143 pages
  • Edition: 1
  • Publisher: Pragmatic Bookshelf
  • Publication Date: 2021-12-17
  • ISBN-10: B09NQQ8715
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    JavaScript today must interact with data-intensive APIs and networks. The solution is a program that can work asynchronously instead of finishing tasks in order. In modern JavaScript, instead of callbacks you’ll use promises to improve your application’s performance and responsiveness. JavaScript features introduced in ES2020, ES2021, and ESNext like Promise.allSettled(), Promise.any(), and top-level await help you develop small, fast, low-profile applications. With the AbortController API, cancel a pending async request before it has completed. Modern Asynchronous JavaScript gives you an arsenal of tools to build programs that always respond to user requests, recover quickly from difficult conditions, and deliver maximum performance.

    Applications today must work with information on remote servers, and users expect a quick response to complex interactions at all times, whether on a high-speed 5G cellular network or slow public WiFi. JavaScript provides developers with advanced tools to coordinate the asynchronous parts of their code efficiently and deliver responsive programs. Faster applications equal happier users, which is the promise of asynchronous JavaScript.

    With Modern Asynchronous JavaScript you’ll learn techniques for managing your async code. Features like ES2021 Promise.any() allow you to safeguard your async code from external issues that are out of your control like server downtime. You’ll discover secret weapons like top-level await to initialize resources, define dependency paths dynamically, and load dependencies with a fallback implementation. You’ll even learn to how to set a time limit for async requests and react if they take too long to complete.

    Fast, reliable applications are a must in today’s world, where users demand increasingly greater amounts of data on mobile devices. Asynchronous programming may require more cautious planning than synchronous programming but the outcome is rewarding. Asynchronous JavaScript allows you to write code that is nimble but reliable, leading to programs that load faster, respond quicker, and most importantly that you can trust to function properly.

    What You Need:

    You’ll need an intermediate level of JavaScript programming skills and a browser that supports features from ES2020, ES2021, and ESNext.

    中文:

    书名:Modern Asynchronous JavaScript

    如今的JavaScript必须与数据密集型API和网络进行交互。解决方案是一个可以工作的程序。asynchronously而不是按顺序完成任务。在现代的JavaScript中,您将使用Promise来提高应用程序的性能和响应性,而不是使用回调。ES2020、ES2021和ESNext中引入的Java特性,如Promise.allSetted()、Promise.any()和顶层等待帮助您开发小型、快速、低调的应用程序。使用AbortController API,可以在挂起的异步请求完成之前将其取消。现代异步Java脚本它为您提供了大量工具来构建始终响应用户请求、快速从困难条件中恢复并提供最高性能的程序。

    今天的应用程序必须处理远程服务器上的信息,用户希望随时对复杂的交互做出快速响应,无论是在高速5G蜂窝网络上还是在低速公共WiFi上。JavaScript为开发人员提供了高级工具,以高效地协调其代码的异步部分并交付响应程序。更快的应用程序等于更快乐的用户,这是异步JavaScript的承诺。

    With 现代异步Java脚本您将学习管理您的异步代码的技术。像ES2021 Promise.any()这样的功能允许您保护您的异步代码不受外部问题的影响,例如服务器停机。您将发现一些秘密武器,比如顶级等待初始化资源、动态定义依赖项路径以及使用备用实现加载依赖项。您甚至将学习如何设置异步请求的时间限制,并在它们花费太长时间完成时做出反应。

    在当今这个用户要求移动设备上的数据量越来越大的世界里,快速、可靠的应用程序是必不可少的。与同步编程相比,异步编程可能需要更谨慎的规划,但结果是值得的。异步JavaScript允许您编写灵活但可靠的代码,从而使程序加载更快、响应更快,最重要的是,您可以信任这些程序能够正常运行。

    What You Need:

    您将需要中等水平的JavaScript编程技能,以及支持ES2020、ES2021和ESNext功能的浏览器。

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

    点击星号评分!

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

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

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册