SlideShare a Scribd company logo
1 of 23
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

What's hot

Design pattern in android
Design pattern in androidDesign pattern in android
Design pattern in android
Jay Kumarr
 
Mvc pattern and implementation in java fair
Mvc   pattern   and implementation   in   java fairMvc   pattern   and implementation   in   java fair
Mvc pattern and implementation in java fair
Tech_MX
 

What's hot (20)

Introduction to Angularjs
Introduction to AngularjsIntroduction to Angularjs
Introduction to Angularjs
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
 
MVVM ( Model View ViewModel )
MVVM ( Model View ViewModel )MVVM ( Model View ViewModel )
MVVM ( Model View ViewModel )
 
Design pattern in android
Design pattern in androidDesign pattern in android
Design pattern in android
 
MVVM with WPF
MVVM with WPFMVVM with WPF
MVVM with WPF
 
MVC Framework
MVC FrameworkMVC Framework
MVC Framework
 
ASP.NET MVC.
ASP.NET MVC.ASP.NET MVC.
ASP.NET MVC.
 
Asp.net and .Net Framework ppt presentation
Asp.net and .Net Framework ppt presentationAsp.net and .Net Framework ppt presentation
Asp.net and .Net Framework ppt presentation
 
Spring Web MVC
Spring Web MVCSpring Web MVC
Spring Web MVC
 
INDUSTRIAL TRAINING Presentation on Web Development. (2).pptx
INDUSTRIAL TRAINING Presentation on Web Development. (2).pptxINDUSTRIAL TRAINING Presentation on Web Development. (2).pptx
INDUSTRIAL TRAINING Presentation on Web Development. (2).pptx
 
Unit Testing in Swift
Unit Testing in SwiftUnit Testing in Swift
Unit Testing in Swift
 
Training: MVVM Pattern
Training: MVVM PatternTraining: MVVM Pattern
Training: MVVM Pattern
 
Mvc pattern and implementation in java fair
Mvc   pattern   and implementation   in   java fairMvc   pattern   and implementation   in   java fair
Mvc pattern and implementation in java fair
 
Mvc architecture
Mvc architectureMvc architecture
Mvc architecture
 
Spring MVC Framework
Spring MVC FrameworkSpring MVC Framework
Spring MVC Framework
 
MVC in PHP
MVC in PHPMVC in PHP
MVC in PHP
 
Angular 14.pptx
Angular 14.pptxAngular 14.pptx
Angular 14.pptx
 
ASP .net MVC
ASP .net MVCASP .net MVC
ASP .net MVC
 
Asp.net MVC training session
Asp.net MVC training sessionAsp.net MVC training session
Asp.net MVC training session
 
.Net Core
.Net Core.Net Core
.Net Core
 

Similar to Why MVC?

Task 2 - Educational Article – Model View Controller (MVC)
Task 2 - Educational Article – Model View Controller (MVC)Task 2 - Educational Article – Model View Controller (MVC)
Task 2 - Educational Article – Model View Controller (MVC)
Shubham Goenka
 
Choosing the Right HTML5 Framework to Build your Mobile Web Application White...
Choosing the Right HTML5 Framework to Build your Mobile Web Application White...Choosing the Right HTML5 Framework to Build your Mobile Web Application White...
Choosing the Right HTML5 Framework to Build your Mobile Web Application White...
RapidValue
 
A Brief Note On Asp.Net And Cloud Computing Essay
A Brief Note On Asp.Net And Cloud Computing EssayA Brief Note On Asp.Net And Cloud Computing Essay
A Brief Note On Asp.Net And Cloud Computing Essay
Lanate Drummond
 

Similar to Why MVC? (20)

Avigma Tech LLC- Why the MVC pattern so popular?
Avigma Tech LLC- Why the MVC pattern so popular?Avigma Tech LLC- Why the MVC pattern so popular?
Avigma Tech LLC- Why the MVC pattern so popular?
 
Mvc Architecture in a web based application
Mvc Architecture in a web based applicationMvc Architecture in a web based application
Mvc Architecture in a web based application
 
Task 2 - Educational Article – Model View Controller (MVC)
Task 2 - Educational Article – Model View Controller (MVC)Task 2 - Educational Article – Model View Controller (MVC)
Task 2 - Educational Article – Model View Controller (MVC)
 
MVC(Model View Controller),Web,Enterprise,Mobile
MVC(Model View Controller),Web,Enterprise,MobileMVC(Model View Controller),Web,Enterprise,Mobile
MVC(Model View Controller),Web,Enterprise,Mobile
 
Choosing the Right HTML5 Framework to Build your Mobile Web Application White...
Choosing the Right HTML5 Framework to Build your Mobile Web Application White...Choosing the Right HTML5 Framework to Build your Mobile Web Application White...
Choosing the Right HTML5 Framework to Build your Mobile Web Application White...
 
MVC Architecture: A Detailed Insight to the Modern Web Applications Developme...
MVC Architecture: A Detailed Insight to the Modern Web Applications Developme...MVC Architecture: A Detailed Insight to the Modern Web Applications Developme...
MVC Architecture: A Detailed Insight to the Modern Web Applications Developme...
 
Mvc vs mvp vs mvvm a guide on architecture presentation patterns
Mvc vs mvp vs mvvm  a guide on architecture presentation patternsMvc vs mvp vs mvvm  a guide on architecture presentation patterns
Mvc vs mvp vs mvvm a guide on architecture presentation patterns
 
IntroductionToMVC
IntroductionToMVCIntroductionToMVC
IntroductionToMVC
 
A Brief Note On Asp.Net And Cloud Computing Essay
A Brief Note On Asp.Net And Cloud Computing EssayA Brief Note On Asp.Net And Cloud Computing Essay
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.pptxWhat 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
 
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.pptxWhat 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
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Ppt of Basic MVC Structure
Ppt of Basic MVC StructurePpt of Basic MVC Structure
Ppt of Basic MVC Structure
 
MVC.pptx
MVC.pptxMVC.pptx
MVC.pptx
 
A report on mvc using the information
A report on mvc using the informationA report on mvc using the information
A report on mvc using the information
 
MVC
MVCMVC
MVC
 
MVC
MVCMVC
MVC
 
Vue Or React - Which One is the Best_.pptx
Vue Or React - Which One is the Best_.pptxVue Or React - Which One is the Best_.pptx
Vue Or React - Which One is the Best_.pptx
 
Ps02 cint24 mvc in php
Ps02 cint24 mvc in phpPs02 cint24 mvc in php
Ps02 cint24 mvc in php
 
Mvp pattern
Mvp patternMvp pattern
Mvp pattern
 

Recently uploaded

Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
 

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 : mr.wailintun1984@gmail.com Facebook : http://www.facebook.com/waynetunmyint Linkedin :http ://www.linkedin.com/pub/wayne-tun-myint