V
V
Vitaly Stolyarov2017-09-05 18:38:17
Programming
Vitaly Stolyarov, 2017-09-05 18:38:17

Move view control to a separate class?

There is such a class . In the course of innovations, a lot of code appeared in it, which is responsible for both logic and presentation. I already noticed what could be moved to another class (everything that affects the display of objects).
If we follow the MVC pattern, then the Editor class would be a Controller, the display control would be moved to the View (how then would the class be called, according to the subject area?), and the Model could then be left in the Editor, while investing in 200 lines of code.
What would be the guidelines for naming a class and separating data, control, and presentation?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Stolyarov, 2017-09-06
@Ni55aN

At the moment, I removed the view control from the class . Without bothering, I called EditorView :)

O
oh, 2017-09-05
well @AnneSmith

most likely, you do not have a clear model of what you are doing, otherwise you would not have asked this question,
take a regular sheet of paper and draw all the components with their functions on it, maybe then you will understand how you best organize everything else

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question