Perl and line noise: an objective comparison

ank on 2010-06-14T19:10:28

We've heard over and over again that perl is like line noise - especially by people who don't program perl and are not used to seeing its code.

I think it's time to take a scientific approach to this problem, and figure out how "line-noisy" perl is. I believe that by comparing character frequencies in perl files versus C/java/plain English/etc we can ascertain once and for all which language looks more like English, which one more like line noise, etc.

The only problem I see with this is, just what exactly is line noise? Well, for perfect line noise, I would expect any character to be as likely as any other at any given time; so I think that by using that definition, we can easily compare.

I'm not going to do it right now because I'm awfully lazy, but I will soon. I'm more than ready to hear comments and criticisms on my approach, and on which code to use.


Where to get line noise?

titivillus on 2010-06-14T20:13:00

Used to be that you'd get line noise when using a modem to get data over a voice line.

Now, most people get their voice over a data line. I haven't seen a modem used in the wild in over a decade.

Kids today don't even have a concept of line noise.

Re:Where to get line noise?

ank on 2010-06-15T00:04:42

Yes, I only remember line noise from the BBS days - so I had to make a few assumptions - for instance, that line noise is like white noise.