Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programming Style Question

Status
Not open for further replies.

FastJimmy

Programmer
Jun 15, 2000
23
US
I have a question about CF programming in general and the structure of a program.

I don't know if it makes any difference but is it better to put all the code for a section of an application on one page? (Meaning, with all the cfifs, queries, visual designs, etc) Or is it better to take a page that would normally be somewhere around 15k and break it into sub documents. (Say put all the queries in a page called, page_queries.cfm and visual stuff in page_visual.cfm)

Would this be able to improve the page performance at all, or is it just a matter of preference?

Thanks!

Jimmy
 
Each INCLUDE/MODULE/TAG adds a performance issue... but in my opinion it's not enough of a hit not to do it. Of course, you wouldn't want to over do it either. I prefer to break up code and use INCLUDE's. In my opinion it improves updateability and reuseability.

But, it's really a matter of preference. - tleish
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top