There are certainly apps which are simple enough that OO coding is
unnecessary. I often find myself throwing together simple "cfquery at the
top of the page, cfoutput at the bottom of the page" apps from time to time
and it would be crazy (IMO) to implement an OO framework to solve those
problems.

Equally, for very large, complex web apps, I think there is a reason that
the vast majority of them are written using objects. It does aide
maintainability of larger applications.

Interestingly, the point where OO makes sense is fairly personal as it
depends on how well organized a procedural programmer you are, how
comprehensive your custom tags or other re-use libraries are for your
procedural code, how comfortable you are with OO coding and how quick and
easy your OO tooling makes solving the specific problem you're working on. I
tend to find over time that as my OO framework matures I'm more likely to
build even fairly simple apps using an OO rather than a procedural approach
and I'm finding that is working well for me, but there is no question that
there is a complexity point below which the overhead (in terms of
development time) isn't worth it. I'd suggest that the point is quite
variable across developers though.

Best Wishes,
Peter


On 3/31/08 12:52 PM, "Patrick McElhaney" <[EMAIL PROTECTED]> wrote:

> 
> On Mon, Mar 31, 2008 at 10:16 AM, Peter Bell <[EMAIL PROTECTED]> wrote:
> 
>>  The other approach would be to trade off maintainability for performance,
>>  writing less maintainable code and accepting the fact that you'd have to
>>  take longer adding and testing new features and would probably have to
>>  re-write the app from scratch more frequently in return for any time savings
>>  you may get on the object creation and the method calls.
> 
> It's not necessarily a trade-off. If all you're doing is reading data,
> performing some simple transformations, and putting it into a
> template, straight-forward procedural code may be easier to maintain.
> 
> Patrick



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to