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

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Thanks again stvn,

You are too gracious, and too modest!

I see now exactly why builder was not doing what I needed.

Of course, if the attributes are not marked as 'lazy', then that insta +nce may not be built/initialized completely. My basic rule is that if + you want to use the value of another attribute in your 'default' or +'builder' then make that attribute 'lazy'.
Thanks so much for the clarification and help. I was uncomfortable using trigger for initialization although it served my immediate needs, and will switch to builder with the use of 'lazy'. Thanks for divining my needs.

My clients and I thank you for this very useful software. I just rewrote and cleaned up a module that was getting unwieldy. Moose does exaclty what good software should do; it allows me to work on higher order problems. And it makes for cleaner and more extensible software. It also allows for rapid development. I rewrote in a couple of mellow days what would have taken much longer and I have all the features that I need for rapid, reliable dev at my fingertips. Excellent work.

Also, thanks for the advice on overriding &new. Not an advantageous use of Moose.

One more question. Any advice on test driven development in Moose? Any preferred testing idioms? Any affordances or most optimal leveraging of Moose and testing idioms?

In reply to Re^4: Moose - nalia by doc_faustroll
in thread Moose - nalia by doc_faustroll

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

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others cooling their heels in the Monastery: (1)
    As of 2018-07-22 03:25 GMT
    Find Nodes?
      Voting Booth?
      It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

      Results (451 votes). Check out past polls.