Re: Regex on OS X
Re: Regex on OS X
- Subject: Re: Regex on OS X
- From: "Arthur J. Knapp" <email@hidden>
- Date: Wed, 02 Oct 2002 15:44:06 -0400
>
Subject: Re: Regex on OS X
>
From: email@hidden (Randal L. Schwartz)
>
Date: 02 Oct 2002 09:38:37 -0700
>
>> for(reverse(1..100)){$s=($_==1)? '':'s';print"$_ bottle$s of beer on the
>
>> wall,\n";
>
>> print"$_ bottle$s of beer,\nTake one down, pass it around,\n";
>
>> $_--;$s=($_==1)?'':'s';print"$_ bottle$s of beer on the
>
>> wall\n\n";}print'*burp*';
>
Arthur> And there is certainly no lack of evidence for Perl's difficult
>
Arthur> learning curve...
>
Darnit. Darnit. Why do we *within* the Perl community keep doing
>
this to ourselves??
>
We show off a cool mini-keystroke-hack, and that gets propogated,
>
and people think that is *typical* Perl.
>
Hear this. It's not. That code above would be erased from a
>
production program, and I'd probably fire the guy who wrote it.
My last comment was clearly a "snippy" one, and I apologize. I
encounter *typical* Perl all day long. I've seen good Perl, indeed,
I've even seen Perl that was so clear, mantainable, and pretty that
I almost cried. ;-)
>
It'd be like basing your C knowledge entirely on the annual obfuscated
>
C contest. It's not a fair way to judge the language.
The emphasis of my assertion was not that Perl can be written in an
obfuscated way and is therefore bad, (I write both JavaScripts and
AppleScripts that give other people headaches). I simply believe that,
comparitively speaking, Perl is at the far left of the bell curve for
a new scripter's ease of learning.
>
What's important is how much you can express consistently based on
>
your time invested and frequency of use. Along that point, I never
>
recommend Perl for a person who will only be coding for an hour or
>
less a week: that's not Perl's market. Oddly enough, I think
>
applescript falls into that same sphere. Harder than Visual Basic,
>
but not as hard as C++ or Java.
OK, I think I can concede most of what you have said here. :)
P.S. Give me a day or two, and I'll show you an obfuscated AppleScript
version of "99 bottles" that will have your head spinning... ;-)
{ Arthur J. Knapp, of <
http://www.STELLARViSIONs.com>
a r t h u r @ s t e l l a r v i s i o n s . c o m
}
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.