What are Model View Controllers (MVC) | MVC with Node.js | Web Development | DevOps | Cloud-Native

preview_player
Показать описание
Model View Controller (MVC)

What's MVC?
- It's all about the separation of concerns.
- Make sure that different parts of your code do different things and you clearly know which part is responsible for what.
- #MVC stands for the model view controller
so we work with models, views, and controllers

- Models:
models are basically objects or are a part of your code that is responsible for representing your data in your code and allowing you to work with your data.
Represent your data in your code
Work with your data(eg: save, fetch)

- Views:
Views are responsible for what the user sees in the end. responsible for rendering the right content in our HTML documents and sending that back to the user.

- Controllers:
the controllers are the thing working with the models, saving that data or triggering that save process, and so on Connecting your models and views.

- Controller contains the in-between logic.

IGNORE:

#programming #webdesign #code #web #development #computer #programming #coding #python #security #developer #java #software #webdevelopment #webdeveloper #javascript #programmer #html #robotics #computerscience #coder
Рекомендации по теме