hello fellow devotees,

i have a minor crisis in my perl programming career.

i am in a situation where i am required to write code such that a beginner who has never done any programming before can understand exactly what it does.

by this point you may be thinking something along the lines of 'good code documents itself' etc..., but what it means is, in terms of this requirement, not using 'complicated' data stuctures, which have defined as anything more complicated than a list of lists. not using references, not using any OO, not using any special variables (other than $_ or @_) and not using any other 'esoteric' perl (apparently, recursion is esoteric perl...). the list goes on.

there may be one way to do it, but there is also a good way and a bad way.further, i can't use strict (it'll cause countless problems with legacy code) and -w is a no-no too. (remember, these are things imposed on me)

i have studied my perl hard, and continue to do so, but this is making me flag. why learn what you can't apply (although, i do love learning for the sake of learning)?

my point, if there is one, is how do you cope when your team lead and boss know less perl than you, they can't write good code, and marginalise you for knowing more than they do?

i love perl. the joy i get from it is immeasurable. if i conform to these requirements am i still programming perl?


In reply to to perl or not to perl by utopian

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.