Lot of good comments already. You can learn both ways. One is better though and will save you much misery. Remember, hacking and teaching are not the same discipline.

Every time you sit down to code, you are practicing. Just like with a physical task like martial arts or sports, if you practice wrongly (poor technique, no warm-ups, random effort) you might improve but it will be slow and you will hit limits of how much you can improve very quickly. Additionally, you will have ingrained things that will be harder to undo than if you'd just started correctly when you began.

I can think of no other site like this for any discipline where so many experienced, talented, patient professionals are willing to guide the uninitiated with personalized advice and tutorials that would cost thousands of dollars in the real world. Just visiting and reading here on a regular basis will save you hours if not years (and not just as a beginner; I've been using perl for 7 years now and I learn something almost every time I visit). Everyone writes bad code at first. How much bad code you end up writing is quite negotiable.


In reply to Re: Does bad code really teach you to write good code? by Your Mother
in thread Does bad code really teach you to write good code? by Gekitsuu

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.