Viewing Category: cf.Objective  [clear category selection]

What I learned at CF.Objective conference

This is a recap of the sessions I went to, partly to organize my notes.

SATURDAY, MARCH 10
Keynote on Mystic and Flex - Tom Jordahl of Adobe
I'm not really into Flex (yet), so here's just a few tidbits. Discussed Mystic and Flex 2. Mystic will be an additional feature for the CF server to facilitate working with Flex. Flex 2 IDE (a plugin for Eclipse) will have some highly desired items such as RDS and Bean generation based on a table.

SQL Abstraction - Isaac Dealey (onTap Framework)
Isaac has built some cool tools for allowing you to get data from your tables without caring which Database you have (MSSQL, MySQL, Oracle, etc.) He posted an article that can explain things much better than I: http://coldfusion.sys-con.com/read/45569.htm

CFCs with Factories - Sean Corfield of Adobe
Code can become more difficult to maintain and objects more difficult to manage if you have createObject (or cfobject or cfinvoke) sprinkled throughout your code. Using a "Factory" to create your objects can clean this up. This follows a couple of the OOP tried and true Design Patterns. While writing a custom factory is possible, he (and others) are using ColdSpring (www.coldspringframework.org). I've tried this out and it is pretty sweet. Another side recommendation Sean made was when creating an object, go ahead and run the init method to avoid having an object be initialized twice unnecessarily (even undesireably). For example, using CF Script: myNewInstance = createObject('componen't,'path.to.my.cfc').init('arguments');

AOP with ColdSpring - Chris Scott
This one was a bit over my head, but sounded like cool stuff. AOP stands for Aspect Oriented Programming. I don't know exactly what that means, but Chris explained a posible implementation where if you have a method in a CFC for which you want to create a log entry each time it is executed, you could use ColdSpring and its AOP capabilities to call an external logging service (cfc) to handle this. This is better than putting the logging code directly into the method because as soon as you have more than one method you want logged, you would have duplicate code.

Object THINK - Simon Horwith
Simon likes to deviate from the 'formal' way of thinking about objects. Based on a lot of object theory and design research that he has done, he prefers to get a full understanding of what a business does and personify objects. He encourages writing the nouns of the business (customer, product, invoice) on an index card and then expanding on what that thing can do.  The most recent issue of ColdFusion Developer's Journal explains some of this thinking and also goes into his stance on frameworks in general.

Mach II and ColdSpring - Kurt Wiersma
Kurt has been found that the combination of Mach II and ColdSpring is quite useful. He created a "Starter" application called AppBooster which can be used as a starting point for any new application. It comes with a login, User management and login verification via the session. AppBooster can be used as a MachII/ColdSpring learning tool also. He should be posting this on his blog soon (google Kurt Wiersma).


SUNDAY, MARCH 11
Keynote on ColdFusion in the Enterprise - Hal Helms
Hal discussed ColdFusion and its successes in being used for mission critical applications. He used a marketing analogy, which was interesting as I was a marketing major, for how we should be convincing management that CF is a good fit. I won't elaborate on this part, but Hal also encouraged us developers to put ourselves in management's shoes. The manager is just trying to do what he feels is best for the company (and not get fired). Another great quote Hal said is aimed at CF developers: "CF Programmers need to get out of the webmaster world and into the software engineering world." With that, we will be able to build Enterprise class applications, not just web sites.

Enterprise Reporting - Kurt Wiersman
When CF 7 first came out, I learned about cfdocument and cfreport as possible reporting solutions. What I hadn't heard before was a real world story of how this can work. Kurt has been able to build reports using either cfdocument, the ColdFusion Report Builder, or good old CFML/HTML to meet his companies needs. One part that helped me know what to do about my company's reporting woes is to first evaluate all the reports and determine their usage. This breaks down as follows: Audience-who will see it; Medium-screen, paper, publication, exporting; Frequency-how often it is used; Timing-when it is needing; and User-who will run it (possibly with scheduler).

Objects & Persistance - Sean Corfield
Sean discussed the standard way to get your database to talk to your business objects. Data Access Objects (DAOs) and Gateways seem to be the most accepted way to do this. Coding these can become quite redundant. So Sean also presented on some code generators that can handle this for you. These generators do more than just spit out code for your use, they can change on the fly and handle table relationships and such. More appropriately, these code generators are called Obect Relational Mapping (ORM) tools. Reactor is an up and coming one that Sean and the ColdSpring guys are working to integrate. objectBreeze is another one that just went to version 1.0. There is an article in the latest issue of CFDJ about how to use it (looks pretty easy). One purpose of these ORM tools is to prevent you from having to write any SQL.

Migrating Legacy Apps to CFCs and OOP - Matt Woodward
Matt discussed some things to think about when considering a rewrite on an existing application that is showing its age. He then did a case study on a migration he started a while back and is still in the midst of. As I am currently looking to do this myself, I have to take one his pieces of advice seriously and that is to watch out for the Business' needs over my own geek desires to use the latest, coolest technology.

Frameworks Roundtable - Jared Rypka-Hauer, Peter Farrell, Matt Woodward, Kurt Wiersma, Sean Corfield, Isaac Dealey, Chris Scott & Paul Kenney
There was lots of good advice given from these guys as they fielded questions from the audience. I asked them if I should be afraid of choosing a framework and that framework possibly being deprecated or forgotten about soon after I deploy my application. They said this shouldn't be a concern because they are all open source and maintained by many. Also, if I get an application working on a framework, I can keep that framework code working with that app. Another helpful explanation for me was to categorize all the different stuff falling into the generic 'Framework' term. Fusebox, onTap, Mach II, and Model Glue all help you structure your code into a more maintainable way. ColdSpring, Tartan and Chili Beans (deprecated) help you manage your model (CFCs that do the business work). And Reactor, objectBreeze and ARF are Object Relational Management tools for working with the database. It is possible to use one from each category in conjunction, though it can take some doing to get it working.

Model Management - Chris Scott
Chris gave a good overview of what ColdSpring does and how it can help manage your CFCs, especially those that have dependencies on each other. I am starting some use of ColdSpring myself and really liking it. Again, check out coldspringframework.org.

Quite the long post. I'll try to post some code examples of how I'm using what I learned pretty soon. I just submitted this blog for inclusion on MXNA over the weekend, so we'll see if that drives a little more traffic my way. I had a huge spike after Ray Camden posted link to my entry about porting his Canvas Wiki to Mach II.

cf.Objective  |  Send
Posted 3/13/06 @ 5:36 AM by Matt Williams

Back from CF.Objective

Due to some slight snow delays, I returned home after 11pm last night. No worries though, with my Bose Noise Cancelling headphones, my Pod and the shuttle driver handling the snowy roads, life was good.

The conference rocked. I learned tons, met tons of great people and overall had a good time. Frameworks and Object Oriented Programming were definitely the buzz terms. The attendees I talked to ranged from some who had been using Mach II or Model Glue for several months to others who were trying to make sense of it all and yearned to learn more to a few who were happy with their own methodology.

For me, I have been using Mach II for about a month, but want to give Model Glue a quick go just to learn the differences. I may even attempt a simple app that can easily switch between the two. Not sure if it's possible, but it will be fun to try anyway.

If you can, go to a conference. But don't just go, get involved. Don't be afraid to talk to the speakers that are talking about the stuff you want to know more about. Everyone I talked to was super-willing to help and discuss how they have handled things I was having problems with.

cf.Objective  |  Send
Posted 3/13/06 @ 5:35 AM by Matt Williams

cf.Objective Lunch

Free lunch! Cool. Wasn't even expecting that.

The morning sessions that I attended are:
General Session - Tom Jordahl of Adobe covered Flex 2 and Mystic
SQL Abstraction - Isaac Dealey
CFCs and Factories - Sean Corfield covered the Factory Method and Abstract Factory Design Patterns and how ColdSpring makes this easy.

cf.Objective  |  Send
Posted 3/11/06 @ 9:48 AM by Matt Williams

At CF.Objective() conference, morning of March 11

Yesterday (Fri, Mar 10) I flew to Minneapolis to participate in the CF.Objective() conference. After checking into my room (the reservation for which was lost), I grabbed a bite to eat at the Mall of America which is two blocks away. When I got back to the hotel, I wandered around a bit until I found a group of CF'ers hanging out in the pub.

Having never been to a conference of this sort, I was able to meet several of the people that have been teaching me through their articles, blog postings and podcasts. A nice guy named Conan of My Comic Book Shop introduced me to Michael and Judith Dinowitz, Paul Kenney, Chris Scott, Matt Woodward, Jared Rypka-Hauer, Sean Corfield, Isaac Dealey, and several others. For the next couple of hours I sat and listened as Michael told Conan about his comic book collection, as Chris and Sean talked snowboarding and teaching 4-year-olds to ski, and as Isaac discussed his career woes.

There was also some talk about that software-type stuff. Sean, now being an Adobe employee, told of some impressive things he has seen with Adobe PDF such as 3-D modeling from a CAD drawing inside a normal PDF. Chris Scott (of ColdSpring) spoke of lots that he is doing with Flex and Flash and also some new things he wants to do with ColdSpring (mixins). Later, Hal Helms and Simon Horwitz showed up and joked about hating each other because of their viewpoints on frameworks. Hopefully Jared will post his photo of these two getting ready to throw fists.

I am looking forward to today as there are some interesting talks lined up.

cf.Objective  |  Send
Posted 3/11/06 @ 5:32 AM by Matt Williams