Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: New Perl user looking for code to study

by matthewb (Curate)
on Apr 23, 2005 at 19:24 UTC ( [id://450776]=note: print w/replies, xml ) Need Help??


in reply to New Perl user looking for code to study

You're looking for CPAN

Happily, however, the journey is ongoing. As you come to understand more of what you encounter the urge to read code will become stronger and you'll find yourself skipping to the source before you read the documentation.

Note that it can be just as useful to read bad code as it is to read good, what's important is to keep interested in self-improvement.

There are loads of examples of funky Perl code out there but if you're looking for real-world good stuff, here are a couple of favourites:

  • When I browse the source for Template Toolkit I am always in awe, thinking “man, that is so much more organised than my code!”.
  • Newcomer CGI::Prototype is almost enough to make me give up coding altogether in how infuriatingly sensible it is (instead, I decided to use it as the basis for my latest project).

And look at the whizz-kids here. Perlmonks isn't like other forums1, there are regular contributions from some of the best minds in the business that frequently question how [id://matthewb|this] little contractor writes his code.


[1]. Kidding about that link ;)


MB
  • Comment on Re: New Perl user looking for code to study

Replies are listed 'Best First'.
Re^2: New Perl user looking for code to study
by merlyn (Sage) on Apr 24, 2005 at 06:12 UTC
    Newcomer CGI::Prototype is almost enough to make me give up coding altogether in how infuriatingly sensible it is
    {blush}

    I suppose the real thing that drives my coding for stuff like that is the sensible "Smalltalk Best Practice Patterns" by Kent Beck, an excellent book for basic object oriented programming, even though it is focused on Smalltalk. (And supports my idea that you really can't say you "do OO" until you've practiced in Smalltalk at least for a short while.)

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://450776]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-19 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found