Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Can If-then conditions do ($a = $b = $c) type expressions?

by benwall (Initiate)
on Apr 26, 2002 at 04:49 UTC ( [id://162177]=note: print w/replies, xml ) Need Help??


in reply to Can If-then conditions do ($a = $b = $c) type expressions?

I think that the real question here is not how you do this, but why are you doing this... If you know that the "&&" operator works, then why aren't you using it!!!

The hallmark of good code is not that is it brilliant or different than anyone elses, it is exactly the opposite. Good code is code that can be understood by the beginning programmer, and every beginning programmer is taught to use the && operator in this situation.. It is there because it works for exactly this, and it is probably way faster than using "grep" or any other mathematical thing that you come up with if(($b == $a) == $c/$a) or some such thing...!!! ARGH.. dont be different CONFORM!!!!!

lol.. some of that last stuff is joking but really please wrote code that is easy to understand...

  • Comment on Re: Can If-then conditions do ($a = $b = $c) type expressions?

Replies are listed 'Best First'.
Re: Re: Can If-then conditions do ($a = $b = $c) type expressions?
by novitiate (Scribe) on Apr 26, 2002 at 06:52 UTC
    Whence the notion that good code is "code that a beginner could understand". Granted, this example may lend itself to this argument; excellent code is judged on a number of criteria, but not every beginner can recognize, or make sense of,the genius of some things. Sometimes, we
    mistake simple for easy. The simplest methods/ways/equations might be the best
    99% of the time; but we usually only recognize their genius and make sense of them after much contemplation.

    humbly,
    novitiate

    "...goodnight you princes of main(e)"  --The Cider House Rules

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-24 18:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found