📜 ⬆️ ⬇️

Easter eggs for Easter

Soon Easter, time to look for eggs, but not simple, but program. And we found them.

Python


Enter in REPL import __hello__ or import __phello__, and you will see:

>>> import __hello__ Hello world... >>> import __phello__ Hello world... 

')
To admire again, use reload (__ hello__).
Another little fun:

 >>> from __future__ import braces File "<stdin>", line 1 SyntaxError: not a chance 


There is a module in Python, called antigravity. Call it with a similar import antigravity command, and the browser will open a comic from the XKCD resource: xkcd.ru/353

The main spiritual easter egg of Python is a hidden message called The Zen of Python. Enter this import in the REPL and you will see a message from Tim Peters.

Try talking to Python about love. Although it is not an Easter egg, the meaning is very deep:

 >>> love=this >>> this is love True >>> love is True False >>> >>> love is False False >>> >>> love is not True or False; love is love True True >>> 


Php


Most of the secrets hidden in PHP are invoked by adding signatures to the php file request. To the conditional index.php page, add '? =' And the following signatures:
PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000 - here you will see PHP developers;
PHPE9568F36-D428-11d2-A769-00AA001ACF42 - one of six possible pictures may be displayed, depending on the version of PHP:



The developers' humor lies in the fact that the logo generated by the php_logo_guid () function once a year, or more precisely on April 1, is automatically replaced with one of the above. Go ahead:
PHPE9568F34-D428-11d2-A769-00AA001ACF42 - the “correct” PHP logo;



PHPE9568F35-D428-11d2-A769-00AA001ACF42 - Zend logo;



If you have something not displayed or you believe that this is a hoax, then partial confirmation of the algorithm can be found here: github.com/php/php-src/blob/master/ext/standard/info.h in lines 54– 56.
The following signature will also work with the Suhosin extension:
SUHO8567F54-D428-14d2-A769-00DA302A5F18 - hieroglyphs:


.
Having spent a couple of sleepless nights in search of a translation, it was only possible to determine the first character “number” and the last “sour”. If someone knows the full translation of the phrase - write in the comments.
Java
A funny coincidence can be found by opening the .class file with any HEX editor. The first 4 bits that serve as the file identifier look like CA FE BA BE:



C


There is such a wonderful book called C Programming Language by Kernighan and Richie (C Programming Language). It is better to look in the English version, because, for example, in the 3rd Russian edition of this Easter egg is not.
In the index at the end of the book, the term “recursion” refers to the current page of the index. There is no better explanation for the concept.
In addition, a lot of Easter eggs can be found in older versions of Borland C ++. For example, holding CTRL + Shift while downloading version 6, you could see the splash screen (even several), one of which shows the development team. Or enter the following message:

 #pragma keeka void main(void) { return 0; } 


Compile with bcc32 and see a cat of characters on the screen.

Ruby


In the Pry library several Easter eggs at once. You can see them in detail here , or, without looking, simply enter the commands get-naked, nyan-cat, east-coker, cohen-poem, pessoa-poem or test-ansi.
Ruby itself also has developers jokes, here’s a guide to detection .

Article author: Ilya Bubnov

Source: https://habr.com/ru/post/282249/


All Articles