Tag Archives: Validation

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 | Also tagged | Comments closed