QuackFuzed.com is the personal ColdFusion coding blog of Matt Quackenbush. It exists primarily as a place for the author to learn, and hopefully to assist others in learning and/or avoiding some of the same pitfalls and mistakes. (Quack certainly makes enough mistakes daily to make up for the entire ColdFusion community.)

Learning CF9: Why Don't My Comment-Based Attributes Work?

Posted on October 22, 2009 at 6:08 PM in ColdFusion

If you're like me, you absolutely love CF9's new script-based CFCs. I recently re-worked a very simple class and went from 111 lines of code in my old tag-based version down to 66 lines of code in the new all-script version. Nice! But I was having trouble getting comment-based attributes for the component, properties, and functions to actually work.

[Continue Reading]

Comments
(Comment Moderation is enabled. Your comment will not appear until approved.)

On 10/22/09 at 6:34 PM, andy matthews said:

The difference comes from JavaDoc style notations newly created in CF9. There's apparently a hullabaloo over them:

http://www.danvega.org/blog/index.cfm/2009/8/24/Co...

On 10/22/09 at 7:30 PM, Matt Quackenbush said:

@ Andy - Thanks for the link. I am not sure how I feel about using this style for attribute/metadata settings. On the one hand, it is technically not actually a comment, but rather a very specific form of notation. On the other hand, an IDE (correctly) styles it as a comment. The one thing I do know is that I loathe the idea of mixing script syntax with foo="bar" syntax (although I may end up using it anyways). Like everything else, I suppose my likes/dislikes and coding habits will evolve over time.
CodeBassRadio

Latest Articles

Eventually something really brilliant and witty will appear right here.

Calendar

October 2009
S M T W T F S
« Sep   Nov »
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Subscribe

Enter a valid email address.

The Obligatory Wish List