Tuesday, December 7, 2010

Does Perl have to "suck" for you to be satisfied with your choice of language?

A recent post of mine seems to have generated some heated comments on reddit.

In that post, I took a short Perl script someone else had written. My purpose was to make the script better by reducing the code that had to be written to accomplish a certain task while making if more efficient and replacing cryptic expressions such as sort {$$a[0] cmp $$b[0]} with easier to understand versions such as sort { $a->{skutitle} cmp $b->{skutitle} } which conveys sort by skutitle in a straightforward way.

In doing so, I was not trying to claim that Perl is better than Python or Ruby. I was trying to illustrate better ways of writing Perl. The fact that the original author of the code I improved upon had a language comparison in mind does not mean I find such comparisons fruitful.

Remember, Perl does not have to "suck" for your choice of language to be validated.

1 comment:

  1. I think there are many people out there who need the self-assurance that their choices are right. In programming languages this means bashing the other languages. So in order to justify their choice of language they try to say the other one has issues. These people are not event creative. They keep repeating the old FUD.


    I think the only thing we can do is just to keep showing nice examples of Perl. There are plenty of people who will see the value in that.

    ReplyDelete