Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: The One True Style of indentation:

by Anonymous Monk
on Apr 17, 2002 at 21:14 UTC ( #160006=note: print w/replies, xml ) Need Help??

in reply to The One True Style of indentation:

When people cannot agree on visual indentation within a development team, the solution is to encode indentation with one hard tab per indent step, and have everyone configure their editor to display hard tabs the way they like. This screws more(1) and diff(1) outputs of course. One can argue that a hard tab in a file is a markup code for user-defined indent step, just like in MSWord or FrameMaker.

Replies are listed 'Best First'.
All hail the benevolent dictator
by petdance (Parson) on Apr 17, 2002 at 21:23 UTC
    When people cannot agree on visual indentation within a development team,

    This is one of those times that a benevolent dicatatorship has its benefits. Programmers have bigger things to deal with than piddly-shit arguments like tabs 'n' spaces and brace style.

    The key is that all the tools support whatever people want to do. The solution of "some do this, some do that" is not acceptable if it means that diff doesn't work, for example. In that case, a decision must be made, or tools adapted, or productivity suffers.

    <megaphone> Throw down the gun and tiara and come out of the float! </megaphone>

Re: Re: The One True Style of indentation:
by chromosundrift (Novice) on Apr 18, 2002 at 00:20 UTC

    That won't always work if you ever try to line things up using spaces on top of tabs.

    If you have to work in a team, I think consistency is more important than "the best way". There should be one true brace/indenting style PER TEAM.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://160006]
[1nickt]: So if I was to offer any editorial advice it would be to (1) make it endure time passing (2) make it positive (3) make it about you and your beliefs
[1nickt]: (Disicpulus The new best choice is maybe "First People"
[karlgoethebier]: Discipulus: This is called "Volksverhetzung" in German which means
[karlgoethebier]: incitement of the people and it is prohibited by law
[1nickt]: The best sign I have sign in a protest march was carried by a kid of about 10 years "If you build a wall my generation will tear it down."
[1nickt]: ... sign I have seen ...
[1nickt]: Now that one made me hopeful! First time not angry in a long time when I saw that kid.
[Discipulus]: i propend for removing: why? because we are so few that we must find i minimal common divisor, this is certainly Perl not our (anyway private) thougths. And i say this still wondering because i love a lot freedom of expression. And i say this not for roho
[1nickt]: Discipulus that was the point of my story of taking the sticker off my truck. I know there are lots of people in the world who if I knw their private beliefs I might want to argue with them. And they with me. But life cannot all be arguments!
[1nickt]: This is less than perfect ... but demanding perfection (from people or from life) is a sure way to unhappiness.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2017-06-22 12:16 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (519 votes). Check out past polls.