Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^5: if statement confusion

by apotheon (Deacon)
on Jun 15, 2012 at 18:09 UTC ( [id://976474]=note: print w/replies, xml ) Need Help??


in reply to Re^4: if statement confusion
in thread if statement confusion

My point was not to suggest that life is fair, or that one should always take contracts at face value. It was to point out that the preceding person's point (while poorly presented) was about the fact that the guy writing the code should try to make the code clear. Your analogy to contractual law is looking at the wrong side of the transaction, talking about the behavior of the reader rather than that of the writer.

Obviously, code should be correct, first and foremost -- but within that constraint, it should also be as clear as reasonably possible. There's no necessity to limit oneself to a simplistic subset of a language to achieve that (and I agree with the entire paragraph in which you mentioned opposition to that notion), in the general case, and I even agree that in this case it makes sense to use a clarified and correct ternary operator, but I disagree with your approach of disputing the statement that one should strive to write clear code.

I also think you're now manufacturing disagreement with me where it does not actually exist, when denigrating my character (apparently on the basis of the fact that you're feeling defensive).

In the end, the lawyer analogy is a poor one for this situation, no matter what point you're trying to make. The motives, incentives, and circumstances surrounding contracts and software applications are simply too different, and I should have avoided using your analogy to try to make my point. I also should have said that I thought you were creating disagreement where none essentially existed, rather than a problem. Here we see that clarity in English is important, just as it is in Perl.

print substr("Just another Perl hacker", 0, -2);
- apotheon
Licensed OWL by Chad Perrin

Replies are listed 'Best First'.
Re^6: if statement confusion
by BrowserUk (Patriarch) on Jun 15, 2012 at 18:38 UTC

    So basically, you didn't join this thread in support of sundialsvc4's contention; nor even in support of my counter argument; but simply for the sake of having an argument.

    Discussion ends.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?

      Incorrect. I joined to point out that the specific point you decided to address with disagreement was something with which you probably wouldn't actually disagree, if it were better presented.

      What I was not joining to do is solicit insults. Thanks anyway.

      print substr("Just another Perl hacker", 0, -2);
      - apotheon
      Licensed OWL by Chad Perrin

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-03-29 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found