Reusing Operator Chains

Learn about the repetition of operator chains in parts of our codebase.

Declarative approach

As mentioned earlier in RxJava Core Components, using an operator should be kept single-purposed. If multiple transformations need to be applied to an emission, each transformation should be encapsulated in its own operator. This approach is declarative, or in other words, it describes what should be done, not how it should be done. This aids in readability.

Get hands-on with 1200+ tech skills courses.