I'm looking for a little guidance on oranizing my components. The first app I created using CS was a simple company/employee directory listing (i.e. list of names, addresses, phone numbers, etc...).
I just simply placed all of my components in the root directory of the app. Something like this:
company.cfc
companyDAO.cfc
companyGateway.cfc
person.cfc
personDAO.cfc
personGateway.cfc
etc...
Now I'm moving on to a real world application and realized I could easily reuse company.cfc and person.cfc. The DAO and Gateway will be different because the DB is different (different tables and different columns).
Is it best practice to have company.cfc and person.cfc in a directory that is accessible to all applications and then simply create custom DAO and Gateway CFCs for unique cases. In other words, should I have a companyDAO for each application that uses a different DB? With CS, it would certainly be easy enough to link together components on a per application basis.
Thanks for the help.
