Posts tagged Coldfusion
The Coldfusion Rick Roll
Jun 29th
Recently I submitted some code for a CFUNITED t-shirt contest and I thought the code was funny enough to post on the blog. BTW: The code isn’t just a joke, it actually works!
The Over Programmed Coldfusion Rick Roll by Me
<cfset lyric = ""> <cfloop condition="lyric neq 'Never gonna tell a lie and hurt you'"> <cfswitch expression="#lyric#"> <cfcase value=""> <cfset lyric = "Never gonna give you up"> </cfcase> <cfcase value="Never gonna give you up"> <cfset lyric = "Never gonna let you down"> </cfcase> <cfcase value="Never gonna let you down"> <cfset lyric = "Never gonna run around and desert you"> </cfcase> <cfcase value="Never gonna run around and desert you"> <cfset lyric = "Never gonna make you cry"> </cfcase> <cfcase value="Never gonna make you cry"> <cfset lyric = "Never gonna say goodbye"> </cfcase> <cfcase value="Never gonna say goodbye"> <cfset lyric = "Never gonna tell a lie and hurt you"> </cfcase> </cfswitch> <cfoutput>#lyric#<br /></cfoutput> </cfloop>
The Elegant Coldfusion Rick Roll by Ryan Vikander
<cfset Lyric = "give you up, let you down, run around and desert you, make you cry, say goodbye, tell a lie and hurt you" /> <cfoutput> <cfloop list="#Lyric#" index="i"> Never gonna #i#<br /> </cfloop> </cfoutput>