Skip to main content

Posts

Showing posts from January, 2005

DAOs and Composition

In the spirit of what Joe Rinehart and a few others have been doing so far in this the "year of OO for CFers," I thought I'd share what I've been working through this week. Specifically I've been grappling with Data Access Objects (DAOs) and how best to use them when composition is involved with the objects. I've done this several times before but I'm using a rebuild of our CFUG site to dig deep and try and figure out the best way to handle this (I'll stop short of saying "the right way to handle this"). For example, let's say I have a Person bean and an Address bean, and the Person bean has an Address bean in it. What's the best way to handle this situation in the DAOs?

Let's focus on the create method specifically since it's the most messy. If we're dealing with a Person and an Address, let's assume we have a form on which a person enters their basic personal information (name, email, etc.) and also their…

The Importance of Load Testing

I recently finished up the first phase of a complete rebuild of my company's intranet. A big part of the new application is an integrated search that hits not only the intranet pages (which are largely managed using Macromedia Contribute), but also hits our knowledge management tool, which is a CF 5 app that uses Oracle as well as Verity collections as its datasources.
Because the knowledge management (KM) app contains some sensitive information and that team was reluctant to have us hit their datasources directly, our first notion of how we'd integrate the two sides of the intranet was to have our CFMX app hit a CFML page on the CF5 side of things with a query string, then we'd get a WDDX packet as our response. Seemed to work great, but then we fired up Load Runner to do some load and performance testing, and this is when things got interesting.

Load Runner is a really, really great tool. If you haven't used it before, you can easily script virtual users by…

What's an Object?

What started as a simple blog entry quickly became quite lengthy, so I'm posting what I hope will be the first in a series of introduction to object-oriented programming for ColdFusion programmers articles as a PDF.
Please feel free to comment, correct, scrutinize, and ask questions as needed!


whats_an_object.pdf
Download this file



Comments
Thanks for writing this piece and I look forward to any future ones!
Posted by Freddys @ 4/17/07 3:04 PM

Ben Forta blogged this. that's how I found it.
Posted by john ivanoff @ 4/17/07 3:04 PM

Excelent Matt, While this was not new to me, this is the first time I gained a real understanding of it. You have a great way of explaining. Really looking forward to the future "follow ups".
Posted by Trond Ulseth @ 4/17/07 3:04 PM

Thanks everyone--appreciate the feedback!
Posted by Matt Woodward @ 4/17/07 3:04 PM

I was looking for a OO explanation in a CF way... and this is it... (and like Trond... I'm really looking forward for more.) …