开发者

Better Than MVC Pattern

开发者 https://www.devze.com 2022-12-12 08:14 出处:网络
I know there has been much shout about the goodness of MVC pattern. My question is that is there any pattern better than MVC to be

I know there has been much shout about the goodness of MVC pattern. My question is that is there any pattern better than MVC to be implemented in PHP?

I don'开发者_StackOverflow社区t know but other pattern might have advantages over the MVC pattern.

So actually I am in search whether there is something better than MVC.

Thanks in advance.


MVC architecture is a tool for building a certain kind of app. Your question is a bit like asking if there's anything better than a screwdriver. For nailing in nails, yes, there is. For driving screws, not so much.


There are probably many design patterns that someone may consider "better" than MVC, but I doubt you'll find something that is a replacement for MVC that is better in all regards. There are other related patterns but it's all about tradeoffs. MVC is popular for a reason.


Typically people speak about MVC and MVP design patterns, however i like the MVCP pattern, this has been very effective in my current project. It has enabled me to keep my code nice and clean, plus, its great pattern to ensure testability.

Even though i haven't used any existing PHP frameworks, MVPC is used in the Microsft Web Client Software Factory. Following a well established pattern will definitely help in the long run, provide the concepts of the pattern are full understood.

0

精彩评论

暂无评论...
验证码 换一张
取 消