This is just a brain dump so many of the thoughts have not been completely thought through although it might be interesting for the everyone here.

In this node, An Anonymous Monk wants to know about how to analyze perl code for mantainability and usability. Take this idea but divorce it from its computer programming context. What is a computer program? It is text that instructs a computer to do things. As text, it is suceptable to textual analysis. The goal of this analysis has nothing to do with what you are instructing the computer to do but with what and how the author was thinking about their programming. This not only comes from looking closely at the variable and package names but also the overall structure of the program (i.e. OO vs. procedural, etc. etc.). For perl, this also includes trying to decern the reasons behind the use of different build-in and user defined functions. For other programming lanugages, this might be a bit harder since they are not as flexible as perl (I am thinking here of programming langauges also in the C/C++ family like java.)

I think this type of reflection upon a program could lead to some interesting insights on the thought processes that go into programming and the people who ultimately do the actual programming. In the near future, I may download some code to demonstrate how this could be done however this is a good point to start some discussion about this topic. Oh yes, I do understand that this is a tad bit of academic navel gazing.


In reply to Textual Analysis and Perl by cyocum

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.