python vs perl lines of code

Mirco Wahab wahab at chemie.uni-halle.de
Wed May 17 19:27:14 CEST 2006


Hi Edward

>                Raw               -Blanks             -Comments
>            lines  chars       lines  chars         lines  chars
> mirror.py  167    4632        132    4597          118    4009
> mirror.pl  309    5836        211    5647          184    4790

Maybe somebody would change his style
and had a lot of such statements before:

   if ( something )
  {
   do_something()
  }

which can be expressed in one
line:

  do_something() if ( /something/ );

This has a 1:4 line count then.

Or, somebody used identifier like:

   sub GetTheseSamplesHereOut {
    ...
    ...
   }

and later:
   sub SampleExtract {
    ...
    ...
   }

and saved ~40% characters.
You got my point? ;-)


Regards

M. Wahab



More information about the Python-list mailing list