NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP5 Static Classes

Brian O'Connor gatzby3jr at gmail.com
Mon Mar 7 17:40:13 EST 2005


Daniel -

That's a very helpful response ... I've been trying to grasp the
advantages of OOP in websites for quite some time now, and that has
shined some light on the issue for me.

Thank you.


On Mon, 7 Mar 2005 17:24:39 -0500, Daniel Krook <krook at us.ibm.com> wrote:
> > 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
> 
> 
> _______________________________________________
> New York PHP Talk Mailing List
> AMP Technology
> Supporting Apache, MySQL and PHP
> http://lists.nyphp.org/mailman/listinfo/talk
> http://www.nyphp.org
> 


-- 
Brian O'Connor



More information about the talk mailing list