Cash App Jun 9, 2020

A Great Way to do Android Presenters

Article Summary

Cash App's Android team chose presenters over ViewModels and MVVM. Here's why their "boring" code wins.

Benoît Quenaudon from Cash App shares their presenter pattern that uses RxJava to create a uniform, testable architecture. Every presenter follows the same contract: view events in, view models out.

Key Takeaways

Critical Insight

A consistent presenter pattern with unidirectional data flow creates code that's easy to write, review, and test across the entire team.

The article reveals how they visualize presenters as waterfalls and why database queries must run at subscription time, not instantiation.

Recent from Cash App

Related Articles