On Python Yoda Speaks

You may be familiar with Luke Skywalker’s training on the force from Yoda…

EXTERIOR: DAGOBAH — DAY

With Yoda strapped to his back, Luke climbs up one of the
many thick vines that grow in the swamp. Panting heavily, he
continues his course — climbing, flipping through the air,
jumping over roots, and racing in and out of the heavy ground
fog.

YODA: Run! Yes. A Jedi’s strength flows from the Force. But beware of
the dark side. Anger…fear…aggression. The dark side of the Force
are they. Easily they flow, quick to join you in a fight. If once you
start down the dark path, forever will it dominate your destiny,
consume you it will, as it did Obi-Wan’s apprentice.

LUKE: Vader. Is the dark side stronger?

YODA: No…no…no. Quicker, easier, more seductive.

LUKE: But how am I to know the good side from the bad?

YODA: You will know. When you are calm, at peace. Passive. A Jedi uses
the Force for knowledge and defense, never for attack.

LUKE: But tell me why I can’t…

YODA: (interrupting) No, no, there is no why. Nothing more will I
teach you today. Clear your mind of questions. Mmm. Mmmmmm.

Source: The Empire Strikes Back Script from blueharvest.net

… It turns out Yoda is also a master of Python:

EXTERIOR: DAGOBAH–DAY

With Yoda strapped to his back, Luke climbs up one of the many thick vines that grow in the swamp until he reaches the Dagobah statistics lab. Panting heavily, he continues his exercises–grepping, installing new packages, logging in as root, and writing replacements for two-year-old shell scripts in Python.

YODA
Code! Yes. A programmer’s strength flows from code
maintainability. But beware of Perl. Terse syntax… more
than one way to do it… default variables. The dark side of
code maintainability are they. Easily they flow, quick to join
you when code you write. If once you start down the dark
path, forever will it dominate your destiny, consume you
it will.

LUKE: Is Perl better than Python?

YODA: No… no… no. Quicker, easier, more seductive.

LUKE: But how will I know why Python is better than Perl?

YODA: You will know. When your code you try to read six
months from now.

Source: A morality tale of Perl versus Python Posted to rec.humor.funny.  Note that I do not petty condone language wars.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s