note
Anonymous Monk
<p>I have two .perltidyrc files.
<p>One contains just this line:
<code>
-pbp
</code>
The other contains various heretical statements such as
<code>-i=3 # Indent level is 3 cols
-et=3 # Use tabs for indents because I'm such a sociopath
-ci=3 # Continuation indent is 3 cols
-icb # Make closing braces align with the body of their block
</code>
<p>As I'm editing code, I'll run perltidy over it with <i>my</i> preference for formatting. Before checking code back in, I'll run perltidy with the <i>Perl Best Practices</i> formatting, run <code>./Build test</code> and commit.
<p>I, too, draw a distinction between "indenting" and "alignment". I, too, program in languages other than Perl (such as Ruby, Python and PHP).
<p>I also edit using a proportional font (DejaVu Sans is my current favourite), which renders any attempts at "alignment" futile. I cannot stand the practice of sticking in extra spaces to make the '=' symbols line up.
<p>The perltidy tool lets me slip in under the radar of contemporary society.
847496
847525
1