Gaulin, Mark wrote:
What I would find more interesting is something approaching a coding style
validator for important things, like varing local variables in functions
and always scoping variables properly (to the degree that I would want),
checking for cfparam tags for url, form, and
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
release a parser (say, in java) to the
open source community, as a way of stimulating third-party plugin and
tool development...
Thanks
Mark
-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 11, 2007 3:46 AM
To: CF-Talk
Subject: Re: CF
On Tuesday 09 Oct 2007, [EMAIL PROTECTED] wrote:
or don't do tabs and use spaces exclusively.
Noo !
Now you've forced the whole world to use what you think is the right amount of
block indent.
--
Tom Chiverton
Helping to enormously revolutionize seamless ROI
on:
It is ok, they will learn to adapt
On 10/10/07, Tom Chiverton [EMAIL PROTECTED] wrote:
On Tuesday 09 Oct 2007, [EMAIL PROTECTED] wrote:
or don't do tabs and use spaces exclusively.
Noo !
Now you've forced the whole world to use what you think is the right
amount of
block indent.
--
-
From: Mark Mandel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 09, 2007 7:04 PM
To: CF-Talk
Subject: Re: CF Coding Standards
Gaulin,
To do something like that, you would need a decent Open Source CFML
parser.
I started working on one a while back, and got pretty far into it, but I
got
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 09, 2007 7:50 PM
To: CF-Talk
Subject: RE: CF Coding Standards
Surely the Smith project has one? For that matter, cfeclipse itself is
obviously doing some sort of parsing, no?
Jaime
-Original Message-
From: Mark Mandel [mailto:[EMAIL
On Wednesday 10 Oct 2007, [EMAIL PROTECTED] wrote:
It is ok, they will learn to adapt
I'll set my reply-to template to use '-~-~=' rather than '' for quotes
then :-)
--
Tom Chiverton, are you a great ColdFusion programmer, who knows Reactor and
ColdSpring, and has done some Flex work ? Would
, and that one bug is worth fixing.
Thanks
Mark
-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 09, 2007 8:15 PM
To: CF-Talk
Subject: RE: CF Coding Standards
What I would find more interesting is something approaching a coding
style validator
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
Noo !
Now you've forced the whole world to use what you think is
the right amount of block indent.
It is ok, they will learn to adapt
In that case, they can adapt to having all the code on one line as well. In
fact, screw whitespace. What has whitespace ever done for me? The entire
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
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
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
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
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
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.
On Monday 08 Oct 2007, [EMAIL PROTECTED] wrote:
If I put attributes like that on a new line, I always try to make a note to
line up the first letters like how you have posted. Sometimes I get
I'll do it if I've *really* got the time to spare, otherwise they all go on
the nearest tab stop past
It only takes maybe 1 second more to do, you type in the first attribute and
its value, you press enter, you press tab until you are close to lined up
and then press the space bar until you are lined up then you type in the
second attribute and its value then press enter and type in the third
On Tuesday 09 Oct 2007, [EMAIL PROTECTED] wrote:
It only takes maybe 1 second more to do,
For every call :-)
you type in the first attribute
and its value, you press enter, you press tab until you are close to lined
up and then press the space bar until you are lined up then you type in the
I hate mixing spaces and tabs. As soon as another dev has an
alternative tab stop interval, it all goes gaga. At least
with going to the same tab stop it's aligned on a tab boundary.
I agree, that's a bad idea.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software
Ok then do not do the spaces and get as close as possible with the tabs and
save yourself less than a second and some more of your time. I usually just
do the tab anyway, if I am doing that style at all, since I am lazy like
that but I have done the spaces as well and yet to bite me in the bum
or don't do tabs and use spaces exclusively. Tell HomeSite/CF Studio
to convert tabs to spaces so you don't have to actually use the
spacebar. I went that route after I wound up having to edit non-CF
code in HS and weird things started happening to the other code, whose
(primitive) native editor
Actually it is one of those days that I wish I had brought my sledge hammer
to work with me. This subject is just putting a little chuckle into my day.
On 10/9/07, Matt Robertson [EMAIL PROTECTED] wrote:
Must be a slow day if we are all waxing eloquent on this utterly
worthless topic :D
Tell HomeSite/CF Studio to convert tabs to spaces
so you don't have to actually use the spacebar.
Exact. And you can have tabs to be converted to only 2, 3, or 4 spaces.
Another reason for doing so is when you want to look at the source code
your template has generated.
Both Explorer and
People still use HomeSite or CF Studio!?! (Cutter ducks from the flying
objects) ;)
Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com
Matt Robertson wrote:
or don't do tabs and use spaces
.
Does anything like that already exist for Eclipse, or in CFEclipse?
Thanks
Mark
From: Matt Robertson [mailto:[EMAIL PROTECTED]
Sent: Tue 10/9/2007 3:41 PM
To: CF-Talk
Subject: Re: CF Coding Standards
or don't do tabs and use spaces exclusively. Tell
, and attribute variables, etc.
Does anything like that already exist for Eclipse, or in CFEclipse?
Thanks
Mark
From: Matt Robertson [mailto:[EMAIL PROTECTED]
Sent: Tue 10/9/2007 3:41 PM
To: CF-Talk
Subject: Re: CF Coding Standards
or don't do tabs and use
I always like the people who use CFStudio because they say Homesite sucks ;)
On 10/9/07, Cutter (CFRelated) [EMAIL PROTECTED] wrote:
People still use HomeSite or CF Studio!?! (Cutter ducks from the flying
objects) ;)
Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia
People still use HomeSite or CF Studio!?!
Sure.
I tried DW once, and CFEclipse too... Glad I didn't uninstall CF STudio!
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address:
Cutter (CFRelated) wrote:
People still use HomeSite or CF Studio!?! (Cutter ducks from the flying
objects) ;)
Only when I have too much stuff in memory to load Notepad :D
--
[EMAIL PROTECTED]
Janitor, The Robertson Team
mysecretbase.com
Surely the Smith project has one? For that matter, cfeclipse itself is
obviously doing some sort of parsing, no?
Jaime
-Original Message-
From: Mark Mandel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 10 October 2007 9:04 AM
To: CF-Talk
Subject: Re: CF Coding Standards
Gaulin
What I would find more interesting is something approaching a
coding style validator for important things, like varing
local variables in functions and always scoping variables
properly (to the degree that I would want), checking for
cfparam tags for url, form, and attribute variables,
thank you all for the feedback. this is my first time i am in a position
where i have oversight over the development in a team, so i'm thankful for
the insight from you who have this experience.
the bulk of a proposed coding standards dealt with topics such as making
moves toward more web
On Saturday 06 Oct 2007, [EMAIL PROTECTED] wrote:
With posting them on the Wiki, in hopes we all could adapt to them
*Nobody* else['s company] is going to mold themselves around you/your
companies coding standards.
These sort of standards tend to vary a lot across development teams.
--
Tom
I can understand the point of needing to be consistent but I have worked on
some projects where the consistent style was extremely hard to follow
because the person who did everything originally feared whitespace so no
tabs very littles spaces and very little new lines. Although now days a lot
of
On 10/8/07, Dale Fraser [EMAIL PROTECTED] wrote:
Consistency is important, the minutiae of capitalization and whitespace
is
not.
I don't agree with this, as standards go the whitespace (tab obsession) is
very important.
Take this example (might not come out right on email.
Select *
Any coding standard that works toward readability and maintainability of
code is a good thing, but going overboard in any one direction makes the job
harder.
I also think the over use of new lines doesn't help with readability either
cfargument name=sfirstName
type=string
required=true
The first is a superfluous use of carriage returns in my opinion and does
nothing to improve readability.
The idea is that if a line is too long, it will be broken in your editor
anyway, so better break it yourself at some logical points,
indent it, and make it more readable, ie:
cfargument
I also think the over use of new lines doesn't help with readability either
cfargument name=sfirstName
type=string
required=true
hint=first name of person
/
Where as I find newline+indent really helps:
cfargument name=sfirstName
type=string
required=true
If I put attributes like that on a new line, I always try to make a note to
line up the first letters like how you have posted. Sometimes I get
adventurous and line them all up meaning they are lined up with the n on
name.
On 10/8/07, Tom Chiverton [EMAIL PROTECTED] wrote:
I also think the
someone's code and they haven't don't it, their scopes almost appear
invisible to me.
Rob
-Original Message-
From: Aaron Rouse [mailto:[EMAIL PROTECTED]
Sent: 08 October 2007 17:00
To: CF-Talk
Subject: Re: CF Coding Standards
If I put attributes like that on a new line, I always try to make
On 10/8/07, Robert Rawlins - Think Blue
[EMAIL PROTECTED] wrote:
Hehe, it's funny how people have different trends isn't it, I can't stand
having my code lined and indented like this, it makes me feel giddy when I'm
looking at it. I have other odd traits though, like capitalizing my scopes
-
From: Tom Chiverton [mailto:[EMAIL PROTECTED]
Sent: Monday, October 08, 2007 10:48 AM
To: CF-Talk
Subject: Re: CF Coding Standards
I also think the over use of new lines doesn't help with readability
either
cfargument name=sfirstName
type=string
required=true
hint=first name of person
i don't normally line up the attribute/value pairs by the = sign, but
i do like to break out longer tags (tags with many attributes) as
follows:
the major difference between this and what others have posted so far
is putting the first attribute (in this case, 'name') on its own line.
cfargument
Personally, I will break out attributes of a cf tag to a one per
line type arrangement only if there are a lot of attributes.
For example, I never do it for cfargument but have been known to do it
for other tags - especially if some of the attribute values are long..
like in cffile with full
On 10/8/07, Rick Root [EMAIL PROTECTED] wrote:
cfif spouse_exists and arguments.clear_spouse and arguments.recurse
Man, sometimes I wish I could clear my spouse's arguments too. Her
arguments make me want to recurse too.
--
Matt Williams
It's the question that drives us.
I agree with William except on point ...
William, I'm sure you're idea is in the spirit of improvement and sharing, but
putting Jr. developers on the hot seat and allow senior developers to
show off a little is one of the reasons I don't like working in large
development teams with this kind of
I recall a benchmark results from along time ago indicating that if your
doing more than 3 CFIF/CFELSEIF statements it was better for performance to
use CFSWITCH. That was discussed here on the mailing list of HoF.
Thanks, I will make note of that.
-Original Message-
From: Adrian Moreno [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 07, 2007 2:28 AM
To: CF-Talk
Subject: Re: CF Coding Standards
I recall a benchmark results from along time ago indicating that if
your doing more than 3 CFIF
, ColdFusion [EMAIL PROTECTED] wrote:
Thanks, I will make note of that.
-Original Message-
From: Adrian Moreno [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 07, 2007 2:28 AM
To: CF-Talk
Subject: Re: CF Coding Standards
I recall a benchmark results from along time ago indicating
a book that changed your life?
Go to: www.winninginthemargins.com
Enter passkey: goldengrove
-Original Message-
From: Daniel Kim [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 07, 2007 3:07 PM
To: CF-Talk
Subject: Re: CF Coding Standards
I recently started a position as a technical lead
Message-
From: William Seiter [mailto:[EMAIL PROTECTED]
Sent: Monday, 8 October 2007 12:59 PM
To: CF-Talk
Subject: RE: CF Coding Standards
You are the lead, you see a problem with not only the current code but
future code put together. You are introducing standards to the group
On 10/7/07, Daniel Kim [EMAIL PROTECTED] wrote:
I've recently set up a wiki that contains coding standards, and used a lot
of the LiveDocs recommendations
Glad you found them useful.
The Stylistic category defines things such as capitalization and
indentation. It may have been a bad idea,
Corfield [mailto:[EMAIL PROTECTED]
Sent: Monday, 8 October 2007 2:06 PM
To: CF-Talk
Subject: Re: CF Coding Standards
On 10/7/07, Daniel Kim [EMAIL PROTECTED] wrote:
I've recently set up a wiki that contains coding standards, and used a lot
of the LiveDocs recommendations
Glad you found them useful
Consistency is important, the minutiae of capitalization
and whitespace is not.
I don't agree with this, as standards go the whitespace (tab
obsession) is very important.
Take this example (might not come out right on email.
Select*
From Table
Where X = 1
that if your
doing more than 3 CFIF/CFELSEIF statements it was better for performance to
use CFSWITCH. That was discussed here on the mailing list of HoF.
-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 06, 2007 12:34 AM
To: CF-Talk
Subject: Re: CF
from another project and added my own styles of
coding.
My way is not the only way by no means!!
-Original Message-
From: Sean Corfield [mailto:[EMAIL PROTECTED]
Sent: Friday, October 05, 2007 11:23 PM
To: CF-Talk
Subject: Re: CF Coding Standards
On 10/5/07, ColdFusion [EMAIL
much to ask?
-Original Message-
From: Sean Corfield [mailto:[EMAIL PROTECTED]
Sent: Friday, October 05, 2007 11:23 PM
To: CF-Talk
Subject: Re: CF Coding Standards
On 10/5/07, ColdFusion [EMAIL PROTECTED] wrote:
I put together a wiki for various information as well as putting
together
list of HoF.
-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 06, 2007 12:34 AM
To: CF-Talk
Subject: Re: CF Coding Standards
Precede all but simple variables with a prefix that indicates what type
of data is in the variable.
Yurk
On 10/6/07, Dave Watts [EMAIL PROTECTED] wrote:
I will make a note at the bottom to indicate about
Macromedia, however I did not adopt them from there.
There does appear to be a lot of similarity to Sean's document.
Especially since it includes references to Macromedia. If it did not
come
I will make a note at the bottom to indicate about
Macromedia, however I did not adopt them from there.
Again if the previous company did, then I was unaware but
will make the annotation.
There does appear to be a lot of similarity to Sean's document.
Dave Watts, CTO, Fig Leaf Software
These were exactly the same comments I posted in the discussion
section of Randy's wiki :)
OMG, I'm in complete agreement with Claude! The world must be ending... LOL!
As for the UPPERCASE DB stuff - that came from the Oracle DBA team at
Macromedia (so, yeah, it's a legacy Oracle guideline).
On
On 10/6/07, ColdFusion [EMAIL PROTECTED] wrote:
Along with some of the comments, I will update the standards. My goal is to
get a code set that everyone can share and agree that they are in best
interest of the coding project. Don't you agree?
Why not just use the LiveDocs guidelines and post
I will make mention of the company I derived my standards from within the
Wiki.
Again I have no problems is indicating such or giving credit.
-Original Message-
From: Sean Corfield [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 06, 2007 7:17 PM
To: CF-Talk
Subject: Re: CF Coding
My goal is to get a code set that everyone can share and agree
What an utopia!
For instance, I cannot argue with the fact that many people want to go
XHTML, and use tags in lower case, why not?
Personally I don't have any interest for XHTML, I'm quite satisfied with
HTML and I prefer having
[mailto:[EMAIL PROTECTED]
Sent: Saturday, October 06, 2007 5:40 PM
To: CF-Talk
Subject: RE: CF Coding Standards
I will make a note at the bottom to indicate about Macromedia, however
I did not adopt them from there.
Again if the previous company did, then I was unaware but will make
On 10/5/07, ColdFusion [EMAIL PROTECTED] wrote:
I put together a wiki for various information as well as putting together a
full set of ColdFusion Coding Standards.
Since you've essentially taken the Coding Standards I wrote for
Macromedia/Adobe and republished them as a wiki, I've gone ahead
Precede all but simple variables with a prefix that indicates what
type of data is in the variable.
Yurk ! This is going back to FORTRAN where integer variables started
with IJKLMN !
And it is particularly useless in a typeless language like CF.
Use functions when doing TEXT comparisons in
I've been writing our General Coding Guidelines for the office,
publishing them on my blog as well. Everybody has a different viewpoint,
but this is ours at the moment. Still not complete, but it's a start:
http://blog.cutterscrossing.com/index.cfm/General-Coding-Guidelines
Steve Cutter Blades
On Wednesday 19 Sep 2007, [EMAIL PROTECTED] wrote:
If anyone has a CF coding standards document they are willing to share
please post to the list or send to me off-list if you prefer.
Have you seen the 'offical' Adobe one @
http://livedocs.adobe.com/wtg/public/coding_standards/index.html ?
--
Thanks.
On 9/19/07, Tom Chiverton [EMAIL PROTECTED] wrote:
On Wednesday 19 Sep 2007, [EMAIL PROTECTED] wrote:
If anyone has a CF coding standards document they are willing to share
please post to the list or send to me off-list if you prefer.
Have you seen the 'offical' Adobe one @
On Wednesday 19 Sep 2007, [EMAIL PROTECTED] wrote:
Thanks.
First google hit 'coldfusion coding standards' :-)
--
Tom Chiverton
Helping to collaboratively conquer B2B m-commerce
on: http://thefalken.livejournal.com
This email is sent for
I'm sure Sean will pipe up - but this is NOT official Adobe recommendations.
This is not to say it isn't a good doc - but folks should be clear on
the gact that they act Adobe's official recommendations.
On 9/19/07, Tom Chiverton [EMAIL PROTECTED] wrote:
On Wednesday 19 Sep 2007, [EMAIL
I'm pretty sure that's the same document I got off the Macromedia site
a couple of years ago. It is very useful as a tool in developing your
shop's own standards, with the understanding that style seems to vary
widely from shop to shop. Anybody got any other good docs to share?
I'm sure Sean
On Wednesday 19 Sep 2007, [EMAIL PROTECTED] wrote:
I'm sure Sean will pipe up - but this is NOT official Adobe
recommendations.
'Swhy I put it in quotes, innit :-)
--
Tom Chiverton
Helping to centrally industrialize high-yield services
on: http://thefalken.livejournal.com
76 matches
Mail list logo