I don't see using a different name for something as a loss or gain of skill. I scarcely ever mentally verbalize $_ and such, so having a precise and formal name in front of me would seem to be an asset.
But the use English practice continued to seem artificial to me and I could not formulate a reason. What made it curious is that I don't use puncish variables much--it was a small issue: why do I resist using English? but it persisted.
I'm pretty comfortable around these: @_, $_, $/, $., $|, $/, $0, $@, and $,. And I think I'd usually recognize: $`, $', $!, $$, $\, and $^O. There will need to be powerful contextual hints for me to know, on sight, most of the others.
Well, I eventually clued to why puncish is beautiful. And it was all about how puncish vars help a coder who is not well versed with them. When I read $LIST_SEPARATOR, I may be confused as to its derivation; perhaps there is some parsing or data packing happening in user code. When I see the equivalent $", I will know that perldoc perlvar has the definition. The beauty of puncish variables is in the ease with which they can be recognized as perlvars. There is an elegance to the namespace. When I do need to know what $< is, I'll know right where to look.
Be well,
rir
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: An Apology for Puncish
by BrowserUk (Patriarch) on Jan 27, 2009 at 22:16 UTC | |
Re: An Apology for Puncish
by moritz (Cardinal) on Jan 27, 2009 at 20:36 UTC | |
by DStaal (Chaplain) on Jan 27, 2009 at 21:21 UTC | |
by rir (Vicar) on Jan 27, 2009 at 21:43 UTC | |
by moritz (Cardinal) on Jan 27, 2009 at 21:30 UTC | |
by Your Mother (Archbishop) on Jan 27, 2009 at 21:25 UTC | |
Re: An Apology for Puncish
by Erez (Priest) on Jan 28, 2009 at 08:58 UTC | |
by rir (Vicar) on Jan 28, 2009 at 15:08 UTC | |
Re: An Apology for Puncish
by Mutant (Priest) on Jan 29, 2009 at 23:26 UTC | |
Re: An Apology for Puncish
by talexb (Chancellor) on Jan 28, 2009 at 18:03 UTC | |
by rir (Vicar) on Jan 28, 2009 at 19:24 UTC | |
by BrowserUk (Patriarch) on Jan 28, 2009 at 22:12 UTC |