NewsBot
1
Hey folks,
As everyone is probably familiar with being rickrolled and since there's been so many interpretations of the now infamous song, and since HumanCompiler started showing his code off in a separate thread,*I was thinking it was about time to take this internet meme to it's next illogical step by figuring out what the best way to represent the lyrics to Never Going to Give you Up in code. The lyrics are below, a sample snippet of what the code would look like for the first verse. VB/C#(insert language here) implementations are allowed, bonus points for creativity...code must compile
Source:Lyricsfreak.com
Were no strangers to love
You know the rules and so do i
A full commitments what Im thinking of
You wouldnt get this from any other guy
I just wanna tell you how Im feeling
Gotta make you understand
* never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
Weve know each other for so long
Your hearts been aching
But youre too shy to say it
Inside we both know whats been going on
We know the game and were gonna play it
And if you ask me how Im feeling
Dont tell me youre too blind to see
(* repeat)
Give you up. give you up
Give you up, give you up
Never gonna give
Never gonna give, give you up
Never gonna give
Never gonna give, five you up
I just wanna tell you how Im feeling
Gotta make you understand
(* repeat 3 times)
END LYRICS
Prototype Code
//Both people are represented by an abstract class
publicabstractclassPerson
{
* publicbool StrangersToLove { get; set; }
* publicbool KnowTheRules { get; set; }
}
//Rick Astley's possible thoughts
publicenumThought
{
* FullCommitment
}
//Rick class*
publicsealedclassMe : Person
{
* publicThought Thinking()
* {
*** returnThought.FullCommitment;
* }
}
//The target of Rick's song, notice that GetThought can only be called by passing in an instance of Rick
//which satisfies that she can't get this from any other guy
publicclassYou : Person
{
* privateThought whatHeIsThinking;
* publicvoid GetThought(Me guy)
* {
*** whatHeIsThinking = guy.Thinking();
* }
}
classProgram
{
* //The first verse
* staticvoid Main(string[] args)
* {
*** var Rick = newMe() { KnowTheRules = true, StrangersToLove = false };
*** var Girl = newYou() { KnowTheRules = true, StrangersToLove = false };
** Girl.GetThought(Rick);*
* }
}
*
*
*
More...
View All Our Microsoft Related Feeds
As everyone is probably familiar with being rickrolled and since there's been so many interpretations of the now infamous song, and since HumanCompiler started showing his code off in a separate thread,*I was thinking it was about time to take this internet meme to it's next illogical step by figuring out what the best way to represent the lyrics to Never Going to Give you Up in code. The lyrics are below, a sample snippet of what the code would look like for the first verse. VB/C#(insert language here) implementations are allowed, bonus points for creativity...code must compile

Source:Lyricsfreak.com
Were no strangers to love
You know the rules and so do i
A full commitments what Im thinking of
You wouldnt get this from any other guy
I just wanna tell you how Im feeling
Gotta make you understand
* never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
Weve know each other for so long
Your hearts been aching
But youre too shy to say it
Inside we both know whats been going on
We know the game and were gonna play it
And if you ask me how Im feeling
Dont tell me youre too blind to see
(* repeat)
Give you up. give you up
Give you up, give you up
Never gonna give
Never gonna give, give you up
Never gonna give
Never gonna give, five you up
I just wanna tell you how Im feeling
Gotta make you understand
(* repeat 3 times)
END LYRICS
Prototype Code
//Both people are represented by an abstract class
publicabstractclassPerson
{
* publicbool StrangersToLove { get; set; }
* publicbool KnowTheRules { get; set; }
}
//Rick Astley's possible thoughts
publicenumThought
{
* FullCommitment
}
//Rick class*
publicsealedclassMe : Person
{
* publicThought Thinking()
* {
*** returnThought.FullCommitment;
* }
}
//The target of Rick's song, notice that GetThought can only be called by passing in an instance of Rick
//which satisfies that she can't get this from any other guy
publicclassYou : Person
{
* privateThought whatHeIsThinking;
* publicvoid GetThought(Me guy)
* {
*** whatHeIsThinking = guy.Thinking();
* }
}
classProgram
{
* //The first verse
* staticvoid Main(string[] args)
* {
*** var Rick = newMe() { KnowTheRules = true, StrangersToLove = false };
*** var Girl = newYou() { KnowTheRules = true, StrangersToLove = false };
** Girl.GetThought(Rick);*
* }
}
*
*
*
More...
View All Our Microsoft Related Feeds