How I Adopted the Model, View, Controller (MVC) Architectural Pattern in JavaScript

Written by Aaron Rory | Published 2020/05/19
Tech Story Tags: model-view-controller-design | model-view-controller | mvc | javascript | web-development | javascript-development | agile-development | hackernoon-top-story

TLDR The MVC architecture divides your code into three (3) layers Models, Views and Controllers separating the different responsibilities of the program. The model layer can literally be as simple as an array but usually it would be a class. An application can have multiple models and these classes (models) would contain the basic data needed for the app to function. The models in this case can be divided into classes such as a Classroom, Person and an Array based model called Subjects. In JavaScript the MVC pattern will have to be tweaked a bit to fit the language specificity.via the TL;DR App

no story

Written by Aaron Rory | Full-Stack Developer - JavaScript, React, Ruby, Rails. Portfolio: https://aaronrory.com
Published by HackerNoon on 2020/05/19