ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 10th, 2004, 07:48 AM
bfolger71 bfolger71 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Boston, MA
Posts: 47 bfolger71 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 34 sec
Reputation Power: 5
Application Framework

Kiteless, in an earlier post, you mentioned that you do not make use of the Application.cfm. Could you shed some light on why you do not, and what some of the other options are?

Thanks in advance.

Reply With Quote
  #2  
Old May 10th, 2004, 08:38 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,611 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 9 h 10 m 21 sec
Reputation Power: 53
I do use the Application.cfm file, just not all the time. Frameworks like Mach-II provide much of the functionality of Application.cfm from within the framework itself (via plugin points at different phases of execution). If I do use Application.cfm, it is usually only to run a <cfapplication> tag.

I think that many folks pile tons of stuff into their Application.cfm file: global variables, constants, path declarations, security and permissions logic, etc. In my opinion these tasks should be encapsulated into their own code files or modules. Running all this in the Application.cfm file is asking for maintenance trouble down the line.

That said, for small apps or quick and dirty apps, do whatever you have to do to make the app work. Everything is a trade off and for certain kinds of applicaitons it might not be necessary to plan out every little thing or encapsulate every little piece of functionality.

Reply With Quote
  #3  
Old July 14th, 2004, 03:40 PM
adrapley adrapley is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Washington DC, USA
Posts: 20 adrapley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Good points

kiteless has expressed some good points.

the reason most people use Application.cfm to store information is b/c it is constant throughout an application. As kiteless expressed, Applicaiton.cfm is often the victim of unintentional abuse, and that frameworks often allow better flexibility, especially in handling flexibility for security and permissions logic.

I will offer a couple of tips.

1) Always create Application.cfm. Even if you have no plans to use it, always have an Application.cfm in the root folder of your application. Why? b/c ColdFusion spends precious time and resources in searching for Application.cfm, even if it doesn't exist. CF will look for it (with every page request) in each parent folder, all the way to the root folder of the hard drive (not the web root).

2) Always name it like this: Application.cfm

On unix/linux, filenames are case sensitive. No, this is not a "feature" in MS's sense. If Application.cfm is any other variation (all lower case, all upper case, mixed case, etc.), it will not be recognized on unix/linux servers.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Application Framework


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway