Flux Architecture
暫譯: Flux 架構
Adam Boduch
- 出版商: Packt Publishing
- 出版日期: 2016-05-23
- 售價: $2,010
- 貴賓價: 9.5 折 $1,910
- 語言: 英文
- 頁數: 352
- 裝訂: Paperback
- ISBN: 1786465817
- ISBN-13: 9781786465818
-
相關翻譯:
Flux 架構 (Flux architecture) (簡中版)
海外代購書籍(需單獨結帳)
商品描述
Key Features
- This the first resource dedicated to the new architectural pattern that powers Facebook
- You'll learn all the tips and tricks you need to get the most out of Flux
- Filled with practical, hands-on samples, you'll not only understand how Flux works, but will be able to start building Flux-powered applications straight away
- Written by Adam Boduch, software architect at Virtustream (EMC), and author of JavaScript at Scale, JavaScript Concurrency, and jQuery UI Cookbook for Packt Publishing
Book Description
Whilst React has become Facebook's poster-child for clean, complex, and modern web development, it has quietly been underpinned by its simplicity. It's just a view. The real beauty in React is actually the architectural pattern that handles data in and out of React applications: Flux. With Flux, you're able to build data-rich applications that engage your users, and scale to meet every demand. It is a key part of the Facebook technology stack that serves billions of users every day.
This book will start by introducing the Flux pattern and help you get an understanding of what it is and how it works. After this, we'll build real-world React applications that highlight the power and simplicity of Flux in action. Finally, we look at the landscape of Flux and explore the Alt and Redux libraries that make React and Flux developments easier.
Filled with fully-worked examples and code-first explanations, by the end of the book, you'll not only have a rock solid understanding of the architecture, but will be ready to implement Flux architecture in anger.
What you will learn
- Understand the Flux pattern and how it will impact your React applications
- Build real-world applications that rely on Flux
- Handle asynchronous actions in your application
- Implement immutable stores with Immutable.js
- Replace React.js with alternate View components such as jQuery and Handlebars
- Test and benchmark your Flux architecture using Jest―Facebook's enhancement of the Jasmine library
About the Author
Adam Boduch has been involved with large-scale JavaScript development for nearly 10 years. Before moving to the front end, he worked on several large-scale cloud computing products using Python and Linux. No stranger to complexity, Adam has practical experience with real-world software systems and the scaling challenges they pose.
He is the author of several JavaScript books, including JavaScript Concurrency, and is passionate about innovative user experiences and high performance.
Table of Contents
- What is Flux?
- Principles of Flux
- Building a Skeleton Architecture
- Creating Actions
- Asynchronous Actions
- Changing Flux Store State
- Viewing Information
- Information Lifecycle
- Immutable Stores
- Implementing a Dispatcher
- Alternative View Components
- Leveraging Flux Libraries
- Testing and Performance
- Flux and the Software Development Lifecycle
商品描述(中文翻譯)
**主要特點**
- 這是第一本專門介紹支撐 Facebook 的新架構模式的資源
- 您將學到所有技巧和竅門,以充分利用 Flux
- 本書充滿實用的實作範例,您不僅能理解 Flux 的運作方式,還能立即開始構建基於 Flux 的應用程式
- 本書由 Adam Boduch 撰寫,他是 Virtustream(EMC)的軟體架構師,也是 Packt Publishing 的《JavaScript at Scale》、《JavaScript Concurrency》和《jQuery UI Cookbook》的作者
**書籍描述**
雖然 React 已成為 Facebook 在乾淨、複雜和現代網頁開發中的代表,但它的背後卻是其簡單性。它只是一個視圖。React 的真正美在於處理進出 React 應用程式數據的架構模式:Flux。使用 Flux,您能夠構建數據豐富的應用程式,吸引您的用戶,並擴展以滿足各種需求。它是 Facebook 技術堆疊中的一個關鍵部分,每天為數十億用戶提供服務。
本書將首先介紹 Flux 模式,幫助您理解它是什麼以及如何運作。接下來,我們將構建實際的 React 應用程式,突顯 Flux 的力量和簡單性。最後,我們將探討 Flux 的生態系統,並探索使 React 和 Flux 開發更容易的 Alt 和 Redux 庫。
本書充滿完整的範例和以代碼為主的解釋,到了書的結尾,您不僅會對架構有堅實的理解,還會準備好在實際應用中實施 Flux 架構。
**您將學到的內容**
- 理解 Flux 模式及其對您的 React 應用程式的影響
- 構建依賴於 Flux 的實際應用程式
- 在您的應用程式中處理非同步操作
- 使用 Immutable.js 實現不可變的存儲
- 用 jQuery 和 Handlebars 等替代視圖組件替換 React.js
- 使用 Jest 測試和基準測試您的 Flux 架構——這是 Facebook 對 Jasmine 庫的增強
**關於作者**
**Adam Boduch** 在大型 JavaScript 開發方面已有近 10 年的經驗。在轉向前端之前,他曾使用 Python 和 Linux 開發幾個大型雲計算產品。對於複雜性不陌生的 Adam,擁有實際的現實世界軟體系統經驗以及它們所帶來的擴展挑戰。
他是幾本 JavaScript 書籍的作者,包括《JavaScript Concurrency》,並對創新的用戶體驗和高性能充滿熱情。
**目錄**
1. 什麼是 Flux?
2. Flux 的原則
3. 構建骨架架構
4. 創建動作
5. 非同步動作
6. 更改 Flux 存儲狀態
7. 查看信息
8. 信息生命週期
9. 不可變存儲
10. 實現調度器
11. 替代視圖組件
12. 利用 Flux 庫
13. 測試和性能
14. Flux 與軟體開發生命週期