Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: New Perl user looking for code to study

by matthewb (Curate)
on Apr 23, 2005 at 19:24 UTC ( #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 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
Node Status?
node history
Node Type: note [id://450776]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2020-09-25 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (137 votes). Check out past polls.

    Notices?