NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Convincing (Score:1)
I've never added the additional newlines between functions, but you've convinced me to experiment with it for a while.
I like your "why" (Score:1)
Re: (Score:1)
Re: (Score:1)
Re: (Score:1)
I like your way though and may try that. It may be easier to read it "blocks".
Also,,, (Score:1)
vim (Score:2)
Strictly speaking… (Score:1)
… POD commands are supposed to go in a paragraph of their own, ie. you are supposed to have a blank line above and below every
=fooline.Re: (Score:2)
Is this for technical or conventional reasons? I do recall that there were some older POD parsers that had issues with there not being a newline after the final =cut (yeah, that was real fun to debug), but I don't think that such an artifact is a good reason to disregard jplindstrom's proposal.
Re: (Score:1)
That’s how POD is specified [perl.org]. Interestingly, I see now that
=cutis exempt from this rule, at least insofar as it doesn’t have to be followed by a blank line.(This rule that POD is broken down paragraph-wise for processing is why Perl 5 POD is so terribly verbose for marking up lists, which is why I have stopped using POD as my personal document markup of choice and soon afterwards switched to Markdown, btw. I hear POD6 is going to do this much better.)
Formatting (Score:2)
Having this kind of discussion can easily become very unproductive and stupid if you just spew opinions.
Well, this part of the post I agree with 100% :)
At work, I've already told jplindstrom and others that I don't care what the source code formatting rules are, so long as they're consistent and automated. There's no way in hell I want to enforce them manually, but even if I don't like them, I'll follow them since most (reasonable) programmers have at least semi-coherent styles and when people start
Re: (Score:1)
Heh. I chose mine in part because I can cajole perltidy into spitting it out… alas, not entirely:
I have a rule that a comma-separated list is either all on one line, or it gets bracketed/parenthesised and written one item per line. (Fat commas do not count.) Perltidy does not help with this.
The other problem is not due to perltidy, but because I don’t know how to deal with it: line-wrapping.
I have never found a satisfactory rule for how to break lines to hard-wrap them at a specific col
Re: (Score:1)
Re: (Score:1)
But sometimes you can get two out of two.
proximity (Score:1)
the idea of leveraging natural language.
The difficult thing is that though the
relationship between statements is like the
relationship between sentences in written text,
the relationship between subs is not like the
relationship beween paragraphs. A program is
differently structured than an essay, or other
written work.
Some higher order graphic organizers become
necessary.