[nycphp-talk] PHP5 Static Classes
Daniel Krook
krook at us.ibm.com
Mon Mar 7 17:24:39 EST 2005
> So my main question is: Why do people use object oriented programming
in
> websites?
There's a several reasons to use OOP for web applications. For one, it
matches model-driven development, which means you can put together a
wireframe or workflow of what your site will do and use objects to
represent the actors (Customers, Products), and methods to represent their
actions (checkOut, logIn). If you're working with clients or business
teams who aren't technical, these concepts benefit them by modeling their
rules and requirements and benefit you by providing a skeleton for the
code you must write.
An added benefit of OOP is the inherent organization that it provides you.
If you must later add a new bit of functionality, it should be obvious to
you - or any new team members that you might hire during the maintenance
or development of the application - where that new code should go.
The reason that one would use OOP when building a web app in PHP isn't for
technical advantages such as performance or persistence, it's about
writing maintainable and flexible code that mirrors your clients' changing
business needs.
Daniel Krook, Advisory IT Specialist - Application Development
WW Web Production Services North 2, ibm.com
1133 Westchester Avenue, White Plains, NY 10604
Personal: http://info.krook.org/
Persona: http://w3.ibm.com/eworkplace/persona_bp_finder.jsp?CNUM=9A9796897
More information about the talk
mailing list