Gotta agree with you here. I hate seeing people throw away coding standards and good coding practices because they thing that it's cool or should be done in those obscure, "show-off" ways. Personally, when I see someone show me a piece of code that I have to take a minute to understand just one line of code, I laugh at them and make them feel stupid. Actually, we did that at my company just last week. We're 80% perl, and use it in ways that many people would think that it can't do... but can do just fine.
The other new guy (I'm also new there) wrote a Perl program. He's new to Perl (I am not). Well, there was some obscure nested tertiary operator with regex's in it. Aparently something he actually got out of CookBook. Well, first we told him to only use CookBook for ideas, not syntax... then we passed the code around and let everyone enjoy a good laugh. I don't think he'll make the mistake of writing code that isn't clear again... especially not a direct copy from the Perl CookBook (good book, bad habits taught though). It's like some people think there's actually a performance gain from writing obscure code, when in reality that's not necessarily true. I mean, if you REALLY need a performance gain, write that portion in C, or some other language that's going to be faster. Otherwise, leave it clear to read, and cut down your maintenance costs. Just my rants... :) Cheers, -Alex On 13 Apr 2002 10:42:10 -0700, Randal L. Schwartz wrote: > Pk> s//pop/e;print^s/./hex($`%10+$&)%15/eg&&do$0 > > <Bigger Rant> > No No NO. I wish the idiots who keep doing Perl golf and obfuPerl would > realize that *those activities* help perpetuate Perl's "write-only" > status to the rest of the community. > > Pk, you do *NOT* need to understand that code. I hope you *NEVER* > understand it. It was written by showoff idiots. > > You are an insider when you are able to get your job done with Perl and > help others do the same. You are *not* an outsider because you do not > know how to *abuse* the language. That line of code is language abuse! > > Just say *no* to Perl Golf and ObfuPerl and JAPHs. Please! > > </Bigger Rant> > > {sigh} > > Just another guy who is sorry he started the whole JAPH thing, > ================================================== Email: [EMAIL PROTECTED] Website: http://www.beardeddragon.org/ ==================================================