JavaScript Concurrency Paperback – January 6, 2016
Adam Boduch
- 出版商: Packt Publishing
- 出版日期: 2015-12-24
- 定價: $1,470
- 售價: 8.0 折 $1,176
- 語言: 英文
- 頁數: 292
- 裝訂: Paperback
- ISBN: 1785889230
- ISBN-13: 9781785889233
-
相關分類:
JavaScript
立即出貨 (庫存=1)
買這商品的人也買了...
-
$580$452 -
$2,180$2,071
相關主題
商品描述
Build better software with concurrent JavaScript programming, and unlock a more efficient and forward thinking approach to web development
About This Book
- Apply the core principles of concurrency to both browser and server side development
- Explore the latest tools and techniques at the forefront of concurrent programming, including JavaScript promises, web workers, and generators
- Learn how concurrent and parallel programming can help you tackle the challenges of fast, data heavy web development
Who This Book Is For
JavaScript Concurrency is written for any JavaScript developer who wants to learn how to write more efficient, powerful, and maintainable applications that utilize the latest developments in the JavaScript language.
All aspects of concurrent, asynchronous, and parallel programming are covered from first principles and by the end of the book you'll be able to create a fully-worked application that leverages all the topics covered in the book.
What You Will Learn
- Understand exactly how JavaScript works in a web browser environment, and how these mechanisms power our event-driven JavaScript code
- Use promises to turn complex synchronization scenarios into readable and maintainable values
- Compute values lazily and avoid unnecessary memory allocations using generators.
- Write concurrent code that doesn't feel like concurrent code by abstracting away boilerplate chores
- Leverage true hardware parallelism with web workers to get a better performance
- Get to grips with the NodeJS model of concurrency and learn why it's good for I/O-intensive web applications
In Detail
Concurrent programming may sound abstract and complex, but it helps to deliver a better user experience. With single threaded JavaScript, applications lack dynamism. This means that when JavaScript code is running, nothing else can happen. The DOM can't update, which means the UI freezes. In a world where users expect speed and responsiveness - in all senses of the word - this is something no developer can afford.
Fortunately, JavaScript has evolved to adopt concurrent capabilities - one of the reasons why it is still at the forefront of modern web development. This book helps you dive into concurrent JavaScript, and demonstrates how to apply its core principles and key techniques and tools to a range of complex development challenges. Built around the three core principles of concurrency - parallelism, synchronization, and conservation - you'll learn everything you need to unlock a more efficient and dynamic JavaScript, to lay the foundations of even better user experiences.
Throughout the book you'll learn how to put these principles into action by using a range of development approaches. Covering everything from JavaScript promises, web workers, generators and functional programming techniques, everything you learn will have a real impact on the performance of your applications. You'll also learn how to move between client and server, for a more frictionless and fully realized approach to development. With further guidance on concurrent programming with Node.js, JavaScript Concurrency is committed to making you a better web developer.
The best developers know that great design is about more than the UI - with concurrency, you can be confident every your project will be expertly designed to guarantee its dynamism and power.
商品描述(中文翻譯)
使用並行JavaScript編程來構建更好的軟件,並解鎖一種更高效和前瞻性的網絡開發方法。
關於本書
- 將並行的核心原則應用於瀏覽器和服務器端開發。
- 探索並行編程的最新工具和技術,包括JavaScript promises、web workers和generators。
- 學習如何通過並行和並行編程來應對快速、數據密集的網絡開發挑戰。
本書適合對JavaScript有興趣的開發人員,他們想要學習如何編寫更高效、功能強大且易於維護的應用程序,並利用JavaScript語言的最新發展。
本書從基本原則開始涵蓋了並行、異步和並行編程的所有方面,到書的結尾,您將能夠創建一個完全工作的應用程序,利用了本書中涵蓋的所有主題。
您將學到的內容:
- 瞭解JavaScript在Web瀏覽器環境中的工作原理,以及這些機制如何驅動我們的事件驅動JavaScript代碼。
- 使用promises將複雜的同步場景轉換為可讀性和可維護性的值。
- 使用generators計算值的懶惰和避免不必要的內存分配。
- 通過抽象掉樣板任務,編寫不像並行代碼的並行代碼。
- 利用web workers實現真正的硬件並行性,以獲得更好的性能。
- 熟悉Node.js的並行模型,並瞭解為什麼它適用於I/O密集型Web應用程序。
詳細內容
並行編程可能聽起來抽象和複雜,但它有助於提供更好的用戶體驗。單線程的JavaScript應用程序缺乏動態性。這意味著當JavaScript代碼運行時,其他任務無法執行。DOM無法更新,這意味著UI凍結。在用戶期望速度和響應性的世界中,這是任何開發人員都無法承受的。
幸運的是,JavaScript已經發展出並行能力,這也是它仍然處於現代Web開發前沿的原因之一。本書幫助您深入了解並行JavaScript,並演示如何將其核心原則、關鍵技術和工具應用於各種複雜的開發挑戰。圍繞並行的三個核心原則-並行性、同步性和保護性-您將學習一切必要的知識,以解鎖更高效和動態的JavaScript,為更好的用戶體驗奠定基礎。
在整本書中,您將學習如何通過使用各種開發方法來實踐這些原則。涵蓋了JavaScript promises、web workers、generators和函數式編程技術等方方面面,您所學到的一切都將對應用程序的性能產生實際影響。您還將學習如何在客戶端和服務器之間移動,實現更無摩擦和完全實現的開發方法。通過進一步指導使用Node.js進行並行編程,JavaScript Concurrency致力於使您成為更好的Web開發人員。
最好的開發人員知道,優秀的設計不僅僅是UI-通過並行,您可以確信每個項目都將被專業設計,以保證其動態性和功能性。