Re: CF Coding Standards / validation

2007-10-11 Thread Tom Chiverton
On Wednesday 10 Oct 2007, [EMAIL PROTECTED] wrote: It's always on topic to show how much better ColdFusion is :-) Not better. Just different. It is never better to have humans do garbage collection and memory allocation. Studies have been done, and compilers are much, much quicker at it and

RE: CF Coding Standards / validation / CFML pasring

2007-10-11 Thread Gaulin, Mark
I've been thinking about what a CFML parser has to do and man, it isn't all that easy... I'm not sure any .cfm file could be parsed properly without knowing the state of cfoutput before the file is (potentially) cfincluded. In other words, if you see some text like this is text#hi# and some more,

RE: CF Coding Standards / validation

2007-10-10 Thread Gaulin, Mark
Yeah, a good CF parser would definitely be needed. Does your parser handle CFCs? What language is it written in? To do coding standard validation you'd also need a flexible/configurable model for what rules to enforce, and that can be tricky too. Thanks Mark -Original Message-

RE: CF Coding Standards / validation

2007-10-10 Thread Gaulin, Mark
Yeah, there must be one but I haven't looked at it. They must be some issues with it though because there is an option to turn it off and I've seen it get pretty confused with strings with embedded quotes in them, for example. Thanks Mark -Original Message- From: Jaime Metcher

RE: CF Coding Standards / validation

2007-10-10 Thread Gaulin, Mark
What you say is true (only a programmer can know how a variable is used), but a warning generated if a variable is not explicitly scoped would help find the little oversights that can be a real pain to track down. I am of the opinion that all warnings in a program (java, for example) should be

RE: CF Coding Standards / validation

2007-10-10 Thread Paul Vernon
I am of the opinion that all warnings in a program (java, for example) should be tracked down and eliminated, even if the fix is just to disable the warning on the one method/line that is complaining (because it is right), but every one of them should be examined. For ever 100 warnings I get

Re: CF Coding Standards / validation

2007-10-10 Thread Tom Chiverton
On Wednesday 10 Oct 2007, [EMAIL PROTECTED] wrote: planning engine all on top of an Oracle database. Customers would complain about the instability of the client software This is to be expected from a language that forces the programmer to deal with memoray allocation and release. -- Tom

RE: CF Coding Standards / validation

2007-10-10 Thread Gaulin, Mark
it did.) Thanks for the pointer. Mark -Original Message- From: Paul Vernon [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 9:00 AM To: CF-Talk Subject: RE: CF Coding Standards / validation I am of the opinion that all warnings in a program (java, for example) should

Re: CF Coding Standards / validation

2007-10-10 Thread Gert Franz
Hi Paul, next to the tool you're using (which I use myself as well) Railo allows you to turn of scope cascading which would then result in runtime errors and force the programmer to scope all unscoped variables (except for the variables scope). Next to the readability this as we all know

RE: CF Coding Standards / validation

2007-10-10 Thread Paul Vernon
On Wednesday 10 Oct 2007, [EMAIL PROTECTED] wrote: planning engine all on top of an Oracle database. Customers would complain about the instability of the client software This is to be expected from a language that forces the programmer to deal with memoray allocation and release. But

Re: CF Coding Standards / validation

2007-10-10 Thread Tom Chiverton
On Wednesday 10 Oct 2007, [EMAIL PROTECTED] wrote: finally myObj.free; What if myObj gets passed out of the function ? the pain away. Delphi gives you the choice :-) Anyway, this is all getting a tad OT now so I'll leave it there :-) It's always on topic to show how much better

RE: CF Coding Standards / validation

2007-10-10 Thread Paul Vernon
a tad OT now so I'll leave it there :-) Ok, you baited me! finally myObj.free; What if myObj gets passed out of the function ? That would be poor programming practice :-) Just like CF, Java and most other popular programming languages there are best practices for that language.