Giter VIP home page Giter VIP logo

mvp_demo's Introduction

This project contains a simple code setup of ViewController having an embedded navigation controller and tableview. The data for the tableview is processed from the preseneter. On tapping any cell on the tableview a new viewcontroller is pushed to the navigation stack. The code adheres to MVP Design Pattern as per structural conformance where ViewController or View acts as View while Presenter acts as the brain of the setup.

The model instance is loosely coupled to Presenter to achieve Dependency injection on Testcases. The View is isolated from model. The view receives action and updates the same to presenter. Presenter acts as the intelligence unit and updates the model and asks the view to update self.

The code base has presenter setup which has a one to one relationship with View. The presenter ends up getting tightly coupled to the view and subviews in it. This tight coupling creates limitation on testing and resusability. The navigation happens via the view

To solve this we can dive to MVVM approach where ViewModel is the driving unit which resolves the said problem

mvp_demo's People

Contributors

suryasahu92 avatar surya092 avatar

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.