android 的 MVP。值得付出努力吗?

MVP for android. Is it worth the effort?

最近我偶然发现了几篇关于使用 MVP 模式开发 android 应用程序的文章。

我想知道:

  1. whether it is worth the effort to move towards a MVP pattern, given that fact the android framework is not inherently designed keeping MVP in mind whereas iOS development using Swift enforces the MVP pattern (if I am right).

  2. Is the development time impacted a lot on using MVP?

回答你的观点:

  1. MVP 值得在长运行 中移动 - 对于一个新项目绝对开始使用 MVP。对于现有代码库,理清 Activity、Fragments 等中的逻辑将非常耗时

  2. 短期内开发时间会受到影响,因为您必须学习 MVP 等。在长期内 运行,您将节省错误修复等时间

MVP and Android

上有一篇很棒的文章