Example for an over engineered model view controller in python
The user can input a message, which the application encrypts using a Caesar's cipher the message "Hello Username" with a random shift. The encrypted message is then passed to the view component, which displays it in the console. The shift value for Caesar's cipher can be adjusted in the controller component by having the user input a number. In case the user guesses the correct shift value, the application will congratulate the user.
MVC - Model View Controller
The Model-View-Controller (MVC) is an architectural pattern that separates an application into three main logical components:
- Model - Application core, data and business logic -> responsible for maintaining data
- View - Representation of data -> takes data from the model and renders it
- Controller -> User input receiver -> glues together model and view
Each of these components is built to handle specific development aspects of an application. MVC is one of the most frequently used industry-standard web development framework to create scalable and extensible projects.
- Clone the repository
- Run the main.py file in the root directory
python main.py
- Follow the instructions in the console