Professional Documents
Culture Documents
Integration of Frameworks For Rapid Web Development
Integration of Frameworks For Rapid Web Development
Web Development
Copyright 2008 MySQL The World’s Most Popular Open Source Database 1
Introduction
Copyright 2008 MySQL The World’s Most Popular Open Source Database 2
A brief introduction to Frameworks
(and what we mean by that term)
● If a web site was a house that we were building then you
could describe it thus:
● The foundation is the server and operating system. LAMP is
our foundation
● The underlying code forms the plumbing, the wooden frame,
the electrical wiring and so on.
● The paint and the decoration is the site and the CSS
● The people who come to visit and live in it are our users.
Copyright 2008 MySQL The World’s Most Popular Open Source Database 3
Frameworks...
• Any code/platform which you can ease and automate
the building of an application. New Google App Engine
is a framework/platform built on a framework :)
Copyright 2008 MySQL The World’s Most Popular Open Source Database 4
Frameworks: The Good and The Bad
• Easy to deploy, better • Potentially less efficient
documentation • Bugs in code of the
• Core development is framework can affect you
elsewhere • The “ARRGH-why-does-it-
• Contribute to the maturing think-I-am-stupid” scenario
of the Framework – Frameworks can be the
independently Idiot's Guides to
• Rapid Development: no programming
need to reinvent yourself • The need for work-arounds
every time for specific use-cases
• Good business sense: (more screaming and
protection from core thumping of screens)
developers leaving
Copyright 2008 MySQL The World’s Most Popular Open Source Database 5
Case Study: The MySQL Story
● 200,000+ Visits/Day with 60,000 downloads and
climbing
Copyright 2008 MySQL The World’s Most Popular Open Source Database 10
Xdebug Profile: MySQL After
• Final xdebug profile showed that Zend Framework plus
our site content was about 1.7 - 2 times faster in
processing
Copyright 2008 MySQL The World’s Most Popular Open Source Database 11
A note about performance tuning
• Profiling is important: Only so much you can do
though!
• Look to your end-users for true performance tuning
• Examine other reasons for performance degradation:
– Bad memory
– Disk I/O
– Caching
– MySQL Performance
• Things like Yslow can give you some good and
interesting tips:
http://developer.yahoo.com/yslow/
Copyright 2008 MySQL The World’s Most Popular Open Source Database 12
Sample Application:
Constellation Phoenix
• Time for an application built from the ground up:
– http://phoenix.db4free.net
Copyright 2008 MySQL The World’s Most Popular Open Source Database 13
Prototyping with a Framework
Creating a site with a Framework-based platform gives
us a very quick prototyping tool for very advanced web
sites... here's what it all gives us:
• Zend (for PHP) • YUI (for AJAX)
– Session Management – Build new interfaces
– Authentication – Create quick AJAX
– REST Server applications
– Access Control Lists • Smarty (for HTML)
– Different types of – Defines Views
architectures (do you want – Move the presentation
MVC?) around without affecting
– Forms the code
– DB Objects
Copyright 2008 MySQL The World’s Most Popular Open Source Database 14
Now the application...
Copyright 2008 MySQL The World’s Most Popular Open Source Database 15
Finally...
• Do Experiment!
• Don't get caught up in spiritual debates about
Frameworks
• Analyze based on your needs
• Don't try to reinvent the wheel everytime, unless you
plan on making a better wheel
• Do join the community and help make all this even
better!
And....
Copyright 2008 MySQL The World’s Most Popular Open Source Database 16
QUESTIONS?!
Copyright 2008 MySQL The World’s Most Popular Open Source Database 17