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

Unexpected product: The half-gallon milk crate car cup holder adapter

I’ve done the occasional Tampa-to-St. Pete commute during peak times, and they can easily stretch…

13 hours ago

Lucky Tigre / relationship goals

Anitra and I saw the sticker pictured above on a Model Y Tesla parked outside…

1 day ago

Sunday picdump for Sunday, May 3

It’s Sunday, and it’s time for another “picdump!” Here are the memes, pictures, and cartoons…

3 days ago

Before there were demotivational posters, there were demotivational tapestries

I saw this a couple of weeks ago in Austin at Uncommon Objects, a delightfully…

6 days ago

Your regular reminder that we live in an age of wonders

This stuff makes for amazing fried rice or musubi (a.k.a. “Spam sushi”).

1 week ago

No weapons allowed in the bridal shop

Anitra and I were dropping off a package at the UPS Store on Kennedy when…

1 week ago