Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Overloading by Example

by misc (Pilgrim)
on Oct 12, 2007 at 08:16 UTC ( #644406=note: print w/replies, xml ) Need Help??


in reply to Overloading by Example

++

I'm also relying on perlmonks in order to find examples, which are commented, corrected,..
However, having these examples in the docs would be a big advantage, finally the docs should be there for not having the need of any further documentation sources.

I like the approach of some module authors, who create a examples subdir in their module distribution. (Although I always have to digg into my ~/.cpan/..)

That's how I try to get familiar with new modules (and also programming languages):
  • Separate the problem to solve of the rest of the program
  • Write a small script
  • Try to get examples, copy them into the script, replace the names, extend the examples
  • Play around with the script, until I've got a good feeling/the script does what it's supposed to do...

Although that's sort of copy and paste programming, I'm able to get familiar with new modules quite fast this way.
I'd think the important point is the playing with the script..

I should also remark that I've got some directories which contain such small scripts.
This way I'm able to remember and reuse solutions I already figured out.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://644406]
help
Chatterbox?
[karlgoethebier]: marioroy ;Men need a challenge
Lady_Aleena remembers winning dodgeball and wonders why parents who played it will not let their kids play it.
[marioroy]: Disciplus My wife and I went on vacation. At work, I was stuck polling SNMP from 20 million devices. It would hang at 80,000. On the mist boat, hear a voice to enable grace in the design that 10x and more performance awaits.
[Lady_Aleena]: Women need challenges too karlgoethebier. 8)
[marioroy]: s/hear/heard/
[karlgoethebier]: Discipulus: No. See https://en. wikipedia.org/ wiki/Tribe_( Native_American)
[karlgoethebier]: They took Unix from some aliens
[marioroy]: Perl is so powerful that it can poll 40 metrics from 20 million devices in 40 minutes using 4 nodes only.
[karlgoethebier]: http://www. uncoveror.com/ aliens.htm
[Lady_Aleena]: marioroy, I can't decide whether or not to move my RolePlaying:: Random:: modules to just Random::. I'm not as sophisticated as most here.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2017-05-29 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?