[Discuss] Interpreters vs Compilers a la fdupes opposite

Noel Burton-Krahn noel at burton-krahn.com
Sun Mar 16 10:24:48 PDT 2008


I thought I'd combine this thread with the "fdupes opposite" thread.
Here are 4 implementations of fdupes in python, perl, java, and sh.
You can compare for yourself which is more readable.  Well, you'll
have to factor out my own programming style.

Here is the line count for the 4 implementations here.

$ sh count-lines.sh
FILE        LINES (no blanks, no comments)
   fdup.sh    5
   fdup.py   19
   fdup.pl   32
 fdup.java   91 (57)

Check out the source code to decide for yourself which language suits
your taste.

~Noel


More information about the Discuss mailing list