Reactive Programming with Swift 4: Build asynchronous reactive applications with easy-to-maintain and clean code using RxSwift and Xcode 9
暫譯: 使用 Swift 4 的反應式編程:利用 RxSwift 和 Xcode 9 構建易於維護和乾淨代碼的異步反應式應用程序
Navdeep Singh
- 出版商: Packt Publishing
- 出版日期: 2018-02-26
- 定價: $1,480
- 售價: 6.0 折 $888
- 語言: 英文
- 頁數: 320
- 裝訂: Paperback
- ISBN: 178712021X
- ISBN-13: 9781787120211
-
相關分類:
Apple Developer
立即出貨 (庫存=1)
買這商品的人也買了...
-
$580$383 -
$580$383 -
$2,200$2,090 -
$580$493 -
$540$427
相關主題
商品描述
Learn how to solve blocking user experience and build event based reactive applications with Swift.
Key Features
- Build fast and scalable apps with RxSwift
- Apply reactive programming to solve complex problems and build efficient programs with reactive user interfaces
- Take expressiveness, scalability, and maintainability of your Swift code to the next level with this practical guide
Book Description
RxSwift belongs to a large family of Rx implementations in different programming languages that share almost identical syntax and semantics. Reactive approach will help you to write clean, cohesive, resilient, scalable, and maintainable code with highly configurable behavior.
This book will introduce you to the world of reactive programming, primarily focusing on mobile platforms. It will tell how you can benefit from using RxSwift in your projects, existing or new. Further on, the book will demonstrate the unbelievable ease of configuring asynchronous behavior and other aspects of the app that are traditionally considered to be hard to implement and maintain. It will explain what Rx is made of, and how to switch to reactive way of thinking to get the most out of it. Also, test production code using RxTest and the red/ green approach. Finally, the book will dive into real-world recipes and show you how to build a real-world app by applying the reactive paradigm.
By the end of the book, you'll be able to build a reactive swift application by leveraging all the concepts this book takes you through.
What you will learn
- Understand the practical benefits of Rx on a mobile platform
- Explore the building blocks of Rx, and Rx data flows with marble diagrams
- Learn how to convert an existing code base into RxSwift code base
- Learn how to debug and test your Rx Code
- Work with Playgrounds to transform sequences by filtering them using map, flatmap and other operators
- Learn how to combine different operators to work with Events in a more controlled manner.
- Discover RxCocoa and convert your simple UI elements to Reactive components
- Build a complete RxSwift app using MVVM as design pattern
Who This Book Is For
This book is for the developers who are familiar with Swift and iOS application development and are looking out to reduce the complexity of their apps. Prior experience of reactive programming is not necessary.
Table of Contents
- A new upgrade is available : Swift 3 to Swift 4
- FRP fundamentals, terminology and basic building blocks
- Setup RxSwift and convert a basic Login app to its RxSwift counterpart
- When to become Reactive?
- Filter, Transform and Simplify
- Reduce by combining and filtering and common trade offs
- React to UI events: start subscribing
- RxTest and Custom Rx Extensions : Testing with Rx
- Testing your RxCode- testing Asynchronous code
- Schedule your tasks, don't Queue!
- Subscribe to errors and save your app
- Functional and Reactive App-architecture
- Put your knowledge to practice : Finish a real world application
商品描述(中文翻譯)
學習如何解決阻塞的使用者體驗,並使用 Swift 建立基於事件的反應式應用程式。
主要特點
- 使用 RxSwift 建立快速且可擴展的應用程式
- 應用反應式程式設計來解決複雜問題,並建立具有反應式使用者介面的高效程式
- 透過這本實用指南,將您的 Swift 代碼的表達性、可擴展性和可維護性提升到新的水平
書籍描述
RxSwift 屬於不同程式語言中一大類 Rx 實作,這些實作擁有幾乎相同的語法和語義。反應式方法將幫助您撰寫乾淨、一致、韌性強、可擴展且可維護的代碼,並具備高度可配置的行為。
這本書將帶您進入反應式程式設計的世界,主要聚焦於行動平台。它將告訴您如何在現有或新專案中受益於使用 RxSwift。此外,這本書將展示配置非同步行為及其他傳統上被認為難以實現和維護的應用程式方面的驚人簡易性。它將解釋 Rx 的組成部分,以及如何轉變為反應式思維,以充分利用它。此外,使用 RxTest 和紅/綠方法測試生產代碼。最後,這本書將深入探討實際案例,並展示如何通過應用反應式範式來構建一個現實世界的應用程式。
在書籍結束時,您將能夠利用本書所介紹的所有概念來構建一個反應式的 Swift 應用程式。
您將學到什麼
- 了解 Rx 在行動平台上的實際好處
- 探索 Rx 的基本構建塊及其使用大理石圖的數據流
- 學習如何將現有代碼庫轉換為 RxSwift 代碼庫
- 學習如何調試和測試您的 Rx 代碼
- 使用 Playgrounds 透過 map、flatmap 和其他運算子過濾序列
- 學習如何結合不同的運算子以更受控的方式處理事件。
- 發現 RxCocoa,並將您的簡單 UI 元素轉換為反應式組件
- 使用 MVVM 設計模式構建完整的 RxSwift 應用程式
本書適合誰
本書適合熟悉 Swift 和 iOS 應用程式開發的開發者,並希望減少其應用程式的複雜性。先前的反應式程式設計經驗並非必要。
目錄
- 可用的新升級:從 Swift 3 到 Swift 4
- FRP 基礎、術語和基本構建塊
- 設置 RxSwift,並將基本的登入應用程式轉換為其 RxSwift 對應版本
- 何時變得反應式?
- 過濾、轉換和簡化
- 通過結合和過濾來減少以及常見的權衡
- 對 UI 事件做出反應:開始訂閱
- RxTest 和自定義 Rx 擴展:使用 Rx 進行測試
- 測試您的 Rx 代碼 - 測試非同步代碼
- 安排您的任務,不要排隊!
- 訂閱錯誤並保護您的應用程式
- 功能性和反應式應用程式架構
- 將您的知識付諸實踐:完成一個現實世界的應用程式