<rant>
I took over this job from another guy about almost 3 years ago.  Many of 
the things he built I have rewritten.  In many cases, I found it easier 
to rewrite them from scratch than to fix them or enhance them.

For example, here is a snippet of his code that exemplifies that type of 
programming that he did:

------------------------------------------------------------
<CFIF #FindNoCase("http://";, EVENTURL)# OR
        #FindNoCase("https://";, EVENTURL)#>
<CFELSEIF #Trim(EVENTURL)# IS "">
        <CFSET EVENTURL = EVENTURL>
<CFELSE>
        <CFSET EVENTURL = "http://"; & EVENTURL>
</CFIF>
------------------------------------------------------------

Here is my version, rewritten:

------------------------------------------------------------
<cfif EVENTURL neq "" and reFindNoCase("https?://",EVENTURL) eq 0>
        <cfset EVENTURL = "http://"; & EVENTURL>
</cfif>
------------------------------------------------------------

Life is grand, ain't it?

</rant>

Rick



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212555
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to