best waste of code

This one wins the award for sure.? Ever hear of MonthAsString()?? doh!

<!— This is used in Historical View reports to determine month headers —>
<CFIF variables.holdmonth EQ ‘01′>
January
<CFELSEIF variables.holdmonth EQ ‘02′>
February
<CFELSEIF variables.holdmonth EQ ‘03′>
March
<CFELSEIF variables.holdmonth EQ ‘04′>
April
<CFELSEIF variables.holdmonth EQ ‘05′>
May
<CFELSEIF variables.holdmonth EQ ‘06′>
June
<CFELSEIF variables.holdmonth EQ ‘07′>
July
<CFELSEIF variables.holdmonth EQ ‘08′>
August
<CFELSEIF variables.holdmonth EQ ‘09′>
September
<CFELSEIF variables.holdmonth EQ ‘10′>
October
<CFELSEIF variables.holdmonth EQ ‘11′>
November
<CFELSEIF variables.holdmonth EQ ‘12′>
December
<CFELSE>?
</cfif>

2 Responses to “best waste of code”

  1. June 3rd, 2005 | 9:39 am

    yes! I remember that code (ha). Don’t you remember how it was before you saw the “functions” tab in the Coldfusion help? Thanks for the chuckle.

  2. July 19th, 2005 | 10:35 pm

    hehehe i once remember a developer (jnr) used a cfinclude system to replicate CFLOOP.

    I asked him “Why are you doing this? is there a purpose?”

    his response: “I needed to output 100 rows”

    “Yeah, well use CFLOOP”

    “there’s a CFLOOP tag? since when?”..

    *groan*

Leave a reply