Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Best paractices or guidelines for MVC Framework

 
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can any body please let me know about best practices or guidelines to design a MVC Frame work..
What all points should one take care off
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here are some properties to think about:
  • Extensible -- the framework should allow for a wide variety of customization
  • Non-disruptive -- the framework shouldn't prevent using another framework within the same application
  • Helpful -- the framework should incorporate common functionality for improving overall productivity
  • Simple -- the framework should be relatively easy to learn and use
  • Clean -- the framework should separate concerns (e.g. deployment-specific configuration should be separate from code)

  • There must be more, but I hope this is an ok start...
     
    author
    Posts: 14112
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    The best way to make sure that your framework actually is usefull and usable is to concurrently write at least two or three different applications that make use of it.
     
    Ranch Hand
    Posts: 1934
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Struts is almost proven in that sense with respect to MVC framework.
    In the near future, a combination of JSF and Struts can be very productive to develop cool web applications.
    Kishore.
     
    Ranch Hand
    Posts: 185
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    MVC is a pattern (best practice) so I would get you familiar with it to get best possible understanding of it. Then you go and choose a framework or write your own. Then you write guidelines what to be aware of when using your framework and make it known (difficult part). In case [e.g.] you choose Struts, it could look like this:
    Things to remember when with Struts:
    �Only one instance of Action class is created
    �Watch for thread safety
    �Use local variables
    �Do not synchronize your method if you do not have to it can be major performance bottleneck.
    Hope that helps.
     
    Ilja Preuss
    author
    Posts: 14112
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Gunjan, why do you ask?
     
    What are you saying? I thought you said that Santa gave you that. And this tiny ad:
    Free, earth friendly heat - from the CodeRanch trailboss
    https://www.kickstarter.com/projects/paulwheaton/free-heat
    reply
      Bookmark Topic Watch Topic
    • New Topic