I agree with a lot of what he says. I was already a programmer before the web existed, and have a strong understanding of OO, but I rarely see a need to use the more complex OO concepts to build a simple data driven web site.
My basic rule is to separate data interaction from display, so I make a CFC to handle all database activity for a table, and call the same CFC from all displays and reports. I will occasionally overload a function by making the parameter optional. I treat the CFC much like a .Net or Java class, but inside it really just straightforward CFML. It works, it's easy to write, debug and maintain, and more importantly to me, it's my code and not some convoluted mess created by a committee of programmers. Best practices is also about knowing when NOT to use a particular tool. You don't need a jackhammer to thread a needle. On Fri, Nov 13, 2009 at 11:37 AM, Michael Grant <[email protected]> wrote: > > I've been doing CF for close to 10 years. I consider myself pretty damn > good, and have made some fantastic advanced apps. However lately I've been > feeling like I'm falling behind since I don't know OO, don't use frameworks, > don't really know what MVC is etc etc. So this morning when I started > googling and thinking "fuck, better start learning OO for CF before I go the > way of the dodo" I stumble across this. I love it. > > http://www.advantexllc.com/blog/post.cfm/how-oo-almost-destroyed-my-business ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:307890 Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
