Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I agree totally.

    I also use 8-space tabs, and only for most lefthand indenting. It is not a problem!
    • by Alias (5735) on 2007.07.11 19:27 (#56184) Homepage Journal
      When Perl Best Practices came out I was annoyed that it did not recommend tabs.

      I had a chance to chat to Damian at some point and I asked him why go for spaces and not tabs.

      He said that tabs WERE a better choice, but by encouraging tabs it emerged that it was just too tempting for developers in general to then use the tabs after the beginning of the line, which (obviously) breaks things.

      So on the balance of the two factors (what is strictly better, and bad behaviours that it encourages) the spaces option was chosen.

      So, as far as I'm concerned, the Perl Best Practice is "If you have discipline, use tabs" :)
      • Indeed, and indeed. I learned some of my tabbing practice from a codebase where tabs were used after indentation, such as to line up (in C) variable declarations' types and names. Took me a little while, many years ago, to get out of that (and unfortunately we still have a bunch of that lying around).

      • Hmm; I'm almost persuaded. I may start using tabs.

        --
        J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers