Software Development, Web Design, Training

Modularity Shoot-Out: CFInclude vs CFModule vs Custom Tags vs CFFunction

Object Oriented Programming with CFComponents is definitely the direction most development is headed.

But before jumping into OO territory, there is still a lot of modularity and code re-use that can be done with just a few tags - CFInclude, CFModule, Custom Tags and CFFunction.

Each of these has pros and cons and there are places where one tag makes more sense than another. Let's take a look at each of these, and examine situations where one type of tag or code construct might make more sense than the others. We'll also look at performance and scope differences between each of them.