How do you organize your small reusable cffunctions?

后端 未结 6 1369
孤街浪徒
孤街浪徒 2020-11-30 06:19

I am reorganizing my ColdFusion directory structures and am curious about how experienced CF developers are organizing libraries of smaller cffunctions.

I am not as

6条回答
  •  情歌与酒
    2020-11-30 06:31

    Option: Do you use a large single file with cffunctions and cfinclude it?

    A: I have done that but I do it less and less. I like taking advantage of inheritance and cfcexplorer

    Option: Do you use a large single file as a cfcomponent and call creatobject/cfinvoke?

    A: Yes I often do this

    Option: Do you put each utility cffunction in its own cfc and call createobject/cfinvoke?

    A: I might do this if I expect additional functions to be added later

    Option: Do you use the cfimport taglib syntax?

    A: I do i18n stuff that way

    Option: Do you use the CustomTags

    A: Not in a long time. cfc's are better at this

    Option: or cfmodule?

    A: Not in a long time. cfc's are better at this. caller.* scope can make it hard to debug

提交回复
热议问题