Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Alex Sullivan, Marin Todorov, Scott Gardner, Florent Pillet, Junior Bontognali

Rating No ratings yet

Learn Reactive Programming in Kotlin with RxJava! The popularity of reactive programming continues to grow on an ever-increasing number of platforms and languages. Rx lets developers easily and quickly build apps with code that can be understood by other Rx developers—even over different platforms.Not only will you learn how to use RxJava to create complex reactive applications on Android, you'll also see how to solve common application design issues by using RxJava. Finally, you'll discover how to exercise full control over the library and leverage the full power of reactive programming in your apps. Who This Book Is For This book is for Android developers who already feel comfortable with the Android SDK and Kotlin, and want to dive deep into development with RxJava, RxKotlin, and RxAndroid. Topics Covered in Reactive Programming with Kotlin Getting Started**: Get an introduction to the reactive programming paradigm, learn the terminology involved, and see how to begin using RxJava in your projects. Event Management**: Learn how to handle asynchronous event sequences via two key concepts in Rx—Observables and Observers. Being Selective**: See how to work with various events using tools such as filtering, transforming, combining, and timing operators. UI Development**: RxJava and companion libraries make it easy to work with the UI of your apps, providing a reactive approach to handling user events. Intermediate Topics**: Level up your RxJava knowledge with chapters on reactive networking, error handling, and schedulers. Advanced Topics**: Round out your RxJava education by learning about app architecture, repositories, and integrating RxJava with Android Jetpack. And much, much more! By the end of the book, you'll have hands-on experience solving common issues in a reactive paradigm—and you'll be well on your way to coming up with your own Rx patterns and solutions!

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A hands-on guide for Android developers who already know Kotlin and want to master reactive programming with RxJava, RxKotlin, and RxAndroid—covering everything from basic Observables to app architecture and Jetpack integration. 【Book Arc】 - **Opening (~0%–10%)**: Introduces the reactive programming paradigm, its core terminology, and how to set up RxJava in an Android project. This stage solves the "what and why" of reactive thinking before any code-heavy chapters. - **Early (~10%–30%)**: Dives into the two foundational concepts—Observables and Observers—and how they manage asynchronous event sequences. This is where you learn to think in streams rather than callbacks. - **Middle (~30%–60%)**: Covers the operator toolbox: filtering, transforming, combining, and timing operators. This is the practical core that lets you selectively react to the events you care about. - **Late (~60%–85%)**: Moves into intermediate territory with reactive networking, error handling, and schedulers. These chapters address real-world pain points like threading and failure recovery. - **Ending (~85%–100%)**: Rounds out with advanced topics: app architecture, repository patterns, and integrating RxJava with Android Jetpack. The goal is to help you design entire apps reactively, not just sprinkle Rx in isolated spots. 【Key Takeaways】 - **Reactive programming is a cross-platform mindset** (Early): Rx concepts transfer across languages and platforms, so code written with RxJava can be understood by developers familiar with Rx on other stacks. This makes the paradigm a shared vocabulary, not just a library trick. - **Observables and Observers are the heart of Rx** (Early): Asynchronous event sequences are handled by these two core abstractions. Master them first—everything else in the book builds on this pairing. - **Operators give you selective control** (Middle): Filtering, transforming, combining, and timing operators let you decide which events to act on and how to shape them. This is where reactive code goes from "working" to "expressive." - **UI development becomes declarative with Rx** (Middle): RxJava and its companion libraries offer a reactive approach to user events, reducing the boilerplate of traditional Android UI callbacks. - **Networking and error handling are practical necessities** (Late): Reactive networking patterns and robust error-handling strategies are covered to help you build resilient apps, not just toy examples. - **Schedulers are the key to threading sanity** (Late): Understanding schedulers lets you control which threads your streams run on, solving common concurrency issues in Android development. - **Architecture matters at scale** (Ending): The book closes with app architecture, repositories, and Jetpack integration—showing how RxJava fits into a larger, maintainable app design rather than existing in isolation. 【Reading Tips】 - **Skim the opening chapters if you're already comfortable with async programming**: The paradigm introduction and terminology are useful but move quickly; focus on the code examples to see how RxJava implements these ideas. - **Deep-read the operator chapters**: This is the most reusable knowledge in the book. Practice combining operators on small sample streams to build muscle memory before tackling real UI code. - **Pay extra attention to schedulers and error handling**: These are the hardest parts to debug in production. Read these chapters with a project in mind, and try rewriting an existing callback-based feature reactively. - **Treat the architecture chapters as a design guide, not a template**: The repository and Jetpack integration patterns are valuable, but adapt them to your project's needs rather than copying them verbatim. - **Have an Android project ready to experiment with**: This book is hands-on by design; the value comes from applying each concept as you read, not just following along. 【Coverage Limits】 The excerpts cover the book's stated scope and structure but do not include detailed code samples, specific operator names, or chapter-by-chapter content. This guide synthesizes the overall learning path rather than the technical minutiae.
Excerpt 1
书名: Reactive Programming with Kotlin (First Edition) Learn Rx with RxJava, RxKotlin, and RXAndroid (Alex Sullivan, Marin Todorov, Scott Gardner etc.)(Z-Libra...
View in text
Excerpt 2
tegrating RxJava with Android Jetpack. And much, much more! By the end of the book, you'll have hands-on experience solving common issues in a reactive parad...
View in text
Tags
AI categories
AndroidBackendProgramming Language
ISBN: 1942878796
Publisher: Razeware LLC
Publish Year: 2019
Language: English
Pages: 424
File Format: PDF
File Size: 41.8 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…