Home  /  Questions  /  Question

50   50
Sep 26, 2010

Is MVC one of the GoF (Gang-of-Four) patterns?

I was wondering whether MVC is one of the GoF patterns.
I see familiar patterns like Bridge patterns which seem similar to MVC.
So, is MVC a type of Bridge pattern or is it a standalone pattern with no relation to GoF?


1,128   99.9
Sep 26, 2010

Well, no MVC is not one of the GoF patterns. They are not at the same level. MVC is what is called an architectural pattern while GoF patterns are design patterns.

However, when implementing MVC you can take advantage of existing patterns. Take the Head First Design Patterns book they build MVC using Strategy, Composite, and Observer pattern. And I'm sure that there exists other implementations of the MVC pattern using other design patterns. I have also seen MVC being done using the Command pattern.

Needless to say, even though MVC is not a GoF pattern, it is still a very useful one. GoF patterns are only a few of all existing patterns out there.