Should a bean have a init() method?

 I'm currently building several new applications using ModelGlue, and as I was going through some example code I stumbeled upon a bean not containing a init() method. I thought this to be strange, as I thought the init() method is an unwritten law when it comes to beans. I asked the author of the code (via #coldfusion on dalnet) and he told me he did not think beans shold have init() methods. So now I'm a bit confused and don't know what to think. So I'm throwing the question out in the open. Please tell me, do you think a bean should have a init() method or not, and WHY do you think what you do? Hoping for a fruitfull discution from which I can make my own conclusion.

Go....

Rob Gonda - Hero of the day

 Looking at the header over at Rob Gondas blog one must wonder if he think himself some kind of super hero. Well today he has proven his position as such - at least in my eyes. The MG+Ajax examples he has posted is truly cool stuff. As soon as I get my first MG sites up and running (more about my strugles in upcoming posts) I'll look into this - I know it will be a big "Ooh" factor with some of our clients :)

Now I know what a BO is

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.

XML wizardery by Wayne Graham

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.

Model-Glue + Tartan sample app

Sean Corfield is blogging that Tomoaki Tamaka (site in japanese) have been creating a Model Glue + Tartan variation of Seans frameworks sample application.

Model-Glue tutorial by Jared

My friend Jared have written a Model-Glue tutorial. I'm looking forwards to giving it a spin.

Model-Glue faq by Eddie Awad

Eddie Awad has put together a Model-Glue faq that is well worth a few minutes of your time (if you are or intend to start using MG that is).

rbMan for Model-Glue

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.