Discuss Scratch

liam48D
Scratcher
1000+ posts

Best easter eggs/jokes in code examples?

Basically post really funny tidbits of code that have been made as (most likely) jokes or easter eggs (but not the kind of easter egg that adds more functionality).

Here's got to be my favourite so far:

...
def BAR():
    return 0xDEADBEEF
...

DigiTechs
Scratcher
500+ posts

Best easter eggs/jokes in code examples?

The fast inverse square root code is full of awesome easter eggs
liam48D
Scratcher
1000+ posts

Best easter eggs/jokes in code examples?

DigiTechs wrote:

The fast inverse square root code is full of awesome easter eggs
I could ask you what that is but you'd just do this.
__init__
Scratcher
1000+ posts

Best easter eggs/jokes in code examples?

liam48D wrote:

Basically post really funny tidbits of code that have been made as (most likely) jokes or easter eggs (but not the kind of easter egg that adds more functionality).

Here's got to be my favourite so far:

...
def BAR():
    return 0xDEADBEEF
...

don't forget 0xBAADFACE!
liam48D
Scratcher
1000+ posts

Best easter eggs/jokes in code examples?

PullJosh
Scratcher
1000+ posts

Best easter eggs/jokes in code examples?

In the code for xkcd #1110, there's a cool little easter egg.

It shows up towards the bottom of d28668.js, and says the following:
/* 50:72:6f:50:75:6b:65:20:69:73:20:61:77:65:73:6f:6d:65 */

Hillarious, right?

No.

Anyway, I actually came across this myself, but had no idea what it meant. So I googled “50:72:6f:50:75:6b:65:20:69:73:20:61:77:65:73:6f:6d:65” and found this page, which says the following:
At the end of the JavaScript file responsible for the map code, there's a comment “/* 50:72:6f:50:75:6b:65:20:69:73:20:61:77:65:73:6f:6d:65 */”. Interpreted as hex codes for ASCII text, this reads “ProPuke is awesome”. Interesting. Google tells me that ProPuke is the handle of a programmer from the UK. This morning, on his twitter feed, he posted “57:68:79:2c:20:74:68:61:6e:6b:20:79:6f:75:21”. This translates from hex as “Why, thank you!” Also, his Wikipedia user page tells us a lot about him too. I wonder if he contributed to the code?

… Hillarious, right?
NoMod-Programming
Scratcher
1000+ posts

Best easter eggs/jokes in code examples?

//sometimes I thing the compiler ignores all my comments
also:

I once saw a programmer comment everything on his code, and I mean EVERYTHING
return 0; //returns 0

Last edited by NoMod-Programming (Oct. 11, 2015 22:20:26)

WooHooBoy
Scratcher
1000+ posts

Best easter eggs/jokes in code examples?

PullJosh wrote:

In the code for xkcd #1110, there's a cool little easter egg.

It shows up towards the bottom of d28668.js, and says the following:
/* 50:72:6f:50:75:6b:65:20:69:73:20:61:77:65:73:6f:6d:65 */

Hillarious, right?

No.

Anyway, I actually came across this myself, but had no idea what it meant. So I googled “50:72:6f:50:75:6b:65:20:69:73:20:61:77:65:73:6f:6d:65” and found this page, which says the following:
At the end of the JavaScript file responsible for the map code, there's a comment “/* 50:72:6f:50:75:6b:65:20:69:73:20:61:77:65:73:6f:6d:65 */”. Interpreted as hex codes for ASCII text, this reads “ProPuke is awesome”. Interesting. Google tells me that ProPuke is the handle of a programmer from the UK. This morning, on his twitter feed, he posted “57:68:79:2c:20:74:68:61:6e:6b:20:79:6f:75:21”. This translates from hex as “Why, thank you!” Also, his Wikipedia user page tells us a lot about him too. I wonder if he contributed to the code?

… Hillarious, right?
Yes. Funny.
liam48D
Scratcher
1000+ posts

Best easter eggs/jokes in code examples?

PullJosh wrote:

In the code for xkcd #1110, there's a cool little easter egg.

It shows up towards the bottom of d28668.js, and says the following:
/* 50:72:6f:50:75:6b:65:20:69:73:20:61:77:65:73:6f:6d:65 */

Hillarious, right?

No.

Anyway, I actually came across this myself, but had no idea what it meant. So I googled “50:72:6f:50:75:6b:65:20:69:73:20:61:77:65:73:6f:6d:65” and found this page, which says the following:
At the end of the JavaScript file responsible for the map code, there's a comment “/* 50:72:6f:50:75:6b:65:20:69:73:20:61:77:65:73:6f:6d:65 */”. Interpreted as hex codes for ASCII text, this reads “ProPuke is awesome”. Interesting. Google tells me that ProPuke is the handle of a programmer from the UK. This morning, on his twitter feed, he posted “57:68:79:2c:20:74:68:61:6e:6b:20:79:6f:75:21”. This translates from hex as “Why, thank you!” Also, his Wikipedia user page tells us a lot about him too. I wonder if he contributed to the code?

… Hillarious, right?
Oh wow, talk about hidden. Some people are really good at hiding easter eggs!

That one's great!
Rumanti
Scratcher
1000+ posts

Best easter eggs/jokes in code examples?

PullJosh wrote:

In the code for xkcd #1110, there's a cool little easter egg.

It shows up towards the bottom of d28668.js, and says the following:
/* 50:72:6f:50:75:6b:65:20:69:73:20:61:77:65:73:6f:6d:65 */

Hillarious, right?

No.

Anyway, I actually came across this myself, but had no idea what it meant. So I googled “50:72:6f:50:75:6b:65:20:69:73:20:61:77:65:73:6f:6d:65” and found this page, which says the following:
At the end of the JavaScript file responsible for the map code, there's a comment “/* 50:72:6f:50:75:6b:65:20:69:73:20:61:77:65:73:6f:6d:65 */”. Interpreted as hex codes for ASCII text, this reads “ProPuke is awesome”. Interesting. Google tells me that ProPuke is the handle of a programmer from the UK. This morning, on his twitter feed, he posted “57:68:79:2c:20:74:68:61:6e:6b:20:79:6f:75:21”. This translates from hex as “Why, thank you!” Also, his Wikipedia user page tells us a lot about him too. I wonder if he contributed to the code?

… Hillarious, right?
Totally! Well, I sure will Inspect Element more often after this! Anyone going to code a userscript that could find potential easter eggs?
liam48D
Scratcher
1000+ posts

Best easter eggs/jokes in code examples?

Rumanti wrote:

PullJosh wrote:

In the code for xkcd #1110, there's a cool little easter egg.

It shows up towards the bottom of d28668.js, and says the following:
/* 50:72:6f:50:75:6b:65:20:69:73:20:61:77:65:73:6f:6d:65 */

Hillarious, right?

No.

Anyway, I actually came across this myself, but had no idea what it meant. So I googled “50:72:6f:50:75:6b:65:20:69:73:20:61:77:65:73:6f:6d:65” and found this page, which says the following:
At the end of the JavaScript file responsible for the map code, there's a comment “/* 50:72:6f:50:75:6b:65:20:69:73:20:61:77:65:73:6f:6d:65 */”. Interpreted as hex codes for ASCII text, this reads “ProPuke is awesome”. Interesting. Google tells me that ProPuke is the handle of a programmer from the UK. This morning, on his twitter feed, he posted “57:68:79:2c:20:74:68:61:6e:6b:20:79:6f:75:21”. This translates from hex as “Why, thank you!” Also, his Wikipedia user page tells us a lot about him too. I wonder if he contributed to the code?

… Hillarious, right?
Totally! Well, I sure will Inspect Element more often after this! Anyone going to code a userscript that could find potential easter eggs?
Hmm. Is there a native way to check if words are in the dictionary? If so, we could do these two things:

  1. Find constants (but not strings, so numbers, booleans, etc.) with English words in them.
  2. Find comments without English words in them.
Rumanti
Scratcher
1000+ posts

Best easter eggs/jokes in code examples?

No idea about dictionary searching. Not interested in wasting time scanning data for finding easter eggs that probably aren't there. Analyzing for fishy characters sounds more efficient, but certainly not as effective..

16GB RAM is lovely. I wish..
WooHooBoy
Scratcher
1000+ posts

Best easter eggs/jokes in code examples?

how about:

// i can has feet?
unknownAccount737
Scratcher
15 posts

Best easter eggs/jokes in code examples?

K3eP tHiNk1Ng

Last edited by unknownAccount737 (Oct. 29, 2015 00:04:00)

liam48D
Scratcher
1000+ posts

Best easter eggs/jokes in code examples?

unknownAccount737 wrote:

K3eP tHiNk1Ng
Never stop thinking!
Rumanti
Scratcher
1000+ posts

Best easter eggs/jokes in code examples?

WooHooBoy wrote:

how about:

// i can has feet?
Rather late, but..

THAT'S MY CODE AMIRITE.

Powered by DjangoBB