A few suggestions:
1) If your code cannot be followed by a third party without completely
dissecting it, it is junk code - (COMMENT!)
2) Go back a few steps and think about what you are writing.  Good
algorithms lead to good code.  Poorly planned algorithms, schemas, and
database design will lead to 'junk code'.
3) Watch the debug timings of your pages, if there are templates that are
taking a couple hundred milliseconds, yet not accomplishing much, then start
to investigate this.
4) Not locking shared access variables can lead to jc (getting tired of
typing it out)
5) Lack of error handling can lead to jc
6) Over selective SQL can lead to jc (try to limit what you are SELECTing)
7) Doing the same thing over and over.....
....

Try to pick a coding methodology, or at least coding conventions and stick
to them, they'll make your stuff infinitely better.

You might want to read through some data structure and algorithm books.  I
had a decent one in school, and even though I HATED the class, it really did
pay off.  Makes you evaluate how you handle things.

Good luck.

-Bill
/intraget
----- Original Message -----
From: sebastian palmigiani <[EMAIL PROTECTED]>
To: CF-Talk <[EMAIL PROTECTED]>
Sent: Saturday, September 23, 2000 7:24 AM
Subject: Re: ASP or Coldfusion - There is no Question


> on 9/22/00 11:08 AM, Steve Pierce at [EMAIL PROTECTED] wrote:
>
> > You can write junk code in ASP just as well as you can in CF. The
programmer
> > is the number one factor in the success and performance of the site. Not
the
> > tools.
>
> I am a new programmer with ColdFusion. What is junk code? Can you give an
> example? I want to see if I am writing junk. Want to nip bad habits in the
> bud.
>
> Sebastian
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
>

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to