The DAO and Gateway separation in CFML is nonsense
March 3, 2009 · 31 Comments
There, I said it! I said it in a post to the cfcdev mailing list and Henry Ho felt it deserved a mention on his blog. The topic came up because John Whish, manager of the Devon CFUG over in England (where I spoke last September on design patterns), is running a series of presentations on OO and patterns for the group. He wondered how to approach the fact that CFers tend to have separate DAOs and Gateways whereas that distinction does not exist in non-CF languages or pattern literature. I feel responsible for that distinction so I replied with my thoughts and an explanation of why I had suggested it nearly six years ago but why I don't think it's good advice these days (and, frankly, hasn't been good advice for years - I no longer had access to the guidelines document that enshrined the advice!). I recommend you read the thread on the Google Group (cfcdev). Henry quotes part of my reply and links to the thread for more detail.