On Wikipedia about MVVM it is written:
It is convenient to use MVVM instead of classic MVC and the like in cases where “data binding” is present in the platform on which the development is being conducted.
- Explain, please, what is data binding? There is very little information on the net. I can bring my guesses on the example of Delphi. There you can put on a DBGrid form, and the data from the database will fall into it. That is, they will be tied to him. But, of course, if everything is correct in the settings. Is this data binding?
- Then, as I understand it, there is no data binding in Java Swing. Is it possible to use MVVM there? In principle, you can probably just write the
bindandbackBindfunctionsbackBind, in which you need to transfer the necessary data back and forth? - If possible, is it worth it? Or is MVC or MVP better? I understand that it is impossible to say so unequivocally, it probably depends on the situation. I have a desktop project with a small database (JDBC and MySql), but the GUI is quite voluminous and complex, with many features. The subject area for my application is a complex algorithmic problem ( the knapsack problem , for whom it is interesting). Please tell me that in my situation it is better to use - MVC, MVP or MVVM (I have no experience in any of this).