I've always wondered about something:
Given the 2 rules:
- "Lines should be broken at between 80 and 100 columns."
- "You should make no assumptions about the number of spaces per tab."
I have a couple of questions:
- What should we do if someone who uses 1 space tabs writes a 99
character line (including the tab)?
- If you are using more than 1 space per tab, you they are breaking
the 100 column rule.
- What should we do if someone who uses 8 space tabs tells you that you
are breaking the 100 column rule?
- If you are using less than 8 spaces per tab, than you aren't
breaking the 100 column rule.
I get why there's no value in starting a holy war over spaces-per tab, but
this is a good example of why it's also a problem to not make a decision
one way or another.
This is not hypothetical, we have people on our team (VisualEditor) who use
8, 4 and 3 (that I know of).
On Wed, Aug 8, 2012 at 11:26 AM, Adam Wight <awight(a)wikimedia.org> wrote:
On 08/08/2012 11:07 AM, Mark Holmquist wrote:
Also, "it should be 4 spaces" is a
matter of opinion--everyone likes
different tab widths depending on their
preferences and monitor size.
"you should make no assumptions" appears to support Chad's statement.
However, I'm pretty sure that in reality, many people assume a width of 4.
I've definitely seen funky tab-plus-space indentations that support that
I officially redact my bogus claim that it "should" be 4 spaces.
we certainly shouldn't default to 8!
(moral authority provided by:
Cleric: And the Lord spake, saying, "First shalt thou take out the Holy
Pin. Then shalt thou count to three, no more, no less. Three shall be the
number thou shalt count, and the number of the counting shall be three.
Four shalt thou not count, neither count thou two, excepting that thou then
proceed to three. *Five is right out.* Once the number three, being the
third number, be reached, then lobbest thou thy Holy Hand Grenade of
Antioch towards thy foe, who, being naughty in my sight, shall snuff it.)
Wikitech-l mailing list