Hot answers tagged

5 votes
Accepted

MVC: Should View get strings of GUI components directly or should the controller pass strings to View?

In a traditional MVC architecture, the view should interact with the model to get domain model data. But fixed strings (i.e. not domain data) still belong to the user interface itself. The view should ...
user avatar
  • 68.7k
4 votes
Accepted

In an MVC Application, What Goes Where?

You are fully right on the principle. The MVC should have the business logic and the data access layer in the Model. The Controller should manage user input and transforms it into commands either for ...
user avatar
  • 68.7k
3 votes
Accepted

How to make domain objects accessible to MVC controllers and views?

Fact 1: True. Fact 2: True in principle. Business logic objects should be "technology-agnostic," unless the stated purpose of a particular object is to interact with a particular technology. ...
user avatar
3 votes

Who is the Observer in MVC? Controller or Views?

Which option is more "authentic"? Or do we have both flavors available in the wild? If you have at least 3 components dedicated to model, view, and controller, respectively, you're ...
user avatar
1 vote

How to make domain objects accessible to MVC controllers and views?

In MVC changes are initiated by Controllers. so the Controller can raise the change event rather than the model. If the model changes by itself, then there will be some "refresh" event ...
user avatar
  • 65k
1 vote
Accepted

Model updating itself in MVC?

Considering that your model is the game logic (e.g. the territories, the tower, the ennemies, the rules of the game), the game loop would works this way: get next input event to process (mainly user ...
user avatar
  • 68.7k

Only top scored, non community-wiki answers of a minimum length are eligible