The main reason for my posting VarStructor wasn't for others to analyze it... it should be considered a tool, not something to grade for legibility or anything else.

PerlMonks is a discussion community, not a publishing tool, so it's hard to declare that this kind of discussion is out of line.

It sounds like you accept that the internal design of your LinkStructor script is sub-optimal. (If you'd known the requirements up front, you would have done it differently.) I understand that you don't think it's worthwhile to rewrite the script to improve the design. (Refactoring advocates would argue that you would have been better off making the changes throughout the development process, but that ship has sailed.)

In that context, the VarStructor function is an interesting hack, as a one-off, to keep that script running. If your posts had included a disclaimer that explained this context, I believe the reaction would have been more positive than negative. (Ex, replacing "Alternative to Perl's reset function, with extra features." with "I used this trick to add functionality to an in-house application; rather than rewriting the code using structured design techniques, I had it review its own source code to find variable names.")

But without that caveat, you should expect that other monks will question the applicability of the code you're posting -- it's like showing up at a medical conference to demonstrate your new, patent-pending Hand2HeadStapler -- you've got to expect that people are going to ask why you would want to staple your hand to your head, and suggest that you find another way to approach the problem.


In reply to Re: Re: Re: Re: Re: Re: Re: VarStructor 1.0 by simonm
in thread VarStructor 1.0 by Wassercrats

Title:
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, details, 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, summary, 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.