question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New Sample: Model View Intent

See original GitHub issue

New sample proposal

I’d like to create a new sample to illustrate the Model View Intent pattern. Full Android examples for MVI are hard to find. It’s a pattern that has seen wide adoption in the Javascript and .NET world. Target audience include, but not limited to:

  • Developers making the pivot from an imperative to declarative style of programming.
  • Developers looking for best-practices in functional or reactive programming on Android.

Here are some articles/examples explaining the core principles of MVI and unidirectional flow:

Proposed stack

I’m hoping to use specific libraries to achieve this in the cleanest possible way. A requirement with the android-architecture samples is to use accepted industry standard. A few of these libraries are new as of this year, but I believe they still fulfill that requirement. I’ve taken the time to establish a small ‘pedigree’ for each.

The following are battle-tested libraries. Battle tested here means that they have documented use, in production, at major companies with a large user base. Places such as Square, Groupon, Trello, Shopify, etc. One notable exception is RxJava2. RxJava 2 has major community backing, and will see a production release later this month.

Also, the following all have well-know, senior maintainers with established track records. Below a detailed list with rationale/credentials:

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:25
  • Comments:20 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
kanawishcommented, Nov 28, 2016

To be honest, I’ve only starting working on this last week. Since I wrote this proposal, I spoke at 3 conferences, and spent a week in Mountain View for the GDE summit + Workshops.

I’m hoping to get an initial PR up sometime next week-end. I might appreciate earlier feedback, I’ll reach out on Slack once my base pattern is close to something I feel happy with.

4reactions
JoseAlcerrecacommented, Nov 14, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

Stateful Android Apps With MVI (MODEL — VIEW — INTENT)
MVI is a Reactive Architecture Pattern which is short for Model -View-Intent. It introduces two new concepts: the intent and the state.
Read more >
Model-View-Intent - Cycle
A functional and reactive JavaScript framework for predictable code.
Read more >
Model-View-Intent on Android - Hannes Dorfmann
This function is the only piece of your code that is allowed to change a Model object. Then this new immutable Model is...
Read more >
Android Model-View-Intent with Kotlin Flow | by Adam Hurwitz
Implement with a ViewModel, also referred to as a Presenter in other implementations. Observes the requests for new actions or data requests ...
Read more >
ajay-dewari/Android-Model-View-Intent: A sample app of MVI ...
A sample app of MVI architecture implementation using kotlin for android application - GitHub - ajay-dewari/Android-Model-View-Intent: A sample app of MVI ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found