> > One common reason is simplification - it's just easier to 
> > work with a module that does one thing. You immediately know 
> > where to go to change how that one thing works, for example.
> 
> Right, and this applies particularily well to putting any header HTML 
> code in Application.cfm ;-)

If you use Application.cfm to initialize your application pages, and you use
it to generate output, that's two different things.

> May be, but on the other hand, when someone will have to modify 
> something common to the whole application, he will have to look 
> for all the places some different header can be used.

You seem to be assuming that there are only two choices - put something in
Application.cfm, or put it within every page. I don't think those are the
only two options.

> I don't mean that everything should be put everytime in 
> Application.cfm. I'm just against this kind of rule that states 
> "this is THE best practice, period!". A "best practice" is just 
> like "the best tool": it depends what you have to do with it.

I think that you're absolutely right on this point. You'll notice I didn't
say that my recommendation was a best practice. I simply responded to your
question about why separating presentation and business logic is a good
thing generally. I don't think it's the end of the world if you violate this
sometimes.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228050
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to