Perl and Object-Oriented
Lately at work I have been doing quite a lot of Perl coding (and reading other people's code). One thing I find is that Perl is a very expressive language, there is a lot of ways of doing the same thing, and rightly so because Perl is a scripting language design to be just that. Now when OO design has started to heat up (years ago) people have started to incorporate OO into the language. All these advantages of OO (encapulation, inheritance) require a lot of constrains which is kind of contradiction with Perl which is designed with very few contraint on the programmer and things are allowed to fail in run-time (a lot do!).
My current conclusion is that Perl should be left as a powerful scripting language and leave the OO stuff out to other languages which are much better at it. I feel that OO is best at the lower level than where Perl is at -- trying to pull OO up will just pull Perl down.
There are probably a lot of people that will go against me on this but at the moment, I am just not convinced of OO Perl.

0 Comments:
Post a Comment
<< Home