in reply to Re^4: What's your programming style?
in thread What's your programming style?
I agree that embedding POD in subs is somewhat jarring (ugly) and sympathize with the desire to wear one hat at a time (because I too love to code, but hate writing documentation ;). I embed POD in subs to force myself to keep the code and docs in sync. Since they are adjacent to each other this chore becomes very convenient. I used to code first and document later but found it annoying having to decipher non-obvious code all over again resulting in vague documentation. I tend to understand the code perfectly when it's being written and find that to be the perfect time to write accurate documentation. Another benefit to this technique allows one to construct a built-in help system that can display the POD of a specific sub with an option to also dump the code for easy review.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: What's your programming style?
by Your Mother (Archbishop) on Dec 13, 2018 at 19:33 UTC |