droidcon NYC 2017 - Model-View-Intent for Android
9.6 هزار بار بازدید -
7 سال پیش
-
Benoît Quenaudon, Cybozu
Development on
Benoît Quenaudon, Cybozu
Development on Android inevitably involves asynchronous sources, which includes the network, the framework or even the user. This easily leads to a complex architecture and a state that is difficult to manage. Are you comfortable with your users rotating the screen while waiting for a network response? What will happen when multiple requests hit the network at the same time? The Model-View-Intent architecture, borrowed from the web, is all about streams: listening to asynchronous sources, processing the information, and displaying the result. In this architecture, everything is a stream. However, Android is a multi-threaded platform and this introduces additional complexity that we have to take into account when applying the MVI pattern. Unidirectional data flow allows one to focus on a unique source of truth and by embracing immutability, there is no need to worry about data being mutated by other parts of the code. By abstracting away the common pitfalls of state management in Android, this architecture allows the developer to focus on the logic of the app, making it easy to write and easy to maintain. In this talk, we’ll look at how, with Kotlin and RxJava, this reactive architecture can help the developer write a complex UI with concrete examples, including parallel network requests, config changes, SnackBars and more.
goo.gl/JdYNFX
droidcon NYC - droidcon.nyc/
*********************************************
droidcon NYC has become an event where the American and International Android development and design community come together to share what’s new and what they’ve been working on. Our goal is to serve the community and move the Android platform forward.
Organized by droidcon - www.droidcon.com/
*********************************************
droidcon is the largest global network of developer conferences which bring together the industry's foremost experts dedicated to advancing the Android platform. droidcon engages a global network of over 25,000 developers attending our events in 26 countries.
Content by touchlab - touchlab.co/
*********************************************
droidcon NYC content organized by Kevin Galligan, President of touchlab
Android and iOS Mobile App Development / Doppl Open Source Code Sharing Platform / Mobile Innovation Advisory / UIUX Design. Our goal is to keep growing our company by serving the community. Stop by our next meetup: www.meetup.com/nyandroiddevelopers/
Big thanks to our video sponsors:
American Express - jobs.americanexpress.com/tech
mParticle - www.mparticle.com/
7 سال پیش
در تاریخ 1396/08/09 منتشر شده
است.
9,674
بـار بازدید شده