Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

RE: Missing the point.

by ahunter (Monk)
on Jul 14, 2000 at 15:35 UTC ( #22542=note: print w/ replies, xml ) Need Help??


in reply to Missing the point.
in thread aoxomoxoa

Well, obfuscated code is meant to be a showcase, and it's far more impressive if your code works with warnings and strict. Plus, I'd still do it in two lines:

$_=$ARGV[0]||die;my$x="$_ is ";$x.="not "if($_ ne join"",reverse split//);print $x," a palindrome";
(If the errors were helpful, it wouldn't be obfuscated, now, would it?)

Andrew.


Comment on RE: Missing the point.
Download Code
RE: RE: Missing the point.
by frankus (Priest) on Jul 17, 2000 at 16:00 UTC
    Errors? Warnings!!!!

    <shrug type=gallic>If you idea of obfuscation and mine differ, I'm sorry.</shrug>
    I spent 4 years in a comp sci cohort with pedants that would 
    feel that they had made a valid point if they asked you to run a 
    piece of code and input the wrong variable type (in C) and it crash.
    The fact that by removing the error checking meant the whole code 
    fitted one over-head, escaped them. Perhaps I have the same weary mindset 
    to these people and I applied it to you. My apologies if I have mistakenly grouped you with the nerds.
    
    In this case the code doesn't work with strict or warn, and frankly a null word is 
    the same reversed, depends on your identification of a palindrome.
    
    I like your changes. It is not too removed from what I did, except 
    that you've used interpolation. I was hoping for a response in regex.
    
    I will look at your code and see if I can reduce it more, just for fun.
    Thankyou.
    
    :-)
    
    Frankus.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://22542]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (13)
As of 2014-12-17 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (34 votes), past polls