[sf-perl] Do you have a tidy style? Emacs/cperl and perltidy.

Michael Friedman frimicc at gmail.com
Tue Jan 22 15:21:03 PST 2013


I used the .perltidyrc from _Perl Best Practices_. It's pretty good and a reasonable "standard" that most people at least know about. 

http://puzlhed.net/2009/11/16/perltidy_rc_from_Best_Practices.html

You'll get discussion of all kinds about how to tidy your code, but coming up with a set of perltidy rules you can agree on is a huge bonus to a shop. In my old job, we used those perltidy rules as "neutral ground" to start the discussion and ended up sticking with them because, well, they were at least *a* published standard. 

-- Mike

(I use Vim, so I can't help with cperl, but I'm sure there's a php mode for it too.)

On Jan 22, 2013, at 2:58 PM, George Hartzell <hartzell at alerce.com> wrote:

> 
> I'm New Years cleaning, updating my emacs versions and configurations,
> learning a bit about newer tools, etc....
> 
> I've been coding in emacs using cperl mode for a while.  I tend to use
> a pretty vanilla coding style, I keep it consistent and it's
> nice-and-lazy to use cperl's defaults.  It looks good enough.
> 
> I'd like to start using perltidy.
> 
> [Part of this interest has come from following the go list and their
> use of gofmt.]
> 
> In particular I'd like to acquire/develop a perltidy config and a set
> of cperl settings + finger habits (e.g. do/don't kick a brace onto a
> newline when editing) that match each other.  Code that I'm writing
> should come out pretty tidy and code that's tidy shouldn't stress out
> my emacs session.
> 
> Does anyone in monger-land have any perltidy.rc files and/or cperl
> configs that they'd like to share?  Paired would be great, but
> interesting/practical examples of one or the other would be good
> reading too.
> 
> Thanks,
> 
> g.
> _______________________________________________
> SanFrancisco-pm mailing list
> SanFrancisco-pm at pm.org
> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm



More information about the SanFrancisco-pm mailing list