I think everybody should try to identify and learn different code structures. However, in some cases you just can't use these all of the time. For example, at my last job, a college workstudy position, it's expected that the person who takes the job will have taken a few classes in Java, and that's all that can really be expected about their experience. In light of this, I often found myself programming in what I've heard referred to as "programming perl like programming c", or something like that. More relevant to my situation, programming perl like programming java. For most of the stuff I did, it probably could have been done better with a map, or a trailing for, or even something like a Schwarzian Transform, but I just didn't feel right using something like that, because I know that most of the students that will follow me won't really be too perl saavy. I should say I made this assumption by looking at the people who came before me, because their code looked alot like they only knew Java (but hey, maybe they just thought like I did).

I guess that's just an example of sometimes being bound to a certain structure, even if you want to expand more!

-Bryan


In reply to Re: Code Structures by mrborisguy
in thread Code Structures by artist

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.