<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: TABs vs Spaces. The end of the debate.</title>
	<atom:link href="http://www.iovene.com/61/feed" rel="self" type="application/rss+xml" />
	<link>http://www.iovene.com/61</link>
	<description>The thoughts of a computer programmer, open source supporter and free-thinker.</description>
	<lastBuildDate>Mon, 19 Jul 2010 23:38:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: franz</title>
		<link>http://www.iovene.com/61#comment-104284</link>
		<dc:creator>franz</dc:creator>
		<pubDate>Fri, 19 Mar 2010 15:40:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.iovene.com/tabs-vs-spaces-the-end-of-the-debate/#comment-104284</guid>
		<description>Perhaps you should adapt your statement:
&quot;So, in the end, it doesn’t mat­ter whether you use TABs or space, for indent­ing, as long as you use just spaces for align­ing.&quot; Add:
&quot;If you have decided to use  TABs or spaces for indenting: use it consequently.&quot;
Because if you mix it, you will have problems with the indent if someone else changes the tab width in his editor.</description>
		<content:encoded><![CDATA[<p>Perhaps you should adapt your statement:<br />
“So, in the end, it doesn’t mat­ter whether you use TABs or space, for indent­ing, as long as you use just spaces for align­ing.” Add:<br />
“If you have decided to use  TABs or spaces for indenting: use it consequently.“<br />
Because if you mix it, you will have problems with the indent if someone else changes the tab width in his editor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BozoTheClone</title>
		<link>http://www.iovene.com/61#comment-102393</link>
		<dc:creator>BozoTheClone</dc:creator>
		<pubDate>Thu, 03 Dec 2009 08:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.iovene.com/tabs-vs-spaces-the-end-of-the-debate/#comment-102393</guid>
		<description>Has it ever occured to people that perhaps the problem is that source code is saved as text files?  Perhaps this aspect of programming needs to step out of the dark ages and into a modern light.  Why not have a new class of source code editors that save everything as XML?  The notion to indentation and alignment can simply be set as user preferences in the editor and not persisted in the source file itself.  The formatting of the code should be more about the preferences of the individual programmer and not anything to do with the source code itself.  Two different programmers could view the same source code, but it is arranged in two totally different ways to suit each programmer differently.  After all, to the compiler the tabs and spaces are mostly meaningless unless inside of a literal piece of data.

If the source code was actually an XML document you could embed pictures and diagrams in the actual file instead of relying always on pure text based comments with limited ASCII art.  You could embed code review comments, revision information in a way that doesn&#039;t clutter up the code.

Don&#039;t pick a side in this debate.  Simply eliminate the need for the debate...</description>
		<content:encoded><![CDATA[<p>Has it ever occured to people that perhaps the problem is that source code is saved as text files?  Perhaps this aspect of programming needs to step out of the dark ages and into a modern light.  Why not have a new class of source code editors that save everything as XML?  The notion to indentation and alignment can simply be set as user preferences in the editor and not persisted in the source file itself.  The formatting of the code should be more about the preferences of the individual programmer and not anything to do with the source code itself.  Two different programmers could view the same source code, but it is arranged in two totally different ways to suit each programmer differently.  After all, to the compiler the tabs and spaces are mostly meaningless unless inside of a literal piece of data.</p>
<p>If the source code was actually an XML document you could embed pictures and diagrams in the actual file instead of relying always on pure text based comments with limited ASCII art.  You could embed code review comments, revision information in a way that doesn’t clutter up the code.</p>
<p>Don’t pick a side in this debate.  Simply eliminate the need for the debate…</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drab as a fool, aloof as a bard</title>
		<link>http://www.iovene.com/61#comment-101536</link>
		<dc:creator>Drab as a fool, aloof as a bard</dc:creator>
		<pubDate>Mon, 28 Sep 2009 00:55:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.iovene.com/tabs-vs-spaces-the-end-of-the-debate/#comment-101536</guid>
		<description>&lt;strong&gt;Whitespace standards...&lt;/strong&gt;

When writing code, it is good to be consistent about how you use whitespace.  When collaborating with others, it can actually be detrimental to your group&#8217;s productivity if there is a mix of systems, so the sensible thing is to pick a standard ea...</description>
		<content:encoded><![CDATA[<p><strong>Whitespace standards…</strong></p>
<p>When writing code, it is good to be consistent about how you use whitespace.  When collaborating with others, it can actually be detrimental to your group’s productivity if there is a mix of systems, so the sensible thing is to pick a standard ea…</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.iovene.com/61#comment-96412</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 02 Jul 2009 12:50:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.iovene.com/tabs-vs-spaces-the-end-of-the-debate/#comment-96412</guid>
		<description>Finally, someone with common sense! I am a tab cadet for indentation, but I prefer spaces for aligning other parts of the line on those occasions when alignment helps readability.

An even better approach would be &quot;elastic tabstops&quot; - basically, use tabs as in a tab-separated data file, and the editor can dynamically align the columns. Imagine you decide to add a variable that&#039;s 3 characters longer than the former-longest. No need to go back and adjust the spacing for the other 15 lines; the editor takes care of presentation. Unfortunately, none of the good editors have this option (yet?).</description>
		<content:encoded><![CDATA[<p>Finally, someone with common sense! I am a tab cadet for indentation, but I prefer spaces for aligning other parts of the line on those occasions when alignment helps readability.</p>
<p>An even better approach would be “elastic tabstops” — basically, use tabs as in a tab-separated data file, and the editor can dynamically align the columns. Imagine you decide to add a variable that’s 3 characters longer than the former-longest. No need to go back and adjust the spacing for the other 15 lines; the editor takes care of presentation. Unfortunately, none of the good editors have this option (yet?).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marius Andersen</title>
		<link>http://www.iovene.com/61#comment-93423</link>
		<dc:creator>Marius Andersen</dc:creator>
		<pubDate>Mon, 08 Jun 2009 19:46:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.iovene.com/tabs-vs-spaces-the-end-of-the-debate/#comment-93423</guid>
		<description>Stefan Persson,

to have Emacs use tabs for indentation and spaces everywhere else, you can make the indentation offset an alias of the tab width, set â€˜indent-tabs-modeâ€™ to â€˜nilâ€™, and then write a wrap-around defadvice for the indentation function that shadows the global value. E.g., for CC Mode:

(defvaralias &#039;c-basic-offset &#039;tab-width)
(setq-default indent-tabs-mode nil)
(defadvice c-indent-line (around intelligent-tabs activate)
  (let ((indent-tabs-mode t)
         (tab-width fill-column)
         (c-basic-offset fill-column))
    ad-do-it))

The defadvice also sees to that continuation lines are indented with a tab width-invariant mixture of tabs and spaces. For details, see http://www.emacswiki.org/emacs/IntelligentTabs .</description>
		<content:encoded><![CDATA[<p>Stefan Persson,</p>
<p>to have Emacs use tabs for indentation and spaces everywhere else, you can make the indentation offset an alias of the tab width, set â€˜indent-tabs-modeâ€™ to â€˜nilâ€™, and then write a wrap-around defadvice for the indentation function that shadows the global value. E.g., for CC Mode:</p>
<p>(defvaralias ‘c-basic-offset ‘tab-width)<br />
(setq-default indent-tabs-mode nil)<br />
(defadvice c-indent-line (around intelligent-tabs activate)<br />
  (let ((indent-tabs-mode t)<br />
         (tab-width fill-column)<br />
         (c-basic-offset fill-column))<br />
    ad-do-it))</p>
<p>The defadvice also sees to that continuation lines are indented with a tab width-invariant mixture of tabs and spaces. For details, see <a href="http://www.emacswiki.org/emacs/IntelligentTabs" rel="nofollow">http://www.emacswiki.org/emacs/IntelligentTabs</a> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Banks</title>
		<link>http://www.iovene.com/61#comment-34735</link>
		<dc:creator>Jeremy Banks</dc:creator>
		<pubDate>Sat, 20 Sep 2008 01:33:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.iovene.com/tabs-vs-spaces-the-end-of-the-debate/#comment-34735</guid>
		<description>I like using tabs for indentation because it allows multiple editing the same code to use whatever scale of indentation that they want, assuming they&#039;re using an editor that allows them to set the width of tabs. It just seems more friendly, since you don&#039;t forge everyone reading your code into the same indentation depth as you use.

Obviously, I use spaces for alignment.</description>
		<content:encoded><![CDATA[<p>I like using tabs for indentation because it allows multiple editing the same code to use whatever scale of indentation that they want, assuming they’re using an editor that allows them to set the width of tabs. It just seems more friendly, since you don’t forge everyone reading your code into the same indentation depth as you use.</p>
<p>Obviously, I use spaces for alignment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Salvatore Iovene</title>
		<link>http://www.iovene.com/61#comment-13916</link>
		<dc:creator>Salvatore Iovene</dc:creator>
		<pubDate>Fri, 06 Jun 2008 07:58:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.iovene.com/tabs-vs-spaces-the-end-of-the-debate/#comment-13916</guid>
		<description>Mike (#16), you got the point completely. :)</description>
		<content:encoded><![CDATA[<p>Mike (#16), you got the point completely. <img src='http://www.iovene.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.iovene.com/61#comment-13915</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 06 Jun 2008 07:42:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.iovene.com/tabs-vs-spaces-the-end-of-the-debate/#comment-13915</guid>
		<description>Nick Westgate (#6), you totally missed the point. The article explicitly states that tabs should not be used for alignment. YOU draw the conclusion that tabs are therefore evil, and spaces should be used, disregarding the articles statement that for indenting tabs vs. spaces is a useless discussion nobody can win. 

So to conclude, once again, don&#039;t use tabs for aligment. For indenting use tabs or spaces. Period.</description>
		<content:encoded><![CDATA[<p>Nick Westgate (#6), you totally missed the point. The article explicitly states that tabs should not be used for alignment. YOU draw the conclusion that tabs are therefore evil, and spaces should be used, disregarding the articles statement that for indenting tabs vs. spaces is a useless discussion nobody can win. </p>
<p>So to conclude, once again, don’t use tabs for aligment. For indenting use tabs or spaces. Period.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Persson</title>
		<link>http://www.iovene.com/61#comment-1917</link>
		<dc:creator>Stefan Persson</dc:creator>
		<pubDate>Thu, 16 Aug 2007 11:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.iovene.com/tabs-vs-spaces-the-end-of-the-debate/#comment-1917</guid>
		<description>I totally agree with the aricles view on using spaces for alignment, and have an Emacs question: Since I want to use tabs for indentation (so people can view it as they want) and spaces for my alignment, it would be great if the auto-indent (pressing ) functionality used tabs, and pressing C-q  produced spaces. But the variable &#039;indent-tabs-mode&#039; that switches spaces/tabs-behaviour, unfortunately changes it for BOTH situations so that I can&#039;t mix the styles as I want. What do to, what to do...?</description>
		<content:encoded><![CDATA[<p>I totally agree with the aricles view on using spaces for alignment, and have an Emacs question: Since I want to use tabs for indentation (so people can view it as they want) and spaces for my alignment, it would be great if the auto-indent (pressing ) functionality used tabs, and pressing C-q  produced spaces. But the variable ‘indent-tabs-mode’ that switches spaces/tabs-behaviour, unfortunately changes it for BOTH situations so that I can’t mix the styles as I want. What do to, what to do…?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francois Hill</title>
		<link>http://www.iovene.com/61#comment-1817</link>
		<dc:creator>Francois Hill</dc:creator>
		<pubDate>Tue, 07 Aug 2007 17:41:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.iovene.com/tabs-vs-spaces-the-end-of-the-debate/#comment-1817</guid>
		<description>I was thinking of writing an article on that ... but there, you&#039;ve said it all.

Many coders I see around me still don&#039;t get the difference between the uses of tab and space.

Any people advocating the use of one over the other, or pointing out a fantasized shortcoming of the &quot;tab method&quot; (including Nick Westgate) have still not got it and are a waste of office space ! ;oP</description>
		<content:encoded><![CDATA[<p>I was thinking of writing an article on that … but there, you’ve said it all.</p>
<p>Many coders I see around me still don’t get the difference between the uses of tab and space.</p>
<p>Any people advocating the use of one over the other, or pointing out a fantasized shortcoming of the “tab method” (including Nick Westgate) have still not got it and are a waste of office space ! ;oP</p>
]]></content:encoded>
	</item>
</channel>
</rss>
