eBook - ePub
RxJava for Android Developers
Timo Tuominen
This is a test
- English
- ePUB (adapté aux mobiles)
- Disponible sur iOS et Android
eBook - ePub
RxJava for Android Developers
Timo Tuominen
DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations
Ă propos de ce livre
RxJava for Android Developers teaches you how to build fast, fluid, and reactive mobile apps for Android with RxJava.
Foire aux questions
Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier lâabonnement ». Câest aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via lâapplication. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă la bibliothĂšque et Ă toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode dâabonnement : avec lâabonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă 12 mois dâabonnement mensuel.
Quâest-ce que Perlego ?
Nous sommes un service dâabonnement Ă des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă toute une bibliothĂšque pour un prix infĂ©rieur Ă celui dâun seul livre par mois. Avec plus dâun million de livres sur plus de 1 000 sujets, nous avons ce quâil vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Ăcouter sur votre prochain livre pour voir si vous pouvez lâĂ©couter. Lâoutil Ăcouter lit le texte Ă haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, lâaccĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que RxJava for Android Developers est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă RxJava for Android Developers par Timo Tuominen en format PDF et/ou ePUB ainsi quâĂ dâautres livres populaires dans Design et UI/UX Design. Nous disposons de plus dâun million dâouvrages Ă dĂ©couvrir dans notre catalogue.
Informations
Sujet
DesignSous-sujet
UI/UX DesignPart 1. Core reactive programming
In this part
- This book begins with getting you comfortable using your new toolsâRxJava and a couple of libraries to support it.
- The first chapter starts with a concrete example that will give you quick wins with the reactive style of programming.
- Chapter 2 explores the typical case of handling network requests with RxJava and Retrofit. Youâll start to see the different mental models of the way data is processed, as in chapter 3 youâll explore a credit card example with data processing chains. In chapter 4, youâll construct a fully functioning Flickr client against an existing public API.
- In the last chapter of the first part, chapter 5, youâll work with an Android file browser. The code from this chapter will serve as the starting point for the second part of this book.
âLife is 10% what happens to you and 90% how you react to it.âCharles R. Swindoll
Chapter 1. Introduction to reactive programming
In this chapter
- What to expect from this book
- How to use this book
- Why RxJava 2 for Android?
- Deep dive in to RxJava 2 on Android
Perhaps you picked up this book because...
1 Everyoneâs using RxJava and you have no idea why.
Itâs hard to name a large company that would do native Android and not use a reactive programming library such as RxJava 2. In this book youâlll focus on why itâs hot and what you can do with it.
You may also have heard of functional reactive programming (FRP), which is indeed related to Rx. Youâll learn about both concepts in this book.
2 Youâve used RxJava on Android and want to learn more.
Itâs common these days to see snippets of RxJava code that solve a particular asynchronous problem. But a whole world lies behind what sometimes looks like a simple utility.
The programming syntax used in Rx can seem like the entire point, but itâs just a nice add-on. This book will teach you how to think in Rx.
3 Youâve used RxJava and hate it with a passion.
In the wrong hands, RxJava can make traditional spaghetti code even worse. With any power comes responsibility. Youâll learn where to use RxJava and where not.
Youâll learn to design applications in a sensible and extensible way. You can be reassured thereâs a way to maintain your Rx code.
Whatever your reason, I want you to...
- Learn through extensive illustrations and examples
- Understand a new way of seeing how applications work
- Figure out where to fit Rx in your day-to-day programming
Donât read this book if...
Youâre new to programming.
Rx is still a new paradigm, and it isnât always smooth sailing. Hopefully in the future this will change, and everyone will start their programming journey with Rx.
- or
âI just need to get it done.â
The learning curve of reactive programming is a little steeper than usual. Cutting corners isnât as easy as in the more traditional ways of writing applications. This is fundamentally double-edged, but youâll need a curious mind and a healthy dose of patience.
- but
Continue reading if you want to learn how to properly make a delayed auto search field in five lines.
This is the example code youâll learn to make in the first chapter. I donât expect you to be able follow just yet, but take it as a preview of how powerful RxJava can be.
RxTextView.textChanges(textInput) 1 .filter(text -> text.length() >= 3) 1 .debounce(150, TimeUnit.MILLISECONDS) 1 .observeOn(AndroidSchedulers.mainThread()) 1 .subscribe(this::updateSearchResults); 1
- 1 Youâll spend the first chapter constructing this piece of code.
OOP, Rx, FP, and FRP
RxJava is in the club of reactive programming libraries (http://reactivex.io/). They all start with Rx, so sometimes theyâre together called Rx programming. To get an idea of where this sits, letâs recap the popular paradigms.
OOP, object-oriented programming
The idea of OOP is that everything is an object, a thing, and can interact with other objects. Typically, an object encapsulates its state and allows outside actors to modify it through its member functions.
FP, functional programming
Functional programming is an old programming style that focuses on an almost mathematical precision in describing the program. It turns out that although the mental model of FP seems more complex than OOP, it seems to scale better when the complexity of the state needed increases.
FRP, functional reactive programming
The concept of FRP was introduced 1997, but it has become popular only in recent years. Itâs a bit like an extension on top of FP, enabling an app to be built to react to input in a seamless way. FRP does this by declaring relationships between values.
Rx, reactive programming
Reactive programming, sometimes called Rx for Reactive Extensions, is an umbrella term for all paradigms that use a data flow to construct the application. RxJava is our tool of choice to implement the data flow in practice. The previous term, FRP, can also be considered reactive programming, but not always the other way around.
What about the Facebook React library?
React is the name of a Facebook UI library made on top of HTML5. Although the concept of programming with React is similar to ours, it isnât considered reactive in the way we define it.
Benefits of Rx
Rx, including RxJava, isnât a typical technology thatâs made to replace another infer...
Table des matiĂšres
Normes de citation pour RxJava for Android Developers
APA 6 Citation
Tuominen, T. (2019). RxJava for Android Developers ([edition unavailable]). Manning Publications. Retrieved from https://www.perlego.com/book/1469046/rxjava-for-android-developers-pdf (Original work published 2019)
Chicago Citation
Tuominen, Timo. (2019) 2019. RxJava for Android Developers. [Edition unavailable]. Manning Publications. https://www.perlego.com/book/1469046/rxjava-for-android-developers-pdf.
Harvard Citation
Tuominen, T. (2019) RxJava for Android Developers. [edition unavailable]. Manning Publications. Available at: https://www.perlego.com/book/1469046/rxjava-for-android-developers-pdf (Accessed: 14 October 2022).
MLA 7 Citation
Tuominen, Timo. RxJava for Android Developers. [edition unavailable]. Manning Publications, 2019. Web. 14 Oct. 2022.