> Ok, but who said one cannot do two different things in 
> Application.cfm?

You can do as many things as you like. I suspect you could write your entire
application within Application.cfm. However, I don't think that would be a
good idea.

> Absolutely not, you said "He was able to do it very quickly, 
> because all he had to do was write a separate set of display 
> code." This is fine, but the other side of the coin is that 
> you end up with two different display templates, then 3, 4,...
> If they have some code identical and you have to modify this 
> code, you now have 2, 3, 4 ... places to look at.

I think you'll be hard-pressed to find any commonality between HTML display
code and RSS or WML. So, yes, those are separate sets of code. The
commonality they share is the business logic, which is stored separately
from the display code.

> What I mean is that nothing is PERFECT, so there is NO BEST 
> practice, only good judgment to find the best way to do it 
> depending on the situation. The method you describe may be 
> fine for very large applications, but many people are also 
> working on small and medium applications. A methodology good 
> for large application may be a hassle for smaller applications.

Just as mighty oaks from little acorns grow, large applications often start
as small applications. The good judgment of experienced web programmers
commonly finds the separation of presentation and business logic to be
valuable.

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:228063
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