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

Re^3: Python OO v Moose

by tobyink (Abbot)
on Feb 06, 2013 at 13:09 UTC ( #1017417=note: print w/ replies, xml ) Need Help??

in reply to Re^2: Python OO v Moose
in thread Python OO v Moose

I used to intersperse my pod and code, but eventually grew to dislike that, so now place all my pod at the end of the file.

Yes, there's something to be said for keeping documentation and code close together, but having them in the same file is close enough for me. Putting all the pod at the end I think encourages me to write documentation that flows better as a document - making the pod less a list of methods, and more a how-to.

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Comment on Re^3: Python OO v Moose

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2015-10-04 13:31 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (102 votes), past polls