I remember when the below post came through, I was like, hrm, sounds
kinda like a generally good idea.  Maybe not the specific layout proposed
below... but it is kinda lame to have so many files in one directory.

I know that this would entail a huge change, which is a PITA, but as my
projects grow it's become harder and harder to just jump to where I want
to go, without assistance from an open editor tab or some such.
Many times I'll open the DB specific file by accident, as the ends of
my file names are quite often cut off (just do to folder nesting, etc).

Even if we could just add one more folder depth, moving each object
into it's own folder (however, I'm really liking Patrick's idea, as I do
tend to jump between the >3 files associated with a given object)

I know, I know- rather late in the game for a change of this magnitude,
but seeing as swe're in beta still, I figured I'd at least add some weight
to the quite nicely put forth suggestions below.  I realize it's such a
big change it's probably impossible at this point.  But what the hey. :)

-PS it would be cool if there was a quick way of telling what reactor
objects I'd extended/customized out of the many objects created
for me.  I'm always like "is this the file I've modified? No. Is this it?
No. Hrm. Oh yeah, it's /this/ one!"  but I'm a burnt out coder, so... =]
Prolly only me who does that.  ?Something akin to how MG does
scaffolds?  Eh.  Reactor 2.0 maybe? :-]

On 10/10/06, Patrick McElhaney <[EMAIL PROTECTED]> wrote:
Is there any particular reason Reactor groups all generated CFCs of
the same type in the same directory? There's a Record directory, a
Gateway directory, etc.

Wouldn't it make more sense group related objects in the same
directory? For example, UserRecord, UserGateway, UserDAO, etc. would
all go in the User directory.

I can't think of a reason why I would need to change all or most of my
XXXXXXRecord.cfc files at one time. But when I change FooRecord.cfc, I
often need to change to FooDAO.cfc  or FooGateway.cfc as well. Jumping
around two or three directories and weeding through dozens of
unrelated files is a pain.

Also, I haven't run into this problem yet, but I can imagine a
situation where an application is deployed to multiple environments.
Some of the tables the app uses may belong to the app itself, where as
some may be part of the environment in which they're deployed. As such
each site may have its own local versions of MembersDAO,
MembersGateway, etc.

It would be nice to have the local, customized files in a directory
apart from the rest of the application.

On the same note, why are database-vendor-specific files lumped
together with the generic files? An application may be built to run on
MSSQL, MySQL, and Oracle. If I want to use the application with MySQL,
why should I have to wade through MSSQL and Oracle files? If  an
oracle-specific bug is fixed the version number will updated. Likewise
if Postgresql support is added. But I don't want to worry about new
versions if they don't affect me.

We could solve  these problems by putting each set of
database-vendor-specific files in its own directory tree.

What I'm proposing is that the directory structure for reactor
generated files be changed to something like this.

- Generic (or "Base", or something...)
  - Foo
    - FooDAO.cfc
    - FooGateway.cfc
    - FooMetaData.cfc
    - ...
  - Bar
    - BarDAO.cfc
    - BarGateway.cfc
    - BarMetaData.cfc
    - ...
- MySQL
  - Foo
    - FooDAOmysql.cfc
    - FooGatewaymysql..cfc
    - FooMetaDatamysql..cfc
    - ...
  - Bar
    - BarDAOmysql..cfc
    - BarGatewaymysql..cfc
    - BarMetaDatamysql..cfc
    - ...
- Oracle
  - Foo
    - FooDAOoracle.cfc
    - FooGatewayoracle..cfc
    - FooMetaDataoracle..cfc
    - ...
  - Bar
    - BarDAOoracle..cfc
    - BarGatewayoracle..cfc
    - BarMetaDataoracle..cfc
    - ...
- ...

Thoughts?

Patrick












--
Patrick McElhaney
704.560.9117


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --




-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to