in reply to thoughts on perl language
I think it's interesting you compare Perl to English and say that both are beautiful. Many people would say they are each rather ugly. English is inconsistent. Most languages have a few irregular verbs; English is jam-packed with them. And idioms that make almost no sense when read literally are employed liberally. (Who packs a language with jam after all?)
Robert Pirzig (my favourite modern philosopher), in Zen and the Art of Motorcycle Maintenance speaks of a Romantic/Classical divide with regards to the perception of Quality. An example he gives is using a small circle of tin cut from a beer can as a shim when repairing a friend's motorcycle. His friend, considering the surface appearance of the shim, is aghast that Pirzig is using an old piece of rubbish to repair an expensive piece of engineering. Pirzig on the other hand looks at the underlying form of the shim; its weight, thickness, strength, and considers it an elegant solution.
To me, it seems both English and Perl are low quality languages when viewed from the Romantic angle, and only their surface appearance is considered, but high quality languages from the Classical angle, when their underlying form is taken into account.
Perl features like prototypes, import subs, globs, compile-time code execution, stack inspection and so forth, combine to create a language which is internally extensible. You can effectively define new Perl syntax from within Perl. (English also tends to be very tolerant of extendawording.) These features, if wielded with experience can combine to produce very elegant and concise code.
So yes, from an insider's point of view, Perl can be a very elegant way to get the job done. But we should also understand why outsiders, looking at only the surface appearance of Perl code, often consider it to be ugly.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: thoughts on perl language
by MidLifeXis (Monsignor) on Nov 09, 2012 at 13:39 UTC | |
Re^2: thoughts on perl language
by Jenda (Abbot) on Nov 10, 2012 at 10:49 UTC | |
by tobyink (Canon) on Nov 10, 2012 at 23:18 UTC | |
by Jenda (Abbot) on Nov 11, 2012 at 15:53 UTC | |
by tobyink (Canon) on Nov 11, 2012 at 20:16 UTC | |
by Anonymous Monk on Nov 11, 2012 at 15:59 UTC | |
by LanX (Saint) on Dec 13, 2012 at 10:35 UTC | |
by fullermd (Priest) on Dec 14, 2012 at 04:22 UTC | |
by Your Mother (Archbishop) on Aug 10, 2015 at 17:05 UTC |