Do you ever have to re-visit and revamp projects you did when you first
started working with Coldfusion? I am making a few changes to a report
almost 5 years old, and I come across this little gem. Thought you all
might enjoy a laugh this morning.
#Replace(nbsp;Xnbsp;, ?, , ALL)#
- Chris
Peterson, Chris wrote:
Do you ever have to re-visit and revamp projects you did when you first
started working with Coldfusion? I am making a few changes to a report
almost 5 years old, and I come across this little gem. Thought you all
might enjoy a laugh this morning.
To: CF-Talk
Subject: Old code woes
Do you ever have to re-visit and revamp projects you did when you first
started working with Coldfusion? I am making a few changes to a report
almost 5 years old, and I come across this little gem. Thought you all
might enjoy a laugh this morning.
#Replace(nbsp
:
cfif len(trim(url.myVar))
cfset myVar=url.myVar
cfelse
cfset myVar=
/cfif
-Original Message-
From: Peterson, Chris [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 06, 2006 9:11 AM
To: CF-Talk
Subject: Old code woes
Do you ever have to re-visit and revamp
On 7/6/06, Peterson, Chris [EMAIL PROTECTED] wrote:
Do you ever have to re-visit and revamp projects you did when you first
started working with Coldfusion?
I went to see a client this morning whose site we wrote a couple of years
ago - it's astonishing how much we've learned since then :)
One of my favourites in other's code was getting the date from the database
instead of using Now() (trust meno reason to do this in the context of the
app)
Bryan Stevenson B.Comm.
VP Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
those expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com
-Original Message-
From: Bryan Stevenson [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Thu Jul 06 18:00:03 2006
Subject: Re: Old code woes
One of my favourites in other's code was getting
Well yeah, maybe in that app, but there is perfect logic in other apps which
need to get the date from the DB.
Are you just meaning a date display? Or for record insertion/update/delete?
and that's why I mentioned that in the context of the app it made NO sense
(yes just display today's
@houseoffusion.com
Sent: Thu Jul 06 18:13:26 2006
Subject: Re: Old code woes
Well yeah, maybe in that app, but there is perfect logic in other apps
which
need to get the date from the DB.
Are you just meaning a date display? Or for record
insertion/update/delete?
.and that's why I mentioned
One of my favourites in other's code was getting the date from the
database instead of using Now() (trust meno reason to do this in
the context of the app)
Not that I don't trust you, but it's not a bad idea to have your database
manage all datetime values, unless you're sure that your
Not that I don't trust you, but it's not a bad idea to have your database
manage all datetime values, unless you're sure that your application server
and database server use the same synchronized timeserver.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Oh no...not you too
http://ray.camdenfamily.com/index.cfm/2006/7/6/Your-mother-writes-code-s
o-bad
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245590
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription:
Or passing the data to the database using #NOW()# instead of using the
database equivlant function, such as GetDate()
-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
Sent: 06 July 2006 18:00
To: CF-Talk
Subject: Re: Old code woes
One of my favourites in other's code
: Old code woes
Or passing the data to the database using #NOW()# instead of using the
database equivlant function, such as GetDate()
-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
Sent: 06 July 2006 18:00
To: CF-Talk
Subject: Re: Old code woes
One of my favourites
If you want some REAL entertainment just peruse some of dave the worm's
code.
:)
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245596
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
2006 20:01
To: CF-Talk
Subject: Re: Old code woes
This is good and bad example. You may want the date in the DB with an offset
with multiple webservers in a follow the sun approach write to a single DB
in one location.
A call to GetDate in this instance would lead to the same date/time for each
you
I swear you two where married in a past life ;-)
Bryan Stevenson B.Comm.
VP Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com
Now that my date from DB example has been raked over the coalshow's this
one...
Hardcoding the value of a variable (normally dynamically assigned a value)
used
in a condition to run or not run a block of codehardcoded to ensure the
code
would NOT run. Why not comment out the
Exhibitions.
Visit our website at http://www.reedexpo.com
-Original Message-
From: Bryan Stevenson [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Thu Jul 06 20:42:59 2006
Subject: Re: Old code woes
Now that my date from DB example has been raked over the coalshow's
My personal annoyance is this
cfif #session.isTrue# EQ true pisses me off no end..
Stop doing it then :) hehe
Paul
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245603
Archives:
Sent: Thu Jul 06 20:58:52 2006
Subject: RE: Old code woes
My personal annoyance is this
cfif #session.isTrue# EQ true pisses me off no end..
Stop doing it then :) hehe
Paul
~|
Message: http://www.houseoffusion.com
This is good and bad example. You may want the date in the DB with an
offset with multiple webservers in a follow the sun approach write to
a single DB in one location.
Why wouldn't you just use GMT in the database, and have the application
servers determine the offset as appropriate?
Dave
://www.reedexpo.com
-Original Message-
From: Dave Watts [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Thu Jul 06 21:10:58 2006
Subject: RE: Old code woes
This is good and bad example. You may want the date in the DB with an
offset with multiple webservers in a follow the sun approach
But this is about OLD CODE WOES, not NEW CODE WOES.
-Original Message-
From: Will Tomlinson [mailto:[EMAIL PROTECTED]
Sent: 06 July 2006 20:35
To: CF-Talk
Subject: Re: Old code woes
If you want some REAL entertainment just peruse some of dave the
worm's code
, Neil (RX)
[mailto:[EMAIL PROTECTED]
Sent: 06 July 2006 20:31
To: CF-Talk
Subject: Re: Old code woes
I am sure we can all come up with classics from code we have seen/written..
My personal annoyance is this
cfif #session.isTrue# EQ true pisses me off no end..
This e-mail is from Reed
cfif isdefined('form.something')
input name=something value=#form.something#
cfelse
input name=something
/cfif
yep...ain't cfparam handy ;-)
Bryan Stevenson B.Comm.
VP Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell:
26 matches
Mail list logo