1

Topic: Development GUI: approaches MVVM vs MVC vs MVP vs...

I will continue a subject the Author: Shmj Date: 30.09 23:29, but I concretize. At all diversity of methods to implement GUI, it is possible to select some approaches: 1. The imperative approach. Each element create in the code (Button b = new Button ()) and in the same code install properties. The imperative approach not so so is bad, when there is a good visual editor and it performs for you all dirty operation (however writing of such editor - the task not trivial). 2. The declarative approach + noodles-code. This in old style wrote jsx, asp or php-pages. When GUI it is set it is declarative, i.e. you write all <div> <img>, but dynamics is carried out with the help  in html . Tags (we abstract from technologies, tags can be and client <script>). 3. Sharing declarative GUI and the code. In ASP.Net it not badly made, old aspx-pages. Elements we write it is declarative by means of HTML/XAML/etc. To manipulate an element, you to it set ID. And already from the code by event you manipulate. Display elements of tabular data, as a rule, all the same  to the data as from the code to set correspondences it is not convenient. I would not tell that the approach such the bad. The main minus - it is difficult to test the code. 4. MVP. That the approach 3 could be tested, invented MVP. We add the intermediary who controls also the form (representation) and View. A counter that we can change the form on  , as in the form of anything difficult not  (the form does not know about methods  and data View). It is all solves a testing question. 5. MVC. The type alternative MVP for Web without JS where there are no events ( that demands events from View, and they are not present in client server old interaction (without WebSocket)). In the theory it is possible even to change one View for another, made absolutely on other technology (type to use instead of Web -  application). After all the code of the controler is not known by whom and as him   will display. It is popular for Web as approaches under ideology - 1 request 1 answer (1 object of model sent, new object of model accepted). When the data interchange bidirectional, steps on the stage MVVM. 6. MVVM. A counter in bidirectional . I.e. there is a certain model and that that you will install in the code for this model - will be displayed in GUI. But in difference from MVC, it is possible also to change property in model and it will be displayed in GUI. It is more convenient and more clear MVC, but not everywhere is implemented (for the browser it is possible to make only on side JS). Forgot Nothing? What approach, on yours, the most convenient?

2

Re: Development GUI: approaches MVVM vs MVC vs MVP vs...

Hello, Shmj, you wrote: S> I Will continue a subject the Author: Shmj Date: 30.09 23:29, but I concretize. S> forgot nothing? What approach, on yours, the most convenient? On me MVVM - the most convenient.

3

Re: Development GUI: approaches MVVM vs MVC vs MVP vs...

Hello, Shmj, you wrote: S> forgot Nothing? What approach, on yours, the most convenient? When each element  is described by two attributes: 1. Field type; 2. Additional conditions to type (for example, an amount of characters in string). Forms are not present, and there are the classes consisting of item collection, described above. The class is displayed to the user automatically. The object management, created of such classes, is fulfilled by commands. The programmer - forms such teams and-or some commands in one new connect. Accordingly, to work with such , it is necessary to change the thinking. Analogs are not present. To create really.

4

Re: Development GUI: approaches MVVM vs MVC vs MVP vs...

Hello, Real 3L0, you wrote: R3> Analogues are not present. R3> to Create really. Let's consider all the same a reality, instead of the imaginations. Here is how make - and speak.

5

Re: Development GUI: approaches MVVM vs MVC vs MVP vs...

Hello, Shmj, you wrote: S> Let's consider all the same a reality, instead of the imaginations. Here is how make - and speak. You asked about the most convenient approach - I answered. All described by you - is not convenient. At me not imaginations - a prototype I implemented. And it worked. But then began to rewrite and sawed it.

6

Re: Development GUI: approaches MVVM vs MVC vs MVP vs...

Hello, Real 3L0, you wrote: R3> When each element  is described by two attributes: R3> 1. Field type; R3> 2. Additional conditions to type (for example, an amount of characters in string). R3>... R3> the Object management, created of such classes, is fulfilled by commands. R3> the programmer - forms such teams and-or some commands in one new connect. R3>... Than this approach differs from MV* variants?

7

Re: Development GUI: approaches MVVM vs MVC vs MVP vs...

Hello, amironov79, you wrote: A> Than this approach differs from MV* variants? Yes, probably, you are right: a sheaf "visual " and properties of object - probably anything. A counter that except a sheaf - more anything is not present. Not in sense, it is not implemented, and in sense that is not necessary. Well, it long to tell.

8

Re: Development GUI: approaches MVVM vs MVC vs MVP vs...

Hello, Real 3L0, you wrote: R3> Hello, amironov79, you wrote: A>> Than this approach differs from MV* variants? R3> yes, probably, you are right: a sheaf "visual " and properties of object - probably anything. R3> a counter that except a sheaf - more anything is not present. Not in sense, it is not implemented, and in sense that is not necessary. Well, it long to tell. I would listen. For now I understand that the given method offers built in  and the generator of forms. Also it (if still will be) will be convenient only in the most simple cases. For an example look DevExpress XAF: simple application on the basis of data model can be made for pair , but to adjust it under the requirements - the task comparable to writing of new application.

9

Re: Development GUI: approaches MVVM vs MVC vs MVP vs...

Hello, amironov79, you wrote: A> I would listen. For now I understand that the given method offers built in  and the generator of forms. Also it (if still will be) will be convenient only in the most simple cases. Simple cases is many percent from all chances. But doubt in convenience - reasonable. For some specialized things when on the screen it is necessary to have much  - I think, does not approach. But it is specialized things. On simple things the prototype showed very big perspectives. Actually, I also did a prototype to check up some ideas, including "it generally it will be possible to use?" . A> For an example look DevExpress XAF: simple application on the basis of data model can be made for pair , but to adjust it under the requirements - the task comparable to writing of new application. It is all - all known "". At me completely approach change to the graphic interface. Till now still there were many questions to implementation. Though on the other hand - it is a lot of questions also it is solved. About! At me, it appears, some description was saved: http://obcom.ws/info.aspx

10

Re: Development GUI: approaches MVVM vs MVC vs MVP vs...

Hello, Real 3L0, you wrote: R3> It is all - all known "". At me completely approach change to the graphic interface. Till now still there were many questions to implementation. Though on the other hand - it is a lot of questions also it is solved. R3> about! At me, it appears, some description was saved: http://obcom.ws/info.aspx And did not understand, in what originality of idea. Under the description - will be next application framework.

11

Re: Development GUI: approaches MVVM vs MVC vs MVP vs...

Hello, amironov79, you wrote: A> And did not understand, in what originality of idea. Under the description - will be next application framework. So give to my the reference to implementation?

12

Re: Development GUI: approaches MVVM vs MVC vs MVP vs...

Hello, Real 3L0, you wrote: R3> Hello, amironov79, you wrote: A>> And did not understand, in what originality of idea. Under the description - will be next application framework. R3> So give to my the reference to implementation? Please: for.net - https://www.devexpress.com/products/net … ramework/, for java - https://www.cuba-platform.ru/. So in what originality of your idea concerning these products?

13

Re: Development GUI: approaches MVVM vs MVC vs MVP vs...

Hello, amironov79, you wrote: A> Please: for.net - https://www.devexpress.com/products/net … ramework/, for java - https://www.cuba-platform.ru/. A> So in what originality of your idea concerning these products? I repeat is all "". For example, here  you on it  such : In other place you  an unpretentious graphic editor with function of turn of a picture. What it is necessary to make, that on  above there was a possibility of turn of a picture? (By the way, this real requirement.) in case of resulted , it is necessary to add either buttons, or new  +  the code or to do communication with graphic editor library (in the latter case, it demands to understand the code if the library was done not by you). In my case it is necessary... To do anything.

14

Re: Development GUI: approaches MVVM vs MVC vs MVP vs...

Hello, Real 3L0, you wrote: A>> So in what originality of your idea concerning these products? R3> I repeat is all "". What means ""? The User interface all finally is presented in the form of forms, and in XAF they mostly form automatically: XAF way: an elegant user interface is generated automatically. XAF UI is inspired by Microsoft Office and offers CRUD detail and list forms with built-in navigation - all based on data models. Writing class Employee, we automatically receive the form of the employee. public class Employee {[Size (255)] public string FullName {get; set;} public DateTime? BirthDate {get; set;} public Image Photo {get; set;}... public IList <Task> Tasks {get;} public IList <ChangeHistoryItem> ChangeHistory {get;} public IList <Phone> Phones {get;} } R3> For example, here  you on it  such : R3> Image: Automatic_Data_Representation.png R3> In other place you  an unpretentious graphic editor with function of turn of a picture. R3> that it is necessary to make, that on  above there was a possibility of turn of a picture? (By the way, this real requirement.) to implement the adapter for  the editor and to anchor it to a field. R3> in case of resulted , it is necessary to add either buttons, or new  +  the code or to do communication with graphic editor library (in the latter case, it demands to understand the code if the library was done not by you). R3> In my case it is necessary... To do anything. It is a fantasy! (c) so tell that it is necessary to make then not to do anything. How your system learns, what is new  the editor how it to use and what with its help it is necessary to display here this specific field?

15

Re: Development GUI: approaches MVVM vs MVC vs MVP vs...

Hello, amironov79, you wrote: A> That means ""? The User interface all finally is presented in the form of forms, User interface Siri is not presented in a type . The graphic user interface can differ among themselves, saving all necessary functions. "" I name the current interface implemented in all known  OS. But note, how the interface  OS differs from mobile OS. Because requirements others. Here and I delivered other requirements and received other approach to the interface. (I do not say that it is better.) A> and in XAF they mostly form automatically: Well abruptly, if so. A> So tell that it is necessary to make then not to do anything. It long. And me laziness. Also there are still the questions, which solved. But me laziness. And even if it will be very abruptly - all occupied people and they have. I somehow here already suggested to participate in this project. Three expressed desire. One of them, like, even was the administrator . All silently merged. A> as your system learns, what is new  the editor how it to use and what with its help it is necessary to display here this specific field? I will try to explain, stretching on more real things. We admit, is WinForms in a. net Framework. We admit, in WinForms appeared  ListBox. You  application with it  in which somehow there are elements. In upcoming version.NET Framework/WinForms  ListBox added possibility to delete elements through the shortcut menu. (The first picture that found) we Lower setting of this upcoming version.NET Framework/WinForms and repeated recompilation of application. Now, if the user does not want to use this shortcut menu - does not use. Wants - there is a possibility. Answering your question: something of type of uniform basis  where any developer can add as the , and new function to the existing. More shortly, here still it is necessary to dig. Therefore not I will answer all your possible questions.

16

Re: Development GUI: approaches MVVM vs MVC vs MVP vs...

Hello, Real 3L0, you wrote: R3> It long. And me laziness. Also there are still the questions, which solved. But me laziness. And even if it will be very abruptly - all occupied people and they have. R3> I somehow here already suggested to participate in this project. Three expressed desire. One of them, like, even was the administrator . All silently merged. For some reason it is not surprised. Perhaps, too I will merge.

17

Re: Development GUI: approaches MVVM vs MVC vs MVP vs...

Hello, Shmj, you wrote: S> forgot Nothing? Still happens immediate mode gui. The code about the such: function update () {var username = textbox ("user"); var password = textbox ("password"); if (button ("login")) {login (username, password);}} S> What approach, on yours, the most convenient? Obviously on tasks depends.