-
Does the code use a lot of attributes with getters and setters?
-
Are you concerned that someone might break your code by inserting wrong values and you have to check for that?
-
Is it painful to add or modify some of the code?
-
Are you doing a lot of work manually that Moose could do for you?
-
Do you have multiple classes that need to communicate with each other?
-
Is there a lot of boilerplate-code that's there to glue the classes / methods / attributes together?
-
Would you benefit from things like Roles / Delegation / or any of the MooseX modules?
In my opinion these are some of the questions you should ask yourself. I don't think there's any general rule at which point you should move to Moose. In my opinion it's a stable OO system that (nearly) only uses features you can also find in other OO languages (so no magic introduction of new things). I prefer writing code using it, but as can easily be seen in this thread and many others, there are of course also other opinions on that matter.
-
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.
|