I See Dead Code

… as sounding brass, or a tinkling cymbal.

I See Dead Code header image 2

Look at me, I know Functional Programming!

May 5th, 2008 · 1 Comment

Sometimes I wonder what the hell I might have been thinking while writing code like this1 :

1
2
3
4
5
6
7
def uncurry(f):
    return lambda t: f(*t)
 
def longest_common_prefix(Sa, Sb):
    return len(list(
        takewhile(uncurry(eq),
                  izip(Sa, Sb))))
  1. I bet the tenses are all wrong again. []

Tags: lang:en · programming · python

1 response so far ↓

  • 1 Curieuse // May 5, 2008 at 23:41

    Kudos for the tenses.. I think my brilliance is rubbing off on.. well your English skills at least..

Leave a Comment