By Peter Bell

Approaches to Validation and Allowing Invalid Objects (responding to Jared part 2)

In Jared’s recent great posting, he talked about how he had argued in the past that beans shouldn't have a this.validate() method. I just wanted to take a little more time to look at approaches to validating objects and architecting these kinds of solutions.

[More]

Understanding the Anaemic Domain (responding to Jared - part 1)

Jared has just posted a thoughtful and thought provoking article on anaemic domain models and architectural approaches in CF. Unfortunately, I would argue that he has missed the boat in some ways and taken it to an extreme in others :-> (read the post, you'll get the reference)

[More]

Become a Better OO Architect: Thirteen Reasons for Creating a Class

I finally decided a little light reading was in order, so I’m making my way through the second edition of Steve McConnells excellent Code Complete. It isn’t a quick read at over 900 pages, but I think it is essential reading for anyone who aspires to professionalism in software development. If you’ve been programming for a while, most of the book will simply formalize practices you already employ, but I would challenge anyone to study all 900 pages without learning at least a few things that would make them better developers.

I just wanted to post a little about the section on “reasons to create a class” (page 152 onwards). I think it provides some great heuristics when trying to decide how to break your application into classes as opposed to just coming up with a domain model (which are two separate tasks).

[More]

BlogCFC was created by Raymond Camden. This blog is running version 5.005.