Should a bean have a init() method?
Go....
I started this morning reading through the new posts at "the Goog", and came upon a post by the CF JediMaster Raymond Camden, where he answers a question regarding how to handle validation in OO approached CF app. As always Ray makes a good answer.
But what really caught my eye, and made me wake up even before my first cup of tea, was a comment from Callum. He explains how he goes about doing validation in a BO (Busines Object), and in doing so also describes in a easy to understand way what a BO is. This is another one of those OO consepts/expresions that I yet had left to understand. Reading the comment by Callum just made a huge lightbulb appear above my head.
So Callum - Kudos to you!
I now (think I) know what a BO is.
I've been using xml files both as config and controller files (both within and outside frameworks), as well as for data storage. That's about it - I've not been looking into the real nitty gritty of xml.
Maybe that is why I was pretty blown away when I saw this example on Wayne Graham's blog. It shows how to use something called entity parameters to reuse portions of a XML file throughout the document (as a response to a question by Ray Camden on the Model-Glue mailing list), and even cooler in my opinion, how to use entity parameters to break up a xml configuration file into several separate files. Extremly sweet.
I have more or less decided to use Model-Glue for the next big refactoring of a major application we've made in my daytime job company. I had also more or less decided to take a closer look at rbMan for the same refactoring process, as it might be that the next version of the application will be distributed to several other countries besides Norway.
Now rbMan is upgraded to use the Model-Glue framework. Should be interesting to look at when the time comes.