JavaFX: pros and cons of MVC, MVP, MVVM, etc.

3

What standard model-vision (MV) use with JavaFX thinking about scalability and good manutibility?

On Google you find people recommending MVC, MVP , MVVM ... maybe there are others.

Some say JavaFX is meant to be used with MVC . Others admit that there are many possible variations but prefer MVP to MVC, although this looks more natural . Some say that JavaFX is agnostic and accepts any of the patterns (and by the tone of the conversation imply that there are missing books discussing the patterns). Others that will depend on the problem being attacked .

In the end, maybe what you say is these two opinions. It remains to list and discuss the pros and cons of adopting each standard. I hope this is not too broad, but it might be.

Maybe I should learn more about JavaFX to ask more specific things. But I wanted to get a sense of how to study and organize my applications, and that's where a pattern comes in.

By the way, in the case of Swing I found this recommendation that looks authoritative.

    
asked by anonymous 01.06.2018 / 19:06

1 answer

1

Well, I think it's going to vary according to your design and what you feel most comfortable with. I'm in a project which I use MVCD (Model, View, Controller and DAO ) so I do not see difficulties in organizing the structure.
And working with JAVAFX we also have the part of CSS that is part of View so the ideal and you organize yourself in a way that is not lost in the structure.

Hug.

    
04.09.2018 / 11:47