SlideShare a Scribd company logo
2
Most read
8
Most read
12
Most read
WHY MVC?
Wayne Tun Myint
(Myanmar Web Solution )
What is MVC?
Model–view–controller
A software architecture pattern which separates the
representation of information from the user's interaction
with it.
The model consists of application data, business rules,
logic, and functions.
A view can be any output representation of data, such as a
chart or a diagram.Multiple views of the same data are
possible, such as a bar chart for management and a
tabular view for accountants.
How MVC works!
How MVC Works | Page 2
Brief History Of MVC
MVC was one of the first works to describe and
implement software constructs in terms of their
responsibilities.
Trygve Reenskaug introduced MVC in the 1970s
In the 1980s, Jim Althoff and others implemented
a version of MVC .
MVC was expressed as a general concept, in a
1988 article.
Brief History Of MVC- Page 2
The Controller, in modern applications is a module, or
an intermediary section of code, that mediates
communication (between the Model and View) and
unifies validation.
Other aspects of the MVC also evolved, but as a
variant of the original concept.
HMVC, MVA, MVP, MVVM, and others that adapted
MVC to different contexts.
Father of MVC
Trygve Mikkjel Heyerdahl Reenskaug
(born 1930 | Age 83) is a Norwegian
computer scientist and professor
emeritus of the University of Oslo.
He formulated the model-view-controller
(MVC) pattern for Graphic User Interface
(GUI) software design in 1979 while
visiting the Xerox Palo Alto Research
Center (PARC).
Some MVC Frameworks
Django (Python)
Rails(Ruby)
Zend Framework (PHP)
CodeIgniter (PHP)
CakePHP(PHP)
Some MVC Frameworks-2
YII (PHP)
Laravel(PHP)
Fuel PHP(PHP)
ASP.NET MVC
Laravel (PHP)
Symfony(PHP)
Kohana(HMVC) (PHP)
)

WHY MVC?
MVC (Model – View – Controller) is one of those
concepts that only starts to make sense when you’re
dealing with larger applications and/or when working
on the same application with several developers.
If you’ve got 3 tasks that need to be done on a certain
date, you won’t feel the need to have some kind of
task organization, but if you have to deal with dozens
of different tasks, with various due dates you’ll start
using todo-lists.
WHY MVC-Page 2
But when you start working with a team of people
and you need to prioritize and sequence tasks,
you realize simple to do-lists won’t be enough.
MVC’s benefits are absolutely not restricted to
large-scale, team-based development, but they
become most obvious in such situations.
Example Project Case
You made an web application/website for a flower shop
owner with a small database table. it is a huge success and
your client is extremely satisfied.
They ask you to change the application, they want to use a
different database and according to market demand they
definitely need both iPhone and Android app as well.
Now repeat this five times. The client keeps on asking
modifications. expansions etc.
These can be UI related changes and even complete
backend architecture .
YES , YOU will be in deep
shit of pains.
However if you used MVC from the start you’d
notice that some things would’ve been less
painful
And more happier
Why?
90% of the code for the web application and the
mobile app will be the same, but instead of saving the
user data to a Shared Object or through a web
service, you’d be using a local DB for instance.
Without MVC chances are pretty high you’ll be
making modifications in a bunch of classes.
The same applies to the UI for instance. Only the way
it’s presented to the user is different.
Advantages of Using MVC
More Structural
More Flexible
Can maintain code in better ways.
More suitable for future implementations
Reduce Complexity
Disadvantages
The complexity is high to develop the applications
using this pattern without learning properly.
Not right suitable for extra-small applications .
The isolated development process by UI authors,
business logic authors and controller authors may
leads to delay in their respective modules
development.
CodeIgniter
CodeIgniter is an open source rapid development web
application framework, for use in building dynamic web sites with
PHP.
“Its goal is to enable [developers] to develop projects much faster
than writing code from scratch, by providing a rich set of libraries
for commonly needed tasks, as well as a simple interface and
logical structure to access these libraries.
First Version was released on February 28, 2006.
CodeIgniter is loosely based on the popular Model-ViewController development pattern.
Code Igniter | Page-2
While view and controller classes are a necessary
part of development under CodeIgniter, models are
optional.
CodeIgniter is most often noted for its speed when
compared to other PHP frameworks.
In a critical take on PHP frameworks in general, PHP
creator Rasmus Lerdorf spoke at frOSCon in August
2008, noting that he liked CodeIgniter "because it is
faster, lighter and the least like a framework.
Practical Code Example
Conclusion
References

http://stackoverflow.com/questions/24450/what-are-the
market

http://deviltechie.wordpress.com/2012/03/29/why-mvc/
Q & A Section
Thank you!
Email : mr.wailintun1984@gmail.com
Facebook :
http://www.facebook.com/waynetunmyint
Linkedin :http
://www.linkedin.com/pub/wayne-tun-myint

More Related Content

PDF
MVC architecture
PPTX
Introduction to mvc architecture
PPTX
Model view controller (mvc)
PPT
MVC Architecture in ASP.Net By Nyros Developer
PPTX
Spring boot Introduction
PDF
The WAF book (Web App Firewall )
PPT
MVC ppt presentation
PPT
ASP .net MVC
MVC architecture
Introduction to mvc architecture
Model view controller (mvc)
MVC Architecture in ASP.Net By Nyros Developer
Spring boot Introduction
The WAF book (Web App Firewall )
MVC ppt presentation
ASP .net MVC

What's hot (20)

PPT
MVC Architecture
PPTX
Mvc pattern and implementation in java fair
PDF
신입 웹 개발자 포트폴리오 / 댓글 게시판
PDF
Spring MVC Framework
PDF
Spring Framework - Core
PDF
스프링5 웹플럭스와 테스트 전략
PDF
F5 ASM v12 DDoS best practices
PPTX
ASP.NET Core MVC + Web API with Overview
PDF
Model View Controller (MVC)
PPT
Mvc architecture
PDF
What's new in selenium 4
PPTX
Progressive Web App
PDF
Achieving observability-in-modern-applications
PPTX
Introduction to GraphQL
PDF
Spring Framework
PPTX
PPTX
REST & RESTful Web Services
PDF
MVC Architecture
PPTX
Ef code first
PDF
Azure Application insights - An Introduction
MVC Architecture
Mvc pattern and implementation in java fair
신입 웹 개발자 포트폴리오 / 댓글 게시판
Spring MVC Framework
Spring Framework - Core
스프링5 웹플럭스와 테스트 전략
F5 ASM v12 DDoS best practices
ASP.NET Core MVC + Web API with Overview
Model View Controller (MVC)
Mvc architecture
What's new in selenium 4
Progressive Web App
Achieving observability-in-modern-applications
Introduction to GraphQL
Spring Framework
REST & RESTful Web Services
MVC Architecture
Ef code first
Azure Application insights - An Introduction
Ad

Similar to Why MVC? (20)

PDF
Avigma Tech LLC- Why the MVC pattern so popular?
PDF
Mvc Architecture in a web based application
PDF
Task 2 - Educational Article – Model View Controller (MVC)
PPT
MVC(Model View Controller),Web,Enterprise,Mobile
PDF
Choosing the Right HTML5 Framework to Build your Mobile Web Application White...
PDF
MVC Architecture: A Detailed Insight to the Modern Web Applications Developme...
PPTX
Mvc vs mvp vs mvvm a guide on architecture presentation patterns
DOCX
IntroductionToMVC
PDF
A Brief Note On Asp.Net And Cloud Computing Essay
PPTX
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
PPTX
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
PDF
Understanding the Laravel MVC Architecture
PPT
Ppt of Basic MVC Structure
PPTX
MVC.pptx
DOCX
A report on mvc using the information
PDF
PPTX
Vue Or React - Which One is the Best_.pptx
PPTX
Ps02 cint24 mvc in php
PDF
Mvp pattern
Avigma Tech LLC- Why the MVC pattern so popular?
Mvc Architecture in a web based application
Task 2 - Educational Article – Model View Controller (MVC)
MVC(Model View Controller),Web,Enterprise,Mobile
Choosing the Right HTML5 Framework to Build your Mobile Web Application White...
MVC Architecture: A Detailed Insight to the Modern Web Applications Developme...
Mvc vs mvp vs mvvm a guide on architecture presentation patterns
IntroductionToMVC
A Brief Note On Asp.Net And Cloud Computing Essay
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
What Are The Benefits Of Using MVC Framework In ASP.NET Development.pptx
Understanding the Laravel MVC Architecture
Ppt of Basic MVC Structure
MVC.pptx
A report on mvc using the information
Vue Or React - Which One is the Best_.pptx
Ps02 cint24 mvc in php
Mvp pattern
Ad

Recently uploaded (20)

PDF
Complications of Minimal Access Surgery at WLH
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
master seminar digital applications in india
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
GDM (1) (1).pptx small presentation for students
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Trump Administration's workforce development strategy
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Complications of Minimal Access Surgery at WLH
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
master seminar digital applications in india
2.FourierTransform-ShortQuestionswithAnswers.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Chinmaya Tiranga quiz Grand Finale.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
RMMM.pdf make it easy to upload and study
Supply Chain Operations Speaking Notes -ICLT Program
GDM (1) (1).pptx small presentation for students
O7-L3 Supply Chain Operations - ICLT Program
Anesthesia in Laparoscopic Surgery in India
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Trump Administration's workforce development strategy
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
01-Introduction-to-Information-Management.pdf
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Weekly quiz Compilation Jan -July 25.pdf
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE

Why MVC?

  • 1. WHY MVC? Wayne Tun Myint (Myanmar Web Solution )
  • 2. What is MVC? Model–view–controller A software architecture pattern which separates the representation of information from the user's interaction with it. The model consists of application data, business rules, logic, and functions. A view can be any output representation of data, such as a chart or a diagram.Multiple views of the same data are possible, such as a bar chart for management and a tabular view for accountants.
  • 4. How MVC Works | Page 2
  • 5. Brief History Of MVC MVC was one of the first works to describe and implement software constructs in terms of their responsibilities. Trygve Reenskaug introduced MVC in the 1970s In the 1980s, Jim Althoff and others implemented a version of MVC . MVC was expressed as a general concept, in a 1988 article.
  • 6. Brief History Of MVC- Page 2 The Controller, in modern applications is a module, or an intermediary section of code, that mediates communication (between the Model and View) and unifies validation. Other aspects of the MVC also evolved, but as a variant of the original concept. HMVC, MVA, MVP, MVVM, and others that adapted MVC to different contexts.
  • 7. Father of MVC Trygve Mikkjel Heyerdahl Reenskaug (born 1930 | Age 83) is a Norwegian computer scientist and professor emeritus of the University of Oslo. He formulated the model-view-controller (MVC) pattern for Graphic User Interface (GUI) software design in 1979 while visiting the Xerox Palo Alto Research Center (PARC).
  • 8. Some MVC Frameworks Django (Python) Rails(Ruby) Zend Framework (PHP) CodeIgniter (PHP) CakePHP(PHP)
  • 9. Some MVC Frameworks-2 YII (PHP) Laravel(PHP) Fuel PHP(PHP) ASP.NET MVC Laravel (PHP) Symfony(PHP) Kohana(HMVC) (PHP)
  • 10. ) WHY MVC? MVC (Model – View – Controller) is one of those concepts that only starts to make sense when you’re dealing with larger applications and/or when working on the same application with several developers. If you’ve got 3 tasks that need to be done on a certain date, you won’t feel the need to have some kind of task organization, but if you have to deal with dozens of different tasks, with various due dates you’ll start using todo-lists.
  • 11. WHY MVC-Page 2 But when you start working with a team of people and you need to prioritize and sequence tasks, you realize simple to do-lists won’t be enough. MVC’s benefits are absolutely not restricted to large-scale, team-based development, but they become most obvious in such situations.
  • 12. Example Project Case You made an web application/website for a flower shop owner with a small database table. it is a huge success and your client is extremely satisfied. They ask you to change the application, they want to use a different database and according to market demand they definitely need both iPhone and Android app as well. Now repeat this five times. The client keeps on asking modifications. expansions etc. These can be UI related changes and even complete backend architecture .
  • 13. YES , YOU will be in deep shit of pains. However if you used MVC from the start you’d notice that some things would’ve been less painful And more happier
  • 14. Why? 90% of the code for the web application and the mobile app will be the same, but instead of saving the user data to a Shared Object or through a web service, you’d be using a local DB for instance. Without MVC chances are pretty high you’ll be making modifications in a bunch of classes. The same applies to the UI for instance. Only the way it’s presented to the user is different.
  • 15. Advantages of Using MVC More Structural More Flexible Can maintain code in better ways. More suitable for future implementations Reduce Complexity
  • 16. Disadvantages The complexity is high to develop the applications using this pattern without learning properly. Not right suitable for extra-small applications . The isolated development process by UI authors, business logic authors and controller authors may leads to delay in their respective modules development.
  • 17. CodeIgniter CodeIgniter is an open source rapid development web application framework, for use in building dynamic web sites with PHP. “Its goal is to enable [developers] to develop projects much faster than writing code from scratch, by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries. First Version was released on February 28, 2006. CodeIgniter is loosely based on the popular Model-ViewController development pattern.
  • 18. Code Igniter | Page-2 While view and controller classes are a necessary part of development under CodeIgniter, models are optional. CodeIgniter is most often noted for its speed when compared to other PHP frameworks. In a critical take on PHP frameworks in general, PHP creator Rasmus Lerdorf spoke at frOSCon in August 2008, noting that he liked CodeIgniter "because it is faster, lighter and the least like a framework.
  • 22. Q & A Section
  • 23. Thank you! Email : [email protected] Facebook : http://www.facebook.com/waynetunmyint Linkedin :http ://www.linkedin.com/pub/wayne-tun-myint