MVCPH (Move PresCon to Hel)
MVPCH is Model View Presenter Controller Helper. What is that ? That not a concept or pattern. That is something in my mind when i want to create clean structured code and how i separate them. So what is that actually ?
nb: i’m using android concept to explain this because i found this when code on my work and personal project.
M = Model, is model (pojo) like User (ex: name, birth date, gender, etc)
V = View, is a layer to show the UI to the user (ex: activity, fragment, custom view)
C = Controller, is a layer that have your business logic that will process your model to view. But i’ll no direct pass the model to view, why ? because we’ll might be not need all data to pass to view and we also need to process the model like parsing, formatting, calculate and etc. (ex: LoginController, TweetController, etc)
P = Presenter, is a layer act as bridge to communicate from Controller to...