in reply to Re^2: 20 most important Perl Best Practices
in thread 20 most important Perl Best Practices
Your list is nothing more than yet-another-arbitrary-and-capricious-ruleset that uses thin justifictions to imbibe your personal preferences with theocratic status. Yet another list that doesn't correspond with anyone elses arbitrary list. Another set of arbitrary rules that will confuse newbies and frustrate the experienced coming from other places where different arbitrary lists were in force.
There is only one definitive list -- it's called Perl.
You are second guessing the heralded and qualified language designer to come up with some subset of the defined language on the basis of what qualification?
Even where you agree with the language designer in one place -- lower-case and underscores -- you later contradict him -- and yourself -- with "only CamelCase". This is both capricious, and more damning, inconsistent.
Your rules appear to be aimed to favour restricting and emphasising the linguistic elements of the language, rather than the structure of the algorithm, which is the completely wrong thing to be doing. The language's syntax is already very constrained and well documented. Whether those completely new to programming, or those migrating in from other languages, learning Perl syntax is just a matter of exposure.
What all programmers should be doing when writing their code, is trying to capture the essence of the variable part of their programs -- the algorithms -- in as clear and concise manner as possible. And perl's full syntactic richness is expressly designed to allow that to be done.
By placing arbitrary restrictions on that syntactic richness, you do not make it easier to read the code, because the inevitable affect is to force the programmer to use more verbose code to capture the essence of the important part of the source code -- the algorithms.
With many of your proposed restrictions, you are effectively converting a 4GL to a 3GL with all the loss in productivity that implies.
See also Re: What is code readability? and follow-on discussion for specific counter example to some of your justifictions.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: 20 most important Perl Best Practices
by greengaroo (Hermit) on Aug 23, 2012 at 00:59 UTC | |
by eyepopslikeamosquito (Archbishop) on Aug 23, 2012 at 01:10 UTC | |
by BrowserUk (Patriarch) on Aug 23, 2012 at 01:17 UTC | |
by pemungkah (Priest) on Aug 26, 2012 at 21:03 UTC | |
by topher (Scribe) on Aug 30, 2012 at 16:16 UTC | |
by Anonymous Monk on Aug 27, 2012 at 00:12 UTC | |
by aaron_baugher (Curate) on Aug 27, 2012 at 02:16 UTC | |
by pemungkah (Priest) on Aug 30, 2012 at 23:46 UTC | |
| |
by BrowserUk (Patriarch) on Aug 26, 2012 at 22:04 UTC | |
by Ovid (Cardinal) on Aug 29, 2012 at 10:50 UTC | |
| |
by tinita (Parson) on Aug 29, 2012 at 11:56 UTC | |
| |
by davorg (Chancellor) on Aug 29, 2012 at 09:14 UTC | |
| |
by Aristotle (Chancellor) on Aug 29, 2012 at 09:55 UTC | |
| |
| |
by jffry (Hermit) on Aug 31, 2012 at 18:32 UTC | |
by BrowserUk (Patriarch) on Aug 31, 2012 at 18:53 UTC | |
by greengaroo (Hermit) on Aug 24, 2012 at 03:32 UTC | |
|
Re^4: 20 most important Perl Best Practices
by greengaroo (Hermit) on Sep 04, 2012 at 15:40 UTC | |
|
Re^4: 20 most important Perl Best Practices
by Anonymous Monk on Oct 19, 2017 at 19:36 UTC | |
by BrowserUk (Patriarch) on Oct 19, 2017 at 23:33 UTC | |
by Maelstrom (Beadle) on May 02, 2024 at 17:39 UTC | |
by marto (Cardinal) on May 02, 2024 at 18:05 UTC | |
by Anonymous Monk on May 02, 2024 at 18:18 UTC | |
by Maelstrom (Beadle) on May 09, 2024 at 23:59 UTC | |
|