Will,
Many of the ideas within OO are to promote encapsulation, easy reuse, and
increased maintainabilty.  In your example, it may be much easier to submit
a form to a page that takes those values and adds them to the database.  But
for example lets say you are storing a "customer", and that you must ensure
that there are no illeagal characters in their name.  In your example, this
can easily be done inline in the page, but what if you have multiple places
where a customer can be entered?  What about the SQL necessary to store this
customer?  Using OO, each of these operations is in exactly one place, and
all your other code leverages that single place.  This is one of a myrid of
problems that OO attempts to solve.  You gain flexibility and
maintainability but at the cost of an increased learning curve and
additional complexity.

HTH,
Rich


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307978
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to