Click here to Skip to main content
15,887,325 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Documentation boggle of the day Pin
Gerry Schmitz8-Feb-19 17:41
mveGerry Schmitz8-Feb-19 17:41 
GeneralRe: Documentation boggle of the day Pin
Sander Rossel10-Feb-19 20:44
professionalSander Rossel10-Feb-19 20:44 
GeneralRe: Documentation boggle of the day Pin
irneb11-Feb-19 1:52
irneb11-Feb-19 1:52 
GeneralRe: Documentation boggle of the day Pin
Randor 11-Feb-19 11:29
professional Randor 11-Feb-19 11:29 
GeneralRe: Documentation boggle of the day Pin
Gary Wheeler12-Feb-19 2:15
Gary Wheeler12-Feb-19 2:15 
GeneralRe: Documentation boggle of the day Pin
peterkmx12-Feb-19 23:44
professionalpeterkmx12-Feb-19 23:44 
GeneralRe: Documentation boggle of the day Pin
Dr.Walt Fair, PE9-May-19 10:16
professionalDr.Walt Fair, PE9-May-19 10:16 
GeneralPerl is crazy! Pin
Brisingr Aerowing21-Jan-19 16:38
professionalBrisingr Aerowing21-Jan-19 16:38 
(Taken from Reddit[^])

PERL
not exp log srand xor s qq qx xor  
s x x length uc ord and print chr  
ord for qw q join use sub tied qx  
xor eval xor print qq q q xor int  
eval lc q m cos and print chr ord  
for qw y abs ne open tied hex exp  
ref y m xor scalar srand print qq  
q q xor int eval lc qq y sqrt cos  
and print chr ord for qw x printf  
each return local x y or print qq  
s s and eval q s undef or oct xor  
time xor ref print chr int ord lc  
foreach qw y hex alarm chdir kill  
exec return y s gt sin sort split 


Quote:
It's just pointless obfuscation, but its kinda neat. That code prints out "Just another Perl hacker" using only keywords in perl.
The trick to it is that the "q" keyword works as a quote, and the rest of the code is just operating on the keywords that are now just strings inside the q tags.


Eek! | :eek:
What do you get when you cross a joke with a rhetorical question?

The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.

Do questions with multiple question marks annoy you???

GeneralRe: Perl is crazy! Pin
Super Lloyd21-Jan-19 17:28
Super Lloyd21-Jan-19 17:28 
GeneralRe: Perl is crazy! Pin
RugbyLeague21-Jan-19 22:27
RugbyLeague21-Jan-19 22:27 
GeneralRe: Perl is crazy! Pin
Super Lloyd21-Jan-19 22:42
Super Lloyd21-Jan-19 22:42 
GeneralRe: Perl is crazy! Pin
Richard Deeming22-Jan-19 0:51
mveRichard Deeming22-Jan-19 0:51 
GeneralRe: Perl is crazy! Pin
Super Lloyd22-Jan-19 11:50
Super Lloyd22-Jan-19 11:50 
GeneralRe: Perl is crazy! Pin
DaveAuld24-Jan-19 4:16
professionalDaveAuld24-Jan-19 4:16 
GeneralRe: Perl is crazy! Pin
Mark_Wallace6-Feb-19 21:45
Mark_Wallace6-Feb-19 21:45 
GeneralRe: Perl is crazy! Pin
RickZeeland21-Jan-19 21:24
mveRickZeeland21-Jan-19 21:24 
GeneralRe: Perl is crazy! Pin
TheGreatAndPowerfulOz30-Jan-19 14:43
TheGreatAndPowerfulOz30-Jan-19 14:43 
GeneralRe: Perl is crazy! Pin
RickZeeland30-Jan-19 20:13
mveRickZeeland30-Jan-19 20:13 
GeneralRe: Perl is crazy! Pin
peterkmx21-Jan-19 23:17
professionalpeterkmx21-Jan-19 23:17 
GeneralRe: Perl is crazy! Pin
Kornfeld Eliyahu Peter21-Jan-19 23:47
professionalKornfeld Eliyahu Peter21-Jan-19 23:47 
GeneralRe: Perl is crazy! Pin
peterkmx22-Jan-19 0:23
professionalpeterkmx22-Jan-19 0:23 
GeneralRe: Perl is crazy! Pin
ZurdoDev22-Jan-19 2:08
professionalZurdoDev22-Jan-19 2:08 
GeneralRe: Perl is crazy! Pin
Stefan Küsters22-Jan-19 20:50
Stefan Küsters22-Jan-19 20:50 
GeneralRe: Perl is crazy! Pin
ZurdoDev23-Jan-19 1:59
professionalZurdoDev23-Jan-19 1:59 
GeneralRe: Perl is crazy! Pin
Stefan Küsters23-Jan-19 8:00
Stefan Küsters23-Jan-19 8:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.