MVC Made Simple: The Framework Behind Countless Web Applications

MVC stands for Model-View-Controller, and it’s a way of structuring applications so they’re easier to understand, build, and maintain. A Brief History of MVC MVC isn’t new. It dates back to the 1970s, when a Norwegian computer scientist named Trygve Reenskaug introduced the concept while working at Xerox PARC. At the time, researchers were experimenting …

Exploring Data Types in PHP with examples

In programming, we instruct computers to do things, and we call these instructions programs. We can write programs using different programming languages, the same way we can communicate with other humans using different human languages. Each language consists of rules that dictate how to use data, and each data has a type. The operations that …

What are Cookies and Sessions and How they work. Simple examples

Sessions and cookies are useful mechanisms that allow us to store data about a user’s activities on a website. But they do it differently and they server different purposes. We are going to dig-in both in this article. Cookies On an e-commerce website, we can put things we consider buying in a shopping cart or …

Should We Use Semicolons in JavaScript or not?

In JavaScript, closing a line of code with a semicolon is not mandatory. This is because JavaScript uses a set of rules called ASI (Automatic Semicolon Insertion) to, as the name implies, automatically place a semicolon if it determines that a line break is also the end of a statement. For example: Notice how the …

Using the BEM methodology in CSS with simple examples. Advantages & Reasons To Use

Working on an extensive development project with a lot of pages, a lot of CSS selectors, and different developers involved, makes the maintenance of the CSS styles difficult. Problems regarding CSS specificity often arise, and the altering of components in one area may affect components in another area, and so on. In order to deal …