Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
So you want to become a better programmer? Perhaps you'd like to give back to the community? You may not feel worthy, you may not have a brilliant module idea, but you still would like to do something. If only you knew where and how to start...

Run tests. Write tests. It's that simple.

Seriously. Programmers like tests about as much as documentation, but they can be fun and just as challenging. Think of it like a game -- how much can you test? Can you test something thought "untestable"? Can you get 100% coverage of all the paths?

Start by looking at Test::Simple. It comes with a document called Test::Tutorial. The basics are really very simple. Either something is okay or it isn't.

From there, pick a module you like. Start with something small, just one function. Write a few tests that prove it works.

If you're exceptionally lucky, you may discover a bug. Write a test that proves it's a bug, then write a patch to fix it. All of a sudden, you're not just a hero for testing, but you're a superhero.

If you're capable of using modules, you're capable of writing tests. It's that easy. It's that valuable. Hop to it.

Update: fixed link per converter's suggestion.

In reply to How You (Yes You!) Can Get Involved by chromatic

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2022-09-24 17:12 GMT
Find Nodes?
    Voting Booth?
    I prefer my indexes to start at:

    Results (115 votes). Check out past polls.