Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

You've definitely hit on the truth -- you just can't learn how to write decent code (or do much of anything else, for that matter) by reading books, man pages, or websites: you have to do. I'm not sure that exercises are the way to go, though. I learn a lot better if I have some real task to do, something more motivating than a contrived exercise.

Instead of (or as well as: since people learn in different ways, the more resources PM has the better) exercises, how about a list of common, useful tasks that perl's really good for? We could provide links to useful information (or at least pointers to the right man pages), some examples, and so on: the idea wouldn't be to get people to solve the problems presented, but to spark the "hey, wouldn't it be cool if..." train of thought, and give enough help that they wouldn't run into brick walls.

Some stuff that I can think of, off the top of my head:

  • log parsing
  • web page automation
  • document translation
This would also be a great way to introduce people to CPAN, and especially to idiomatic ways of doing things in Perl. (My most common learning experience, especially with Perl, is to do something the first way that comes to mind, then a few weeks later find the right idiom for the job -- and suddenly my code is half as big, twice as effective, and four times as readable. And short of reading good code, it's difficult to find idioms easily.)

--
:wq

In reply to Re: The beauty of self-help by FoxtrotUniform
in thread The beauty of self-help by Stormr

Title:
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 How to display code and escape characters are good places to start.
Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-03-28 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found