in reply to Code Structures
This is a very interesting topic, IMO. Perl has a reputation for being "write-only", and I think the root cause of this reputation is Perl's TIMTOWTDI philosophy, because it can result in each programmer having a very unique coding style. Perl is a huge everything-but-the-kitchen-sink language, and each programmer fashions his/her own personal lingo from it. This is great for the individual programmer, but I think it can lead to code that is difficult to read by others. Heck, I have problems reading my own code sometimes, because my coding style is constantly evolving.
Consider this excerpt from the Second Exegesis:
Perl has always offered the ability to code at your own level and in the style that suits you best.This sounds very reasonable and attractive, but it implicitly assumes that the only consideration when writing code is the programmer's comfort ("the style that suits you best"), which ignores the fact that programmers other than the original author may have to read, understand, and possibly refactor or (heaven forbid) debug the code. This too is part of the equation, and I would argue that for a large organization it is an important part of the equation; in the long run, a large organization prefers to own code that can be readily understood by any one of its programmers than code that shines for its Perlish erudition (but can be understood only by those few who have attained the author's level of expertise).
I have often wondered whether in some more or less distant future Perl will spawn a much more limited and rigid dialect (ANSI Perl?) for the purpose of standardizing Perl programs. The impetus for this would be large organizations that want to use Perl but don't want a programming language that is so feature-rich that it takes years to master.
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Code Structures
by Forsaken (Friar) on May 21, 2005 at 15:50 UTC | |
|
Re^2: Code Structures
by Anonymous Monk on May 24, 2005 at 16:44 UTC |