P
P
postflow2016-06-26 23:53:13
C++ / C#
postflow, 2016-06-26 23:53:13

MVP on the scheme and in the real project. How to structure?

Here on paper, I roughly decomposed the application into classes according to the mvc model, everything is as it should be, here are the model classes, here the controller, the provision .... How can I present them in AS? Scatter across different packages (package for model, package for controller, view)? How to deal with access modifiers? Or store all classes in one root?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AtomKrieg, 2015-12-02
@GadCpp

the letter f was missed in the word ifstream

A
Andrey Sedelnikov, 2016-06-27
@AppMagnetics

Despite the established practice in Android to sort classes by type (Presenters in .presenters, Listeners in .listeners, and so on to the point of insanity), in a real project with many classes, this scheme does not work. It is easier for a person to perceive the structure built around the semantics of the application. That is, if the application has a main menu and it has a transition to the Customers, Invoices sections, then you just need to make packages .menu, .customers, .invoices

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question