Click here to Skip to main content
14,357,121 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 18:41
mveGerry Schmitz8-Feb-19 18:41 
GeneralRe: Documentation boggle of the day Pin
Sander Rossel10-Feb-19 21:44
professionalSander Rossel10-Feb-19 21:44 
GeneralRe: Documentation boggle of the day Pin
irneb11-Feb-19 2:52
memberirneb11-Feb-19 2:52 
GeneralRe: Documentation boggle of the day Pin
Randor 11-Feb-19 12:29
professional Randor 11-Feb-19 12:29 
GeneralRe: Documentation boggle of the day Pin
Gary Wheeler12-Feb-19 3:15
memberGary Wheeler12-Feb-19 3:15 
GeneralRe: Documentation boggle of the day Pin
Tachyonx13-Feb-19 0:44
memberTachyonx13-Feb-19 0:44 
GeneralRe: Documentation boggle of the day Pin
Dr.Walt Fair, PE9-May-19 11:16
professionalDr.Walt Fair, PE9-May-19 11:16 
GeneralPerl is crazy! Pin
Brisingr Aerowing21-Jan-19 17:38
professionalBrisingr Aerowing21-Jan-19 17:38 
(Taken from Reddit[^])

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  
 or 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 18:28
memberSuper Lloyd21-Jan-19 18:28 
GeneralRe: Perl is crazy! Pin
RugbyLeague21-Jan-19 23:27
memberRugbyLeague21-Jan-19 23:27 
GeneralRe: Perl is crazy! Pin
Super Lloyd21-Jan-19 23:42
memberSuper Lloyd21-Jan-19 23:42 
GeneralRe: Perl is crazy! Pin
Richard Deeming22-Jan-19 1:51
mveRichard Deeming22-Jan-19 1:51 
GeneralRe: Perl is crazy! Pin
Super Lloyd22-Jan-19 12:50
memberSuper Lloyd22-Jan-19 12:50 
GeneralRe: Perl is crazy! Pin
DaveAuld24-Jan-19 5:16
protectorDaveAuld24-Jan-19 5:16 
GeneralRe: Perl is crazy! Pin
Mark_Wallace6-Feb-19 22:45
memberMark_Wallace6-Feb-19 22:45 
GeneralRe: Perl is crazy! Pin
RickZeeland21-Jan-19 22:24
mveRickZeeland21-Jan-19 22:24 
GeneralRe: Perl is crazy! Pin
TheGreatAndPowerfulOz30-Jan-19 15:43
memberTheGreatAndPowerfulOz30-Jan-19 15:43 
GeneralRe: Perl is crazy! Pin
RickZeeland30-Jan-19 21:13
mveRickZeeland30-Jan-19 21:13 
GeneralRe: Perl is crazy! Pin
Tachyonx22-Jan-19 0:17
memberTachyonx22-Jan-19 0:17 
GeneralRe: Perl is crazy! Pin
Kornfeld Eliyahu Peter22-Jan-19 0:47
mveKornfeld Eliyahu Peter22-Jan-19 0:47 
GeneralRe: Perl is crazy! Pin
Tachyonx22-Jan-19 1:23
memberTachyonx22-Jan-19 1:23 
GeneralRe: Perl is crazy! Pin
ZurdoDev22-Jan-19 3:08
professionalZurdoDev22-Jan-19 3:08 
GeneralRe: Perl is crazy! Pin
Stefan Küsters22-Jan-19 21:50
memberStefan Küsters22-Jan-19 21:50 
GeneralRe: Perl is crazy! Pin
ZurdoDev23-Jan-19 2:59
professionalZurdoDev23-Jan-19 2:59 
GeneralRe: Perl is crazy! Pin
Stefan Küsters23-Jan-19 9:00
memberStefan Küsters23-Jan-19 9: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.