learn mvc design pattern before learning framework?

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

learn mvc design pattern before learning framework?

Post by s.dot »

Should I learn MVC extensively to learn the ins and outs of how it works before I jump into learning a framework like Zend Framework or Symfony?

I would most likely learn by writing a web site from scratch using MVC design pattern (such as a blog, or ticketer.. something simple).

I just want to know if it would be practical to jump into learning frameworks before I fully understand the pattern? Or, if by learning the framework I can do both at once?

By the way, I didn't know if this should go here or in the newly created frameworks section. I figured here because it didn't have to do with a specific framework.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: learn mvc design pattern before learning framework?

Post by josh »

I know the Zend documentation for one describes it to you, so yes & no. http://framework.zend.com/manual/en/lea ... intro.html

As soon as you get a 'hello world' you'll already sort of get it if you've been programming a while, it just seems obvious after learning it (and you'll kick yourself for not using it earlier). Its nowhere near as complex as people make it sound. Its like drinking wine, anyone can do it - but some people will just go on for hours describing how great the wine is.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: learn mvc design pattern before learning framework?

Post by Christopher »

The only thing you really need to know is that Models should not depend on any Controller/View code. The framework will dictate where the separation between the Controller and View lies.
(#10850)
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: learn mvc design pattern before learning framework?

Post by Jonah Bron »

josh wrote:[...] it just seems obvious after learning it [...]
+1 :)
Post Reply