Coder Social home page Coder Social logo

Presenter 的复用问题 about t-mvp HOT 2 CLOSED

limboc avatar limboc commented on May 17, 2024
Presenter 的复用问题

from t-mvp.

Comments (2)

north2016 avatar north2016 commented on May 17, 2024

可以 我这是按照功能分包 也可以按照结构分包

from t-mvp.

Ztiany avatar Ztiany commented on May 17, 2024

Presenter大多数的时候都是为了解耦,很少看到能复用的Presenter,比较赞成作者的分包方式,但是我觉得不应该把M和P绑定在一起,很多时候一个Presenter需要跟多个数据源(多个M)交互。所以每个M应该是独立的,由上层的Presenter来调用一个或者多个。

from t-mvp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.