Your SlideShare is downloading. ×
0
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
MVC For Web Development
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

MVC For Web Development

3,769

Published on

Discussion on what a Model View Controller is and what it can do for systems development.

Discussion on what a Model View Controller is and what it can do for systems development.

Published in: Education, Technology, Business
1 Comment
1 Like
Statistics
Notes
  • if someone is designing a web site what is the best software to team up with MVC more so for the graphics?
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
3,769
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
1
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Presented by: Ermilo John D. Gialogo, Jr. La Salle Computer Society De La Salle University 06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development
  • 2. 06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development Our objective: TO BE RESPONSIBLE PROGRAMMERS FOR MANKIND.
  • 3. 06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development Our objective: TO BE ORGANIZED SYSTEMS DEVELOPERS.
  • 4.
    • INTPROG
      • Java Concepts
    • DATABAS
      • Database Concepts
    • DEVWEB
      • HTML/Web Concepts
    06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development
  • 5. 06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development What you could have done before: “ BASTA GUMANA AYOS NA YAAAN!” >:D
  • 6.
    • One JSP file DOES ALL THE HARDWORK
      • Stores and retrieves data from database
      • Layouts the display of data
      • Checks the input from the user
      • Does this, does that, etc. etc.
    • Sa karinderya, si manang ay nagluluto habang nags-serve habang kumukuha ng bayad.
    06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development
  • 7.
    • Some problems encountered
      • Tracking
        • “ Hindi ko na maalala kung saan ko nilagay yung function ng adding users!”
        • “ OM*G ang hirap naman i-debug!”
      • Changes in implementation
        • “ Ayoko na galawin yan kasi may Java codes na yan! Mamaya masira ko pa ‘tong MP natin!”
        • “ Kaso iisa-isahin ko pa yung mga JSP files kasi may hindi tayo napansin sa project specs!”
    06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development
  • 8. 06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development What needs to be done: MVC IS THE HACK!
  • 9.
    • Model-View-Controller
      • Separation of business logic from user interface
      • Changes in one will not affect the other.
    • Sa fastfood , may cashier, may waiter at may cook.
    06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development
  • 10.
    • Three elements
      • Model
      • View
      • Controller
    06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development
  • 11.
    • Model
      • Object representing data
      • Talks to the database
        • Store
        • Retrieve
        • Validate
    06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development
  • 12.
    • View
      • Visualization of model
      • What the user sees, where the user interacts
        • Display
        • Receive input
    06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development
  • 13.
    • Controller
      • Facility to change the state of the model
      • Interprets what the user wants, delegates what the model will do
        • Process input
    06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development
  • 14. 06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development VIEW CONTROLLER MODEL
  • 15. 06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development Data to get: Products
  • 16. 06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development Retrieving Products Display: Products
  • 17. 06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development
  • 18. 06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development Situations on how to use MVC MOAR EXAMPLES
  • 19. 06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development GroupID GroupName GroupDesc GroupCreator GroupCrDate 1 Naruto Sasuke is gay! toriavalon 1/25/2009 2 SOCCOMP09 Miss K’s class Kiranbudhrani 1/7/2009
  • 20.
    • What will the controller do?
    • What will the model do?
    06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development
  • 21.
    • Controller
      • Get all user inputs
        • Validate if it conforms to standards (character limit, etc)
          • If not, give “Error in input” view
      • Get current user’s username
      • Get system’s date
      • Pass all parameters to Model
      • Wait for Model to give status
        • Give “Success” or “Error” view
    06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development
  • 22.
    • Model
      • Initialize the driver
      • Prepare the query
        • Must be Prepared Statements
      • Run the query
      • Tell controller on what happened after running the query
    06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development
  • 23. 06/08/09 Ermilo John D. Gialogo, Jr. ● MVC for Web Development Now for the fun part HANDS-ON

×