Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Schwern used to have a great checklist online called the Perl Book Litmus Test. While rather unscientific, it was an easily taught test which manages to catch a frightening fraction of bad books. Since the site he had it on is now dead, hopefully he won't object to my posting it here. Just open the index and answer the following questions:
  • localtime Does it state that it returns the number of years since 1900? Does it mention that when used in scalar context it returns a nicely formated date?
  • srand Check how it uses srand(). Does it warn you to call it only once in a given program? (If srand is never mentioned, that's okay)
  • Number of elements in an array Does it say that an array will return its number of elements in scalar context, or does it use $num = $#array + 1;
  • flock Does it discuss and use flock instead of lockfiles? (ie. setting some .lock file instead of using flock()) Its okay if file locking is never discussed at all.
Grab a Perl book and try it. Wasn't that easy? It is a useful test, but too easy. It is perfectly possible to pass this test but still suck. However most bad books will fail it.

For a more involved discussion on how to tell good from bad I would recommend reading Choosing a Perl Book by Simon Cozens.


In reply to Re (tilly) 1: Reviewing bad books. by tilly
in thread Reviewing bad books. by gmax

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!
  • 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
  • Outside of code tags, you may need to use entities for some characters:
            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?
    Username:
    Password:

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

    How do I use this? | Other CB clients
    Other Users?
    Others making s'mores by the fire in the courtyard of the Monastery: (6)
    As of 2014-12-23 01:21 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?





      Results (133 votes), past polls