in reply to CPAN's perltidy to the rescue!
I guess I'm the only one who has had the joy of significant headaches from over-use of perltidy. But I'm even more shocked at how popular it appears to be to subject yourself to mindless enforcers of standards. I feel like Will Smith in the I Robot movie.
I can certainly see the value in using perltidy for one-time conversion of some code from "their ugly (extreme) style" to "something much better".
But I just don't have a huge problem dealing with code written using any of a large number of reasonable, popular, similar, conservative styles.
And I much prefer allowing programmers to innovate and come up with even better ways of coding than happen to be already coded into perltidy. Setting your coding standards in stone is one of the things that I find is the wrong way to do coding standards. Nobody learns. Nobody grows.
I also actually have to deal with merges and code reviews. And I'm pretty sure perltidy can't reformat a diff or a merge conflict to the personal style of whoever, especially integrated into my review tool or any of my merge tools.
If perltidy were fully powerful and error-free, then I could almost tolerate using it as a must-always-be-used translation layer. For example, if we were talking about converting between utf-8 and utf-16, then converting back and forth all of the time, even without review by a human, could be a reasonable work flow.
But I have innovated coding constructs and seen others do it where perltidy just couldn't correctly cope with the result. And I've seen people using perltidy and deciding to just "never do $technique because that sucks with perltidy". Heck, I've even developed just innovations in indentation that finally made a huge improvement in clarity that perltidy can't help but just destroy.
If you can't deal with some 'else's or braces being cuddled and some not to the point of endlessly arguing and trying to enforce some "one true style", then I think you should work on your personal problems instead of looking for a tool.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CPAN's perltidy to the rescue! (not for 'standards')
by tobyink (Canon) on Jul 14, 2012 at 12:20 UTC | |
by mr.nick (Chaplain) on Aug 27, 2012 at 19:32 UTC | |
|
Re^2: CPAN's perltidy to the rescue! (not for 'standards')
by ruzam (Curate) on Jul 14, 2012 at 03:13 UTC | |
by tye (Sage) on Jul 14, 2012 at 04:56 UTC | |
by ruzam (Curate) on Jul 14, 2012 at 06:41 UTC | |
by tye (Sage) on Jul 14, 2012 at 07:19 UTC | |
by Anonymous Monk on Jul 14, 2012 at 12:54 UTC | |
by tye (Sage) on Jul 14, 2012 at 17:11 UTC | |
|
Re^2: CPAN's perltidy to the rescue! (not for 'standards')
by topher (Scribe) on Jul 15, 2012 at 05:50 UTC |