I have been playing with the ORM in ColdFusion 9 since the beta's I think its a really nice feature and helps make coding fun. Recently I have not had the chance to work with CF9 so I'm not massively involved in how to solve all the issues going from traditional SQL to and ORM model but in the past few days I have been helping out a friend with a ColdFusion project and I suggested he use ORM rather then creating tables and building all the SQL himself. Being unfamiliar with what an ORM does I did my best to explain it and this is where I think understanding OO can help alot as he got the concept in less then 5 mins and was coding from examples in about 10 mins ( all in script BTW ).
With a few examples and a bit of light discussion the project began and rather then creating tables and writing SQL he wrote some CFC's and used the ORM in CF9 to do alot of the boring stuff. Now this isn't a massive project and the actual functionality is a small admin section to a site but it goes to show that ORM can save time and is a viable option even for small projects.
I'm not sure if ORM is available in shared hosting? In this instance it doesn't matter as there was a full server to use. So far so good and really the only issues we have is sometimes we need to restart CF to pick up application changes as some times applicationStop() just didn't seem to work 100% ( but not reproducible consistently so probably something we did ).
So are you using the ORM on big or small applications? And has anyone had experiecne with ORM in shared hosting?
4 comments: