Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I'm not banishing unless from Perl. But I have a collection of 'best practices' for writing highly maintainable code and not using unless is one of those.

I never had that problem.

And I said that my experience is that people won't "get it" if they haven't seen it. You don't have to try to learn from my experience of having done this and having seen other people do it several times. I didn't see the problem with unless until... I personally saw the problem with unless. (Well, I, like many of us, quickly saw that unless should be avoided in many situations; but I didn't initially see the problem with using it with very simple expressions.) The problem is subtle but the effect is maddening.

No, it does not. That's an undue generalization.

You dropped my smiley. Unwad your panties.

Subtleties in the english language regarding 'unless' are irrelevant and must not be stressed to daemonize it's use. After all, we're programming perl, not writing english statements.

I wasn't the one who brought the English language into the argument. The English language was used to justify the use of unless in Perl and I countered that argument. You can't banish the use of the English language in an argument about a programming language whose keywords are mostly English words. Besides, the problem with unless have much to do with the use of "unless" in English. Really. So you can tell me that I "must not" make my argument and thus demonstrate that you didn't understand my argument, but I will continue to try to express this difficult-to-express point whether you think my methods should be banned or not. I explained why it is relevent. You can declare that "it is irrelevent" but you'll have to back up such a declaration with more than "we aren't writing English statements". My argument never hinged on being confused that I thought we were writing English statements. My argument is about the word "unless" and subtle ways that it impacts comprehension (by English-speaking programmers) of code that uses that word.

You must not use emotionally charged words like "daemonize" to mischaracterize my educating people about my experiences and attempting to explain my best practices.

There's no count of those which never got burned by using 'unless', and which are quite comfortable using it

I counted as one of those. Now I know better. The people I've seen burned by this were quite surprised when it happened. It took a while to even realize that there was a pattern to this. I don't think that there are two types of people in the world, those who understand unless and have no problem using it and those who have difficulty understanding it. It isn't even in the same ballpark as rocket surgery to understand that, in Perl, "unless" just means "if not".

Anyway, in case you didn't notice, I got a chuckle out you responding to my use of "shouldn't" (in one sentence with a smiley attached) with declarations that I was trying to "banish" and then you using phrases like "you may not" and "must not". I forbid you take this so seriously, henceforth. q-:

- tye        


In reply to Re^5: Regex Or Die! (less) by tye
in thread Regex Or Die! by pileofrogs

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found