MVC Architecture different in different sources

  • Context: Comp Sci 
  • Thread starter Thread starter shivajikobardan
  • Start date Start date
  • Tags Tags
    Architecture Sources
Click For Summary
SUMMARY

The discussion centers on the Model-View-Controller (MVC) architecture, highlighting differing interpretations from various sources, including a blog by Chrome Infotech and a lecture from the University of Virginia's Computer Science Department. It is established that in Web 1.0 applications, user interaction occurs solely through the controller, while in Web 2.0 applications, direct interaction with the view is possible. Furthermore, it is concluded that the model should not allow the view to change its state; otherwise, the architecture shifts to Model-View-ViewModel (MVVM).

PREREQUISITES
  • Understanding of MVC architecture principles
  • Familiarity with Web 1.0 and Web 2.0 application distinctions
  • Knowledge of Model-View-ViewModel (MVVM) architecture
  • Basic concepts of user interaction in software design
NEXT STEPS
  • Research the differences between MVC and MVVM architectures
  • Explore user interaction patterns in Web 1.0 vs. Web 2.0 applications
  • Study best practices for implementing MVC in modern web frameworks
  • Examine case studies of MVC applications in various programming environments
USEFUL FOR

Software architects, web developers, and computer science students seeking to deepen their understanding of MVC architecture and its practical applications in software design.

shivajikobardan
Messages
637
Reaction score
54
Homework Statement
Different architecture of MVC given, which one is most relevant?
Relevant Equations
None
3BjHU67RGFTUiIyksaXqk6M1YCbfSffYxcmizLCCiNVVJDOKMS.png

Source: https://www.chromeinfotech.net/blog/model-view-controller-architecture/
ICA0KIrKwg4asNZjWPOn-Qt5pKe3aeFcABLcFmBV-tGzefL0UH.png

Source: University of Virginia Computer Science, Engineering Department youtube lecture.

Here're my 2 questions:
1) Does user interacts first with a view or controller?
2) Does model sends output directly to view or via Controller?
 
Physics news on Phys.org
There are as many different interpretations of MVC architecture as there are programmers so there is no right answer here. Having said that I would rely more on the U. of Virginia than on some random one-man-band developer's blog.

To give this random one-man-band developer's thoughts:
Q1
In a Web 1.0 app (which is what is pictured in the second picture) there is no direct interaction between the user and the view, everything goes through the controller.
In a locally installed app, or in a Web 2.0 app, there may be direct interaction between the user and the view.

Q2
How data gets from the model to the view is not important, what is important in MVC is that a view must not be able to change state in a model. If the view does interact directly with the model then this becomes MVVM (model-view-viewmodel) rather than MVC.
 
  • Like
Likes   Reactions: shivajikobardan

Similar threads

  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 20 ·
Replies
20
Views
4K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 178 ·
6
Replies
178
Views
9K
Replies
29
Views
5K
Replies
10
Views
3K
  • · Replies 5 ·
Replies
5
Views
983