More on Geeky Proposals

Mark Pilgrim, author of Dive Into Python (Python’s analogue of the “Camel Book”, IMHO), tells me that my prediction from this entry
has been fulfilled. Yesterday, he was in an IRC channel where various
Python programmers were discussing the errors in the Python Marriage
Proposal (not to be confused with Python Enhancement Proposals).


Summer at Iridesce Sent pointed me to this proposal that is also working Perl code:
#!/usr/bin/perl -w
use strict;

my$f= $[;my
$ch=0;sub l{length}
sub r{join"", reverse split
("",$_[$[])}sub ss{substr($_[0]
,$_[1],$_[2])}sub be{$_=$_[0];p
(ss($_,$f,1));$f+=l()/2;$f%=l
();$f++if$ch%2;$ch++}my$q=r
("\ntfgpfdfal,thg?bngbj".
"naxfcixz");$_=$q; $q=~
tr/f[a-z]/ [l-za-k]
/;my@ever=1..&l
;my$mine=$q
;sub p{
print
@_;
}

be $mine for @ever

Awww.


I remind you that this is working Python if you’ve made the appropriate definitions:
from Russia import bride
Joey deVilla

View Comments

Recent Posts

A Robbie Burns follow-up: “The Rights of Woman”

As a follow-up to yesterday’s post about Burns Night, here’s another poem from Robert Burns…

21 hours ago

Sunday picdump for January 26, 2024

It’s Sunday, which means it’s time for another “picdump!” Here are 136 memes, pictures, and cartoons floating around…

2 days ago

My plans for Burns Night 2025

Here’s the main course for dinner tonight... ...and that’s because it’s January 25th today, making…

2 days ago

Palm trees and a puffy vest

My friends in my old home town, Toronto, won’t find Tampa’s current temperatures cold, but…

4 days ago

“You had me at ‘grenade’” / “Show me the MAC-10!”

Clearly, I missed out by not watching the director’s cut of Jerry Maguire! But seriously —…

6 days ago

Same energy

7 days ago