tag:blogger.com,1999:blog-9039750571207949687.post2407020979579013555..comments2016-11-20T14:05:37.960+01:00Comments on Perl, embedded, and some odd bits: Why I use Perltidy, or Why coding style mattersUnknownnoreply@blogger.comBlogger9125tag:blogger.com,1999:blog-9039750571207949687.post-88217460341012729192011-02-15T22:22:21.248+01:002011-02-15T22:22:21.248+01:00@chorny - Thanks, I've now corrected the link ...@chorny - Thanks, I've now corrected the link in the posting.Leif Ovehttps://www.blogger.com/profile/00481434422725739037noreply@blogger.comtag:blogger.com,1999:blog-9039750571207949687.post-50960024872849723992011-02-10T17:09:27.084+01:002011-02-10T17:09:27.084+01:00My perltidy v20090616 define -wbb like:
"% +...My perltidy v20090616 define -wbb like:<br /><br />"% + - * / x != == >= <= =~ !~ < > | & = **= += *= &= <<= &&= -= /= |= >>= ||= //= .= %= ^= x="<br /><br />so it have more operators.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9039750571207949687.post-15663273877674868432011-02-10T14:58:03.673+01:002011-02-10T14:58:03.673+01:00@Tom - The general answer I get on that is "i...@Tom - The general answer I get on that is "it's easier to skim when the line is shorter". That is a plus if I have to come after you and code. The second generally accepted length I have seen is 120. I set my .ptrc to that one. Looking over some of my code I would say the majority hits close to that 78 though. Just remember, it is only a recommendation.Roberthttps://www.blogger.com/profile/05513580456463140264noreply@blogger.comtag:blogger.com,1999:blog-9039750571207949687.post-15220479572537011452011-02-10T14:31:34.974+01:002011-02-10T14:31:34.974+01:00@Tom Weaver because soem of us still like using a ...@Tom Weaver because soem of us still like using a normal 80x24 terminal when using vi.Shawnhttps://www.blogger.com/profile/14527134182890884314noreply@blogger.comtag:blogger.com,1999:blog-9039750571207949687.post-35217511034783729952011-02-10T00:54:50.896+01:002011-02-10T00:54:50.896+01:00I see 78 cols as the max line width and I know tha...I see 78 cols as the max line width and I know that is a pretty accepted standard, but can someone please explain why? Is anyone still limited to a 78 col width terminal anymore? I have always set mine to 1000 as I don't want pt to wrap anything unless it is extremely wide!Tom Weaverhttps://www.blogger.com/profile/15716094436865762087noreply@blogger.comtag:blogger.com,1999:blog-9039750571207949687.post-28641132320083384432011-02-09T21:51:06.327+01:002011-02-09T21:51:06.327+01:00Another benefit of PerlTidy is that when your grou...Another benefit of PerlTidy is that when your group's coding standards change (which happens in real life) you can quickly apply those changes to all of your source files.Michaelhttps://www.blogger.com/profile/12467020639540612364noreply@blogger.comtag:blogger.com,1999:blog-9039750571207949687.post-38786835889965508872011-02-09T21:46:01.478+01:002011-02-09T21:46:01.478+01:00@djshultz it's nice to be able to rely on perl...@djshultz it's nice to be able to rely on perltidy to format every other perl file in the same manner.<br />It saved me from cussing at different indentation styles used by colleagues :)Morad IGMIRhttps://www.blogger.com/profile/12028688901675455996noreply@blogger.comtag:blogger.com,1999:blog-9039750571207949687.post-76696118074707610542011-02-09T19:23:22.792+01:002011-02-09T19:23:22.792+01:00Or you could just write clean code to begin withOr you could just write clean code to begin withAnonymoushttps://www.blogger.com/profile/10159068772791038201noreply@blogger.comtag:blogger.com,1999:blog-9039750571207949687.post-35784110981537034212011-02-09T17:50:56.056+01:002011-02-09T17:50:56.056+01:00This link is to latest version of perltidy: http:/...This link is to latest version of perltidy: http://search.cpan.org/perldoc?perltidychornyhttps://www.blogger.com/profile/03938973252154624018noreply@blogger.com