section-engineering-education / engineering-education

“Section's Engineering Education (EngEd) Program is dedicated to offering a unique quality community experience for computer science university students."
Apache License 2.0
363 stars 889 forks source link

Understanding MVC Architecture in software development #7808

Closed kipkoech88 closed 1 year ago

kipkoech88 commented 1 year ago

Topic Suggestion

Understanding MVC architecture in software development

Writing sample(s):

https://www.section.io/engineering-education/predicting-future-stock-prices-using-aima-model-in-r/

Proposal Submission

Proposed title of the article

Understanding MVC architecture in software development

Proposed article introduction

[Node.js] Understanding MVC architecture in software development While working on unopinionated frameworks like express, there is no pre-defined architecture on how files and where pieces of code should be placed but keeping our codebase clean is important not only to you but also to other software engineers who will be working on the same project. While working on your projects you might have been placing all your models, routes, and views in one file i.e. app.js or server.js and everything is working fine but that is not a good practice. When the project gets bigger, that means the lines of code in that file will be larger which will make it difficult for another person who is looking to modify a part of the code and that's where MVC comes in. MVC, which stands for model view controller is an architectural pattern in software development that was created in 1970's initially for building desktop applications is greatly used in web applications to solve the problem of separation of concerns by dividing the program logic into three interconnected elements, that is , Model, View and Controller. In this article we are going to discuss how to apply MVC architecture in our Nodejs application by separating Database logics, routers. controllers and our views and how each part of our application works

Key takeaways

By reading this article, the ready will be able to:

  1. Understand MVC architecture
  2. Build a simple full-stack application using Node.js, Express, and MongoDB
  3. Understand why MVC architecture is important and why it is common in web development

Article quality

The article will be unique and in-depth explaining clearly each part of the code that a beginner or someone using other frameworks who are not familiar with Express or Nodejs can identify and understand why MVC is important and so common in web development.

References

  1. https://www.geeksforgeeks.org/mvc-framework-introduction
  2. https://www.freecodecamp.org/news/the-model-view-controller-pattern-mvc-architecture-and-frameworks-explained/
github-actions[bot] commented 1 year ago

👋 @kipkoech88 Good afternoon and thank you for submitting your topic suggestion. Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it.