Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

comment on

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

Assuming you aren't writing all of your separate setter/getters manually, which means you're doing some of the typical method generation or AUTOLOAD monkeying, then the separate setter/getters don't buy you a whole lot. I concede that they can make mistakes apparent a little sooner. It's not at all hard to write a unified setter in such a fashion that it blows up just as quickly, though — actually it's trivial enough that I'll bet money on getting it right the first time. Mostly because it's not a point I needed to be made aware of either; I already do that all the time.

If you want me to ignore your chainable mutators, allow me to have a unified setter and I gleefully shall. :-)

If you're writing code that uses (rather than provides) mutator chaining though, and I'm going to be maintaining it later, then I shall keep arguing. My experience so far has been frustrating enough, I'd really rather avoid more of that. :-(

Makeshifts last the longest.


In reply to Re^4: Mutator chaining considered harmful by Aristotle
in thread Mutator chaining considered harmful by Aristotle

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 sharing their wisdom with the Monastery: (6)
As of 2024-03-28 22:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found