Re: [cfaussie] Frameworks and MVC

2010-06-02 Thread Sean Corfield
On Tue, Jun 1, 2010 at 8:18 PM, Steve Onnis st...@cfcentral.com.au wrote:
 we had a demo of FW/1 at our CFUG last week and even though yes it is
 stripped down regarding the framework itself, you still had the folder
 structure as in

 root
 - views
 - controller

 and so on, and just to get a simple output still required too many files for
 my liking.

Well, the simplest Hello World FW/1 app is just:

// Application.cfc:
component extends=framework { this.name = 'myapp'; }

!--- empty index.cfm ---

!--- views/main/default.cfm ---
h1Hello World!/h1

You have basically one view file per page in your application and for
logic you can have a single CFC (controllers/main.cfc) with a method
for each page that you want to execute code for.

I can't imagine anything simpler. You pretty much couldn't write
simpler code if you weren't using a framework so I find your complaint
a bit puzzling (I'm not saying your opinion isn't valid, just trying
to dig a bit more into want you really don't like about a couple of
folders).

 I also didn't like the way it threw all of the scoped variables
 into the request scope.

It doesn't. Like every CFML framework out there, it combines URL and
form scope to make control logic simpler and it puts them into a
single variable - request.context - so there's no name conflicts and
scoped vars overriding others. Admittedly, FW/1 does use a few
additional request variables for its own purpose (which are all
clearly documented) and no one using FW/1 has complained about that
yet.

 I want to be able to call
 the controller myself rather than relying on files being in certain places
 to be able to call them

As Blair says, you'll probably need to roll your own framework because
you're not going to like anything that's out there, based on the
things you're saying.

And because all the frameworks do things the same way (in those areas
at least) and lots of people like that approach, you may want to think
harder about why you don't want to develop apps the same way that
thousands of other developers do... just sayin' :)
-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/

If you're not annoying somebody, you're not really alive.
-- Margaret Atwood

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaus...@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



[cfaussie] Re: Frameworks and MVC

2010-06-02 Thread goldcoast_nerd
Pretty much what Sean said. simplest way is to have a file for every
page and a cfc handle the logic in a function for requests. Not sure
why ur against the MVC folder structure though. yeah its a bit hard at
the start with so many files , but this is what makes the project
scalable and easy to manage. surely u wouldnt give away all these
advantages just coz it takes a bit of effort to get used to the
general use and structure.

Shakti

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaus...@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] Re: Frameworks and MVC

2010-06-02 Thread Chris Velevitch
On Thu, Jun 3, 2010 at 11:51, Steve Onnis st...@cfcentral.com.au wrote:
 The issue for me is that the framework expects action=foler.file as it was
 explained during our presentation.  I don't want to have a file for every
 action. I want to be able to have a single file as the entry point, a proper

Have you considered url rewriting?


Chris
--
Chris Velevitch
Manager - Adobe Platform Users Group, Sydney
m: 0415 469 095
www.apugs.org.au

Adobe Platform Users Group, Sydney
June 2010: TBD
Date: 28th June 6pm for 6:30 start
Details and RSVP to follow

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaus...@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



RE: [cfaussie] Re: Frameworks and MVC

2010-06-02 Thread Steve Onnis
I don’t want the view folder structure. I want to actually use the index.cfm
file instead of it being empty so I can handle the view part in my own way.
This is why I am asking the question. The url rewritting comes later.  

I will do some examples so you know what I mean 

-Original Message-
From: Chris Velevitch [mailto:chris.velevi...@gmail.com] 
Sent: Thursday, 3 June 2010 12:07 PM
To: cfaussie@googlegroups.com
Subject: Re: [cfaussie] Re: Frameworks and MVC

On Thu, Jun 3, 2010 at 11:51, Steve Onnis st...@cfcentral.com.au wrote:
 The issue for me is that the framework expects action=foler.file as it was
 explained during our presentation.  I don't want to have a file for every
 action. I want to be able to have a single file as the entry point, a
proper

Have you considered url rewriting?


Chris
--
Chris Velevitch
Manager - Adobe Platform Users Group, Sydney
m: 0415 469 095
www.apugs.org.au

Adobe Platform Users Group, Sydney
June 2010: TBD
Date: 28th June 6pm for 6:30 start
Details and RSVP to follow

-- 
You received this message because you are subscribed to the Google Groups
cfaussie group.
To post to this group, send email to cfaus...@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaus...@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] Re: Frameworks and MVC

2010-06-02 Thread AJ Mercer
did you take a look at these?

http://mickydionisio.blogspot.com/2010/02/coldfusion-commons-project-released.html
http://quicksilver.riaforge.org/

On 3 June 2010 09:51, Steve Onnis st...@cfcentral.com.au wrote:

 Sure laying on a bed of nails is uncomfortable at first but if you do it
 enough times you get used to that too :)  Doesn't mean you should do it
 though does it.

 The issue for me is that the framework expects action=foler.file as it was
 explained during our presentation.  I don't want to have a file for every
 action. I want to be able to have a single file as the entry point, a
 proper
 index.cfm file that actually does something and then from there be able to
 handle my own calls to a controller that does what I need it to do.  I
 don't
 like the way the view part of these MVC frameworks function.  You can have
 scalability and easy to manage code without that level of complexity...i
 believe anyway but again this is not meant to be a frameworks war
 threadi was just asking the question of what else was out there. I
 guess
 the answer is there isn't anything



 -Original Message-
 From: goldcoast_nerd [mailto:shakti_...@hotmail.com]
 Sent: Thursday, 3 June 2010 11:36 AM
 To: cfaussie
 Subject: [cfaussie] Re: Frameworks and MVC

 Pretty much what Sean said. simplest way is to have a file for every
 page and a cfc handle the logic in a function for requests. Not sure
 why ur against the MVC folder structure though. yeah its a bit hard at
 the start with so many files , but this is what makes the project
 scalable and easy to manage. surely u wouldnt give away all these
 advantages just coz it takes a bit of effort to get used to the
 general use and structure.

 Shakti

 --
 You received this message because you are subscribed to the Google Groups
 cfaussie group.
 To post to this group, send email to cfaus...@googlegroups.com.
 To unsubscribe from this group, send email to
 cfaussie+unsubscr...@googlegroups.comcfaussie%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/cfaussie?hl=en.


 --
 You received this message because you are subscribed to the Google Groups
 cfaussie group.
 To post to this group, send email to cfaus...@googlegroups.com.
 To unsubscribe from this group, send email to
 cfaussie+unsubscr...@googlegroups.comcfaussie%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/cfaussie?hl=en.




-- 

AJ Mercer
http://webonix.net
http://twitter.com/webonix

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaus...@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] Re: Frameworks and MVC

2010-06-02 Thread Sean Corfield
On Wed, Jun 2, 2010 at 6:51 PM, Steve Onnis st...@cfcentral.com.au wrote:
 I want to be able to have a single file as the entry point, a proper
 index.cfm file that actually does something and then from there be able to
 handle my own calls to a controller that does what I need it to do.

Well, that's the very definition of no-framework then. There are no
frameworks you will like. They all take control of the basic flow -
that's kind of the point of frameworks.

All of the frameworks out there - from Fusebox to ColdBox and
everything in between - take the 'action' (or fuseaction or event) in
the URL and take control away from your index.cfm and route it through
either conventions or configuration to code that the framework invokes
and then the framework selects which files to display to build the
view (sometimes with hints from the developer thru API calls).

Frameworks aren't for everyone. Developers that want to keep total
control over the flow of their application and tend to every detail of
how their code works just don't like frameworks. Other developers
value the standardization that frameworks bring and understand that a
lot of the plumbing and boilerplate code is a waste of their expensive
time and they prefer to focus on the interesting parts of building an
application using an approach that other developers can easily pick up
- particularly where that approach is a publicly documented one and
you can find other developers who already know the approach.
-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/

If you're not annoying somebody, you're not really alive.
-- Margaret Atwood

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaus...@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.



Re: [cfaussie] import DW sites to new windows install

2010-06-02 Thread Sean Corfield
DW lets you export sites - the definitions - to files that you can
then copy across and import into the new install (in addition to
copying the folders/files themselves).

On Wed, Jun 2, 2010 at 7:28 PM, Carl Vanderpal carl.vander...@gmail.com wrote:
 Just trying to figure out how to get all my sites to come across to a new
 install of Windows and DW.

 I have DW CS4 on an install of Windows (Vista) and now I want to move them
 into my Windows 7 install version of CS5. I just thought you could copy
 across some folders, but doesn't look like it? Both installs are on the same
 computer but just on different drives, so if there is a way to copy
 something then that would be great.

-- 
You received this message because you are subscribed to the Google Groups 
cfaussie group.
To post to this group, send email to cfaus...@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.