Fetchez le Python

Technical blog on the Python programming language, in a pure Frenglish style

The dark side of the force

Remember the funny post about Python vs Perl on Python mailing list ?

I think it fits pretty well to TDD. Here’s a slighty modified version:

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 — writing test-driven code in Python, making
fakes, mock objects.

YODA: Code! Test! Yes. A programmer’s strength flows from non-regression.
Never stop doing tests. The dark side of code maintainability
reach you would without tests. Easy to write without them when
package you create. If once you start down the dark path,
forever will it dominate your destiny, consume you it will.

LUKE: Isn’t it simpler not to do tests ?

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

LUKE: So why I should do tests then ?

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

Filed under: python, quality

2 Responses

  1. lurker skywalker says:

    This python .vs perl thing is barking at the wrong tree. IMHO, if you are looking for “enemies”, then look no further than Java and C# which were developed after python (and perl) and yet python is light years ahead of them. But because of media hype and advertisement money goes there.

    Perl is NOT the enemy. This is divide and conquer: Divide the community of innovative dynamic languages to lament each other, while crap technologies get the market share.

    my 5 cents. Here take them. I want you to have them.

  2. Well Perl is not the enemy, definitely. This joke was made years ago on the Python mailing list.

    I am not looking for enemy langages at all, except the lack of until testing when coding Python ;)

    I just took back this very funny text and adapted it to unit testing, as TDD should be used in every langages.

Leave a Reply