Well hell, as long as we're playing with hyper-over-simplifications,  
with Model-Glue 2, or better yet MG3, and Transfer, in 30 minutes I  
could have the DB set up, Transfer configured with user, blog, post,  
and comment objects and the insert/edit forms done, the display pages  
working, a fresh pot of coffee brewed and be halfway thru the first cup.

And that's if the coffee pot is on a different floor from my desk.

Time from complete scratch to fully-functional simple blog using  
Transfer and MG 2: 9 minutes.

Proof: http://tinyurl.com/oumrfa

(NOTE: Substitute Transfer for Reactor and vice versa at will.)

(SECOND NOTE: MG 3 makes this even faster by allowing for complete  
event generation in addition to scaffolding the pages themselves.)

Touché.

J

On May 11, 2009, at 3:45 PM 5/11/09, Baz wrote:

> <cfparam name="url.PostID" default="0" />
>
> <cfquery name="Posts" datasource="blog">
>    SELECT Post.ID AS PostID, Post.Title, Post.Date, Post.Body,  
> Comment.Comment, Comment.Date, Comment.Name
>    FROM Post LEFT OUTER JOIN Comment ON Post.ID = Comment.PostID
>
>    <cfif IsNumeric(url.PostID) AND url.PostID gt 0>
>        WHERE Post.ID = <cfqueryparam value="#url.PostID#" />
>    </cfif>
>
>    ORDER BY Post.Date DESC
> </cfquery>
>
> <cfoutput query="Posts" group="PostID">
>    <div id="Title">#Posts.Title#</div>
>    <div id="Body">#Posts.Body#</div>
>
>    <cfoutput>
>       <div class="comment">#Posts.Comment#</div>
>    </cfoutput>
> </cfoutput>
>
> There you go Brian, finished :) It only took 3 minutes, the OO  
> version would take me atleast 30 mins :-) :-) :-) :-)
>
> Baz
>
>
>
> On Mon, May 11, 2009 at 1:28 PM, Brian Kotek <[email protected]>  
> wrote:
> The main issue is the seemingly innocuous phrase "is going to stay  
> that way". So if you're *really* sure it's going to stay that way,  
> all is well. However, I'm not sure I've *ever* written an  
> application that just stayed that way. Just something to be aware of.
>
> On Mon, May 11, 2009 at 4:12 PM, Baz <[email protected]> wrote:
> If your blog is really that simple, and is going to stay that way,  
> you can write one or two queries, a couple of views and be done with  
> it.
>
> I'd also say that unless one is really brand new to OO, the OO  
> version of a blog isn't going to take anywhere near 10 times longer.  
> In fact, with all the tools available at this point that facilitate  
> some level of OO, or at least the use of CFCs, it will probably take  
> much LESS time, assuming one is familiar with the tools (Transfer  
> comes to mind).
>
> Just my two cents! :-)
>
>
>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to