I was recently reading an article somewhere (I've lost it since) that claimed that "...Perl encourages a lack of discipline..." For a moment or two, I thought that might be correct. I realized, though, that it's not.
Perl allows a lack of discipline, but that's not really the same as encouraging it. Unlike some B&D languages like Pascal, Perl will allow me to do some very careless and risky things, if I want. Perl does not force me to behave myself. Leave off the use warnings and use strict pragmas, and Perl will let me do all kinds of things without complaint. If I'm just throwing together a quick script for a once-off job, I don't have to declare all my variables and #include header files.
On the other hand, I can also use the pragmas and OO programming to be as disciplined as I want. It's up to me.
Perl is about freedom to choose how much or how little discipline I want. It's up to me, not someone else who wants to protect me from myself. Larry and company no doubt have some opinions about discipline, but they don't impose their ideas on me. They let me choose. They trust me to choose wisely (or, sometimes, to pay the consequences).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl and Discipline - and Freedom
by xdg (Monsignor) on Aug 09, 2005 at 05:01 UTC | |
Re: Perl and Discipline - and Freedom
by adrianh (Chancellor) on Aug 09, 2005 at 13:31 UTC | |
by revdiablo (Prior) on Aug 09, 2005 at 15:25 UTC | |
by adrianh (Chancellor) on Aug 09, 2005 at 15:56 UTC | |
by hakkr (Chaplain) on Aug 09, 2005 at 16:56 UTC | |
by adrianh (Chancellor) on Aug 09, 2005 at 17:28 UTC | |
Re: Perl and Discipline - and Freedom
by biosysadmin (Deacon) on Aug 09, 2005 at 21:11 UTC |