Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Best practices and any way to have Perl Tidy clean it up

by Laurent_R (Canon)
on Apr 13, 2013 at 22:41 UTC ( [id://1028560]=note: print w/replies, xml ) Need Help??


in reply to Re: Best practices and any way to have Perl Tidy clean it up
in thread Best practices and any way to have Perl Tidy clean it up

With all due respect to Damian Conway and to his absolutely excellent book (whose recommendations I do follow on a number of items, well, most of them), and I certainly don't claim to challenge his authority, I still have to disagree.

The line length and the tab recommendations are, to say the least, debatable (at least in my view).

I had dinner last Monday with Curtis "Ovid" Poe and brian de foy in Paris (social setting with the Perl Mongers in Paris), and we discussed briefly these matters, my feeling is that both of them agreed that using spaces rather than tabs is not the best idea.

To brian and Curtis: if I misrepresented what you said in any way (I don't think I did, but just in case), sorry about that, I did not mean that.

  • Comment on Re^2: Best practices and any way to have Perl Tidy clean it up

Replies are listed 'Best First'.
Re^3: Best practices and any way to have Perl Tidy clean it up
by kcott (Archbishop) on Apr 13, 2013 at 23:10 UTC

    I wasn't advocating the use of any of those recommendations. This was merely a response to the OP's request: "... wondering what the Perl Best Practices are ...". These are just those I thought applicable to the situation at hand; there may be others.

    For what it's worth, I don't use Line Lengths but I do use Indentation and Tabs; I don't recall ever using Multiline Strings (but it seems sensible enough); I do use heredocs and theredocs; I don't use perltidy.

    -- Ken

Re^4: Best practices and any way to have Perl Tidy clean it up
by topher (Scribe) on Apr 17, 2013 at 05:24 UTC

    Out of curiosity, do you know what their objections to indenting with spaces was? I've always found it significantly more reliable and manageable than using tabs. I'd be curious about arguments to the contrary.

    Christopher Cashell

      PBP advocates using spaces, so their objection, such as it is, is to the use of tabs.

      The Tabs best practice is one that I use: no "arguments to the contrary" from me.

      I'm sure others with different preferences will provide their views on the subject.

      -- Ken

        My apologies. I'd meant to post my query to the parent of your post.

        Christopher Cashell
Re^3: Best practices and any way to have Perl Tidy clean it up
by topher (Scribe) on Apr 17, 2013 at 06:20 UTC
    my feeling is that both of them agreed that using spaces rather than tabs is not the best idea

    Out of curiosity, do you know what their objections to indenting with spaces was? Or what the advantages of tabs are?

    I've always found spaces to be more reliable and manageable than using tabs. I'd be curious about arguments to the contrary.

    Christopher Cashell

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1028560]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-24 18:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found