Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
MVC Pattern

MVC Pattern



|Views: 1,841|Likes:
Published by Geshan Manandhar
MVC Pattern and PHP
MVC Pattern and PHP

More info:

Published by: Geshan Manandhar on Dec 18, 2008
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less





MVC (Model View Controller): StopStarting From Scratch
In this article we will explorer the concept of pattern and pattern programming.Go into the depth of MVC (Model View Controller) pattern and how it has beenimplemented in context of web application development.
What are Patterns?
A pattern is a solution to a problem in a given context. As it becomes reliable itcan be followed over and over.We apply patterns in our day to day behavior; in fact human brain is pattern recognizingmachine. It is so brilliant at a pattern creating and pattern recognizing that we hardly ever think twice about pattern that we are applying.Do we ever think about the route that we are going to follow when we move from home tooffice? Well that’s because pattern is in working.So patterns are very normal to human, and why not apply patterns to the programming aswell. With the introduction of high level language and programming become more andmore specific to domains we can see that several patterns are formed and applied tocomputer programming as well.
What is Pattern Programming?
Before moving further lets clear this out that, No pattern programming is not alibrary or class or even a piece of code.Pattern programming is set of method to apply a standard solution to a specific type of  problem in your code. They are simply guidelines, not hard and fast rules. Other peoplemight have run across the same type of problems that all programmers run across, andthey developed some good methods to handle those problems. These are called patterns. Now once these common sets of solutions to the problems have been set, they can beshared and talked about in common way by programmers across the world. When programmers hear a specific patterns being talked about then they instantly have an idea
of how the program is organized and implemented. They know by the pattern howspecific problems in the program are addressed.It is bit like talking to your doctor. You tell about your headaches, stomachaches and wayof your fever and by diagnosis of pattern doctor predicts about your disease.As more programmers know about the most common patterns, the code being written will become more and more readable and more understandable over time. The code becomesmuch more maintainable, resulting in the better quality software, webware with theadvantage of reduce cost in development cycle.Christopher Alexander says each pattern is a three-part rule which expresses a relation between a certain context, a problem, and a solution.Pattern in the software development was especially popularized from the publication of the book named,“Design Patterns: Elements of Reusable Object-Oriented Software” by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides or often referred toas Gang of Four (GoF).Design patterns represent a solution to problems that arise when developing softwarewithin a particular context. There are different types of patterns and sub-patterns,generally the patterns can be divided into these categories:1.Creational PatternsCreational patterns are standard ways to create objects.2.Structural PatternsStructural patterns are standard ways to organize the relationship of objects.3.Behavioral PatternBehavioral patterns are standard ways to have communications between objects, italso has to do with other relationships between objects and lot more.
What is MVC?
Model View Controller a.k.a MVC was conceived in 1978 by Ward Cunningham andKent Beck who were working with SmallTalk and designing GUIs at Xerox PARC. Theoriginal implementation is described in depth in the influential paper,“Applications Programming in Smalltalk-80: How to use Model-View-Controller”.

Activity (23)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
ameshlal liked this
rabeyaHossain liked this
Bob Blanchett liked this
dantrilby liked this
reklonious liked this
Zunairapk liked this
neiesc liked this
rcg07306 liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->