JavaScript Concurrency Paperback – January 6, 2016
暫譯: JavaScript 並發
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,220$2,109
商品描述
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 Concurrency》是為任何希望學習如何撰寫更高效、強大且可維護的應用程式的 JavaScript 開發者而寫,這些應用程式利用了 JavaScript 語言的最新發展。
本書涵蓋了並行、非同步和平行程式設計的所有方面,從基本原則開始,到了書的結尾,您將能夠創建一個完整的應用程式,充分利用書中涵蓋的所有主題。
您將學到什麼
- 確切了解 JavaScript 在網頁瀏覽器環境中的運作方式,以及這些機制如何驅動我們的事件驅動 JavaScript 代碼
- 使用 promises 將複雜的同步場景轉化為可讀且可維護的值
- 使用 generators 懶惰地計算值,避免不必要的記憶體分配
- 撰寫不會讓人感覺像是並行代碼的並行代碼,通過抽象化繁瑣的工作
- 利用 web workers 實現真正的硬體平行性,以獲得更好的性能
- 理解 NodeJS 的並行模型,並學習為什麼它適合 I/O 密集型的網頁應用程式
詳細內容
並行程式設計聽起來可能抽象且複雜,但它有助於提供更好的用戶體驗。使用單線程的 JavaScript,應用程式缺乏動態性。這意味著當 JavaScript 代碼運行時,其他事情無法發生。DOM 無法更新,這意味著 UI 凍結。在用戶期望速度和響應性的世界中——在所有意義上——這是任何開發者都無法承受的。
幸運的是,JavaScript 已經發展出並行能力——這是它仍然位於現代網頁開發前沿的原因之一。本書幫助您深入了解並行 JavaScript,並展示如何將其核心原則和關鍵技術及工具應用於一系列複雜的開發挑戰。圍繞並行性的三個核心原則——平行性、同步和保護——您將學習到解鎖更高效且動態的 JavaScript 所需的一切,為更好的用戶體驗奠定基礎。
在整本書中,您將學習如何通過使用一系列開發方法將這些原則付諸實踐。涵蓋從 JavaScript promises、web workers、generators 到函數式程式設計技術的所有內容,您所學到的一切都將對您的應用程式性能產生實際影響。您還將學習如何在客戶端和伺服器之間移動,以實現更無縫且充分實現的開發方法。隨著對 Node.js 的並行程式設計的進一步指導,《JavaScript Concurrency》致力於讓您成為更好的網頁開發者。
最優秀的開發者知道,出色的設計不僅僅關乎 UI——透過並行性,您可以自信地確保每個項目都將被專業設計,以保證其動態性和強大性。