Playback starts YouTube’s embedded player (privacy-enhanced mode).
PHP Tutorial: The Problem with MVC (it's time to move on!)
ChannelDavid ConnellyDescription from the creator
This video will not have any coding but just a short discussion about MVC. As I'm sure you know, MVC has been the dominant programming architecture of not just the PHP community but the entire web development community for the best part of about fifteen years.
MVC's popularity came about because it was the architecture of choice by the genius Next team who worked for Steve Jobs by in the 90s. Had I been a part of that team at that time then I would have applauded MVC. It was a great choice and perhaps even a perfect choice at that time.
However, times have moved on and I think it's time for the web development community to move on from MVC. That's because modern websites cannot be easily divided into three parts (M, V and C). For example, let's suppose you have a JSON file that defines the routing for some API endpoints. Which folder does that fit into?
It is the models folder? Certainly not! It has nothing to do with data!
It is the views folder? Again, no. There's no HTML or any viewable / presentation content at all.
How about the controllers folder? Once again, no. That's because there's no PHP computation required. We're just doing some routing for some endpoints!
What's very clear is that modern web applications require an architecture that is a bit more portable and flexible than MVC. This is the topic of conversation here.
PLEASE NOTE: This video is part of a series on PHP from intermediate to advanced.
MVC's popularity came about because it was the architecture of choice by the genius Next team who worked for Steve Jobs by in the 90s. Had I been a part of that team at that time then I would have applauded MVC. It was a great choice and perhaps even a perfect choice at that time.
However, times have moved on and I think it's time for the web development community to move on from MVC. That's because modern websites cannot be easily divided into three parts (M, V and C). For example, let's suppose you have a JSON file that defines the routing for some API endpoints. Which folder does that fit into?
It is the models folder? Certainly not! It has nothing to do with data!
It is the views folder? Again, no. There's no HTML or any viewable / presentation content at all.
How about the controllers folder? Once again, no. That's because there's no PHP computation required. We're just doing some routing for some endpoints!
What's very clear is that modern web applications require an architecture that is a bit more portable and flexible than MVC. This is the topic of conversation here.
PLEASE NOTE: This video is part of a series on PHP from intermediate to advanced.
About this tutorial
David Connelly published this 8:09 video tutorial on October 8, 2020. It has been watched 4,042 times on YouTube.
- Channel
- David Connelly
- Category
- Howto & Style
- Duration
- 8:09
- Published
- October 8, 2020
- Views
- 4,042
- Likes
- 100
Share
This tutorial in other languages
- FRPHP Tutoriel: Le problème avec MVC (il est temps de passer à autre chose!)
- ESTutorial PHP: El problema de la MVC (que es hora de seguir adelante!)
- PTPHP Tutorial: O problema com MVC (que é hora de seguir em frente!)
- ITPHP Tutorial: Il problema con MVC (è il momento di andare avanti!)
- DETutorial PHP: Das Problem mit MVC (es ist Zeit, sich!)
- NLPHP Tutorial: Het probleem met MVC (het is tijd om verder te gaan!)
- RUPHP Учебник: Проблема с MVC (пришло время двигаться дальше!)
- PLPHP Tutorial: Problem z MVC (to jest czas, aby przejść dalej!)
- JAPHPチュートリアル:MVCを通報します(上に移動することの時間を!)
- ARPHP دروس: مشكلة مع MVC (حان الوقت للمضي قدما!)
- HIपीएचपी ट्यूटोरियल: MVC के साथ समस्या (यह आगे बढ़ने का समय!)
- IDPHP Tutorial: Masalah dengan MVC (waktu itu untuk melanjutkan!)