Old code woes

2006-07-06 Thread Peterson, Chris
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

Re: Old code woes

2006-07-06 Thread Mingo Hagen
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.

RE: Old code woes

2006-07-06 Thread Everett, Al \(NIH/NIGMS\) [C]
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

Re: Old code woes

2006-07-06 Thread Rob Wilkerson
: 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

Re: Old code woes

2006-07-06 Thread mac jordan
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 :)

Re: Old code woes

2006-07-06 Thread Bryan Stevenson
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

Re: Old code woes

2006-07-06 Thread Robertson-Ravo, Neil (RX)
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

Re: Old code woes

2006-07-06 Thread Bryan Stevenson
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

Re: Old code woes

2006-07-06 Thread Robertson-Ravo, Neil (RX)
@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

RE: Old code woes

2006-07-06 Thread Dave Watts
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

Re: Old code woes

2006-07-06 Thread Bryan Stevenson
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

RE: Old code woes

2006-07-06 Thread Everett, Al \(NIH/NIGMS\) [C]
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:

RE: Old code woes

2006-07-06 Thread Snake
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

Re: Old code woes

2006-07-06 Thread Robertson-Ravo, Neil (RX)
: 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

Re: Old code woes

2006-07-06 Thread Will Tomlinson
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

RE: Old code woes

2006-07-06 Thread Snake
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

Re: Old code woes

2006-07-06 Thread Bryan Stevenson
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

Re: Old code woes

2006-07-06 Thread Bryan Stevenson
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

Re: Old code woes

2006-07-06 Thread Robertson-Ravo, Neil (RX)
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

RE: Old code woes

2006-07-06 Thread Paul Vernon
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:

Re: Old code woes

2006-07-06 Thread Robertson-Ravo, Neil (RX)
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

RE: Old code woes

2006-07-06 Thread Dave Watts
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

Re: Old code woes

2006-07-06 Thread Robertson-Ravo, Neil (RX)
://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

RE: Old code woes

2006-07-06 Thread Snake
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

RE: Old code woes

2006-07-06 Thread Snake
, 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

Re: Old code woes

2006-07-06 Thread Bryan Stevenson
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: