Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I am new to Perl and the monastery, but I want to extend a heartfelt thanks to all the monks that have helped and guided me. What I am about to write is meant for others like myself (newbies), but I believe it could benefit everyone at one point or another.

As you learn a language, what you are learning is the vocabulary (nouns, verbs, modifiers, etc) and the syntax. You are not learning how to "program". Sure, you may learn to emulate how someone else programs by looking at their code or by reading a book, but you are still just taking the vocabulary and matching another's template. For some, the story ends here, for others the story is just beginning....

When you decide to venture out on your own, you will be truly like a child experimenting with language for the first time. You will make minor mistakes at times, at other times you will seem to be babbling to the adults. Just as the naive child will touch the hot stove that the adult warned them not to, you will try and re-invent the wheel. If we are lucky, we do not stay children forever.

I have always been elated when I figured out code that solved my problem. Some time in the future, I discover a new technique that would have reduced the number of iterations in the loop by a thousand fold and I feel like a fool. IMHO, it is time to "RE"-code the original. In doing so, you will assimilate the new technique so that you don't make the mistake again. Most likely, you will reduce the size of the original and make it run faster. Almost definately, you will learn more new techniques in the process.

What is the single hardest about doing this? If you write code as one long run-on sentence and not in properly formed paragraphs and sentences. It is easy to correct English papers that have headings, sub-headings, paragraphs, sentences, etc. Each piece stands by itself and can usually be changed without having to change the entire document.

  • Learn the use of subs.
  • Learn proper indentation.
  • Listen to the adults, but don't be afraid to experiment.
  • Remember that every time someone gives you an answer, if you do not understand it, you are just learning how someone else programs that solution. Make sure you fully Grok it.


    In reply to Value of "RE"-coding for the newbie by Limbic~Region

    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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    [shmem]: anyways, do as is your wont. I won't fight western hypocresy anymore - for today. Let's call that a day, and done.
    [erix]: yeah, scanning pre-loaded. I wouldn't have it any other way. As I say, my attention is a rare commodity, jealously guarded.
    [erix]: ok, ok. happy pipe-dreams :P
    [shmem]: have a good time inside your information bubble.
    [erix]: perhaps we can have common hindsight at these thing in a few years time

    How do I use this? | Other CB clients
    Other Users?
    Others pondering the Monastery: (6)
    As of 2018-03-19 21:14 GMT
    Find Nodes?
      Voting Booth?
      When I think of a mole I think of:

      Results (246 votes). Check out past polls.