Greetings all:

The first major project I developed I resisted the encouragement, of a far more seasoned coder who was contributing to that project, that we break out our work into multiple files with distinct functions. The result is a challenging to maintain 12k line script of which only 2-5k lines are actually serving us well, but that is another story. The line I ran on him at the time was that I wanted our work to be easy to install (which I thought meant putting everything in a single file).

Now that I've made a shift from trying to be a manager who thought he knew how to code, to being a coder learning his craft, I'm ready to read how some of the masters have done it.

The real world needs of my current project suggest the following organization:

MyModule MyModule::Config MyModule::DB MyModule::AdminFunctions MyModule::AdminFunctions::ConfigureThis MyModule::AdminFunctions::ConfigureThat MyModule::UserFunctions MyModule::UserFunctions::ThisTool MyModule::UserFunctions::ThatTool MyModule::WWW::Admin MyModule::WWW::Users
But I'd like to read some working code which folks feel is well organized so I can get a better sense of how inheritance works and how methods spread through a hierarchy of modules in a distributions are used by one another and accessed.

This is a request for folks to recommend what you believe to be __well__organized__ code, your own or that of others. Your recommendations are appreciated.

-- Hugh

if( $lal && $lol ) { $life++; }

In reply to Seeking Examples of Well Organized Code by hesco

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.