Monthly Archives: June 2009

Should Your Objects Validate Themselves?

It seems quite common in the ColdFusion community to see objects with a validate() function. This is used to handle when your object contains potentially invalid data, such as invalid data supplied from a form. This leads to a good question; should your objects be allowed to have an invalid state? Let’s consider an example [...]
Posted in OOP | Tagged , | Comments closed

Nested Set Trees in ColdFusion (v1.0)

A common technique to manage hierarchical data in a relational database is to use an "Adjacency List" model, where you have both an ID column and a Parent ID column in a table. This is easy to understand and maintain but can be difficult or inefficient when you want to retrieve hierarchies of records. The [...]
Posted in Nested Set Trees | Tagged | Comments closed