We're speaking at
CFUnited 2008:
CFUnited - The Premiere ColdFusion Technical Conference

Search

Calendar

SunMonTueWedThuFriSat
    123
45678910
11121314151617
18192021222324
25262728293031

Subscribe Enter your email address to subscribe to this blog. You'll receive an email when we write a new post.

Recent Entries Come On In, Rails-The Water's Warm
Shan's Simple Examples: File uploads with Flex and ColdFusion

Recent Comments Google Calendar API - Creating a new Calendar with ColdFusion
Steve Julian said: When and where are you going to post the finished CFC's ? Thanks [more]

Three Phases of Programmer Development
Pat Branley said: I normally think of those phase 2 people as 'programmers' and the phase 3 people as 'developers'. I... [more]

New Job Title: Front End Engineer
Sean Corfield said: Well, there's always the excellent Fusion Authority Quarterly Journal... [more]

Down To The Wire: HTTP Sniffers
Brian M said: I second the mention of the Charles Web Debugging Proxy that Tariq mentioned. It is fantastic. It s... [more]

New Job Title: Front End Engineer
Patrick said: Heya Sean. Good point. I never understood how they did things over there at SysCon, and I understand... [more]

Archives By Subject Business of Software (4) [RSS]
ColdFusion (318) [RSS]
Conferences (6) [RSS]
Databases (87) [RSS]
Flex & Flash (109) [RSS]
Fusebox (87) [RSS]
General Development (29) [RSS]
Google (9) [RSS]
Hardware (5) [RSS]
JVM & Java (132) [RSS]
Linux (20) [RSS]
Miscellaneous (254) [RSS]
Performance (8) [RSS]
SeeFusion (36) [RSS]
Shan's Simple Examples (7) [RSS]
User Interface (3) [RSS]
Windows (5) [RSS]

Archives By Poster Daryl Banttari (10)
Nat Papovich (29)
Patrick Quinn (36)
Shannon Hicks (22)
Steve Nelson (21)
Tyson Vanek (3)


bottom corner

Steve's MVC Framework a year later

A few people have asked me if I've done anything with my MVC framework that I presented a year ago at the CF Frameworks conference. The short answer. Yes, but very minor. I admit it. I'm an addict. Mostly it's the utter simplicity that I love. It takes the power of CFCs with the simplicity of Fusebox 1.0 (yes, the original Fusebox). Sure there are lots of little things you need to do when working with CFCs. But you have to do those with any framework that uses CFCs. What I like about this framework is that it's about code organization, not extending some codebase or mastering yet another set of XML tags.

I'll do a bunch of posts explaining what I've found. For those of you that don't know what I'm talking about, let me see if i can explain a framework to you in one paragraph. I'd love to see if any other framework can do the same. So here we go (this is for an HTML app, Flex apps are a teeny bit different)... Organize your code into 3 top level folders. "Controller" "Model" and "View" In each of those 3 folders contain subfolders. In each subfolder under the View folder contains a single CFC file and one or more CFM files. The methods in that CFC file do two things, deal with cfarguments and cfinclude one of the cfm files. These CFM files contain HTML code. The model folders are structured in a similar way. The model methods have cfarguments a cfinclude to a cfm (or put the code right in the cfc) and cfreturn some data. It is all tied together with the controller folders. These folders have a single CFC, each of the controller methods simply cfinvokes methods from the model and view cfcs. That's it.

Ugggh, it sounds a lot more complex when I type it out. Wait! Let me try again!

Three groups of folders: Controller, Model, View. Each folder has a CFC and one or more CFMs. View methods cfinclude a display CFM file. Model methods cfinclude an action CFM file. Controller methods cfinvoke model and view methods. All web requests go to the controller CFCs first.

I like that definition better. If you want to try this out on one of your projects, I've posted some more info on it here. Or if you'd rather not mess around with framework theory and have us architect your next project, send us an email or give us a call at +1-970-223-2278

-Steve Nelson

Comments
Steve,

Sounds pretty similar to how the NOXML version of Fusebox 5.5 works.

jb.
# Posted By JohnB | 1/22/08 5:05 AM
Haha. Who do you think pushed for that idea? :-)
# Posted By Steve Nelson | 1/22/08 5:47 AM
could you send me your framework sample code?
# Posted By matt | 2/16/08 12:54 PM

bottom corner