Understand MVC Pattern?

Does one need OOP concept to understand / master MVC?

  • OOP is not equal to MVC, I'm weak in OOP, so some time I found they are similar, but actually the're not. Do I need strong OOP concept to understand MVC well?

  • Answer:

    It depends on the language that you are using. For example in a language that "procedural programming" is supported like PHP you can simulate easily the MVC concept. On the whole you must understand why do you need to know MVC (model view controller). Take your time to learn OOP (syntax, concepts), study open-source apps (the fastest way to learn) and become a better programmer.

Ionuţ Cătălin Milica at Quora Visit the source

Was this solution helpful to you?

Other answers

I think you do.  I am not sure if it is because MVC is intrinsically object-oriented, or just because every implementation I've seen is OO.

Peter Gee

As you have asked this question in PHP section I will answer with PHP's prospective. Short answer YES. You need to learn OOP properly before diving into MVC although it is not necessary, you can get away with basic oo knowledge but then remember most of the time you will be memorizing framework's way that I do not believe is a good thing. I learnt it in weird way, First after learning PHP and Basic OO I started learning a framework then again stuck and back to basics. Trust me after returning back to core I started to realize that now I can build my own MVC framework rather than using someone's other. Did I build my own MVC framework ? YES. Do I use it? NO because people have already spent a lot of time perfecting the framework that you do not need to build your own but I built it as it improved my own MVC understanding. Takeaway: Today I can learn any MVC framework in half the time I would have done without proper OO knowledge. Suggestion: Try to build basic CRUD app with Object Oriented PHP , if you could do that you can learn any framework then and on top of that you can learn advance OO concepts while learning framework as some of them have very good implementation of OO PHP.

Shashi Shekhar

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.