Flux Architecture
Adam Boduch
- 出版商: Packt Publishing
- 出版日期: 2016-05-23
- 售價: $1,980
- 貴賓價: 9.5 折 $1,881
- 語言: 英文
- 頁數: 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 的相關技術,並介紹 Alt 和 Redux 等庫,使 React 和 Flux 開發更加容易。
本書充滿了完整的實例和以代碼為主的解釋,到書末,您不僅對這個架構有堅實的理解,還能立即實施 Flux 架構。
您將學到什麼
- 了解 Flux 模式及其對 React 應用程式的影響
- 建立依賴於 Flux 的實際應用程式
- 處理應用程式中的異步操作
- 使用 Immutable.js 實現不可變的存儲
- 將 React.js 替換為其他視圖組件,如 jQuery 和 Handlebars
- 使用 Jest 測試和評估您的 Flux 架構,Jest 是 Facebook 對 Jasmine 庫的增強版
關於作者
Adam Boduch 在大型 JavaScript 開發項目中擁有近 10 年的經驗。在轉向前端之前,他使用 Python 和 Linux 開發了幾個大型雲計算產品。Adam 在處理複雜性方面有實際經驗,並瞭解實際軟體系統和其所面臨的擴展挑戰。
他是幾本 JavaScript 書籍的作者,包括《JavaScript Concurrency》,並且對創新的使用者體驗和高性能充滿熱情。
目錄
- 什麼是 Flux?
- Flux 的原則
- 建立骨架架構
- 創建動作
- 異步動作
- 更改 Flux 存儲狀態
- 查看資訊
- 資訊生命週期
- 不可變存儲
- 實現調度器
- 替代視圖組件
- 利用 Flux 库
- 測試和性能
- Flux 和軟體開發生命週期