<?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"
	>
<channel>
	<title>Comments on: Why you should use spaces before your method arguments</title>
	<atom:link href="http://boredzo.org/blog/archives/2007-11-12/why-you-should-use-spaces-before-your-method-arguments/feed" rel="self" type="application/rss+xml" />
	<link>http://boredzo.org/blog/archives/2007-11-12/why-you-should-use-spaces-before-your-method-arguments</link>
	<description>The personal weblog of Peter Hosey.</description>
	<pubDate>Fri, 21 Nov 2008 05:11:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Peter Hosey</title>
		<link>http://boredzo.org/blog/archives/2007-11-12/why-you-should-use-spaces-before-your-method-arguments#comment-138771</link>
		<dc:creator>Peter Hosey</dc:creator>
		<pubDate>Mon, 12 Nov 2007 20:58:57 +0000</pubDate>
		<guid isPermaLink="false">http://boredzo.org/blog/archives/2007-11-12/why-you-should-use-spaces-before-your-method-arguments#comment-138771</guid>
		<description>&lt;p&gt;Xcode will automatically indent it, too, but it uses tabs all the way across until it can tab no more. What it &lt;em&gt;should&lt;/em&gt; do is tab to the level of indent of the first line, then switch to spaces the rest of the way (as shown in the screenshot).&lt;/p&gt;

&lt;p&gt;Chris Thomas: TextMate is close, in that it uses space from the indent to the argument name, but it also uses spaces for the indent, even though it uses real tabs for indents in all other cases. I'm going to guess that that's a bug, though.&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>Xcode will automatically indent it, too, but it uses tabs all the way across until it can tab no more. What it <em>should</em> do is tab to the level of indent of the first line, then switch to spaces the rest of the way (as shown in the screenshot).</p>
<p>Chris Thomas: TextMate is close, in that it uses space from the indent to the argument name, but it also uses spaces for the indent, even though it uses real tabs for indents in all other cases. I'm going to guess that that's a bug, though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Thomas</title>
		<link>http://boredzo.org/blog/archives/2007-11-12/why-you-should-use-spaces-before-your-method-arguments#comment-138764</link>
		<dc:creator>Chris Thomas</dc:creator>
		<pubDate>Mon, 12 Nov 2007 20:34:28 +0000</pubDate>
		<guid isPermaLink="false">http://boredzo.org/blog/archives/2007-11-12/why-you-should-use-spaces-before-your-method-arguments#comment-138764</guid>
		<description>FWIW, TextMate will perform this formatting if asked. Move the insertion point anywhere inside the brackets of a method call and hit control-shift-Q. TM will detect the boundaries of the method call and format the arguments aligned underneath the first colon. I believe TM will also do the right thing (adding spaces where necessary) if you have used tabs and you want to remove a rectangular slice, but I have not tested that (in recent memory).</description>
		<content:encoded><![CDATA[<p>FWIW, TextMate will perform this formatting if asked. Move the insertion point anywhere inside the brackets of a method call and hit control-shift-Q. TM will detect the boundaries of the method call and format the arguments aligned underneath the first colon. I believe TM will also do the right thing (adding spaces where necessary) if you have used tabs and you want to remove a rectangular slice, but I have not tested that (in recent memory).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nat</title>
		<link>http://boredzo.org/blog/archives/2007-11-12/why-you-should-use-spaces-before-your-method-arguments#comment-138755</link>
		<dc:creator>Nat</dc:creator>
		<pubDate>Mon, 12 Nov 2007 20:07:41 +0000</pubDate>
		<guid isPermaLink="false">http://boredzo.org/blog/archives/2007-11-12/why-you-should-use-spaces-before-your-method-arguments#comment-138755</guid>
		<description>I wrote a BBEdit script a few years ago to align selected lines vertically underneath the first colon in the first selected line. The script could be smarter (occasionally I don't want it to be the first colon, and it only moves subsequent lines to the right), but it's been quite handy, and much preferable to enforcing the use of spaces everywhere.

Jonathan: how do you format a tableview datasource method, if not in this style?</description>
		<content:encoded><![CDATA[<p>I wrote a BBEdit script a few years ago to align selected lines vertically underneath the first colon in the first selected line. The script could be smarter (occasionally I don't want it to be the first colon, and it only moves subsequent lines to the right), but it's been quite handy, and much preferable to enforcing the use of spaces everywhere.</p>
<p>Jonathan: how do you format a tableview datasource method, if not in this style?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Hosey</title>
		<link>http://boredzo.org/blog/archives/2007-11-12/why-you-should-use-spaces-before-your-method-arguments#comment-138745</link>
		<dc:creator>Peter Hosey</dc:creator>
		<pubDate>Mon, 12 Nov 2007 19:50:24 +0000</pubDate>
		<guid isPermaLink="false">http://boredzo.org/blog/archives/2007-11-12/why-you-should-use-spaces-before-your-method-arguments#comment-138745</guid>
		<description>Jonathan: I'm not sure whether you'll hate this more or less:

&lt;pre&gt;then = [now
	dateByAddingYears:-0  months:-0    days:-0
	            hours:-1 minutes:-0 seconds:-0];&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Jonathan: I'm not sure whether you'll hate this more or less:</p>
<pre>then = [now
	dateByAddingYears:-0  months:-0    days:-0
	            hours:-1 minutes:-0 seconds:-0];</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan WIght</title>
		<link>http://boredzo.org/blog/archives/2007-11-12/why-you-should-use-spaces-before-your-method-arguments#comment-138718</link>
		<dc:creator>Jonathan WIght</dc:creator>
		<pubDate>Mon, 12 Nov 2007 19:20:53 +0000</pubDate>
		<guid isPermaLink="false">http://boredzo.org/blog/archives/2007-11-12/why-you-should-use-spaces-before-your-method-arguments#comment-138718</guid>
		<description>I hate this formatting style. Takes up huge amounts of space, and a waste of time to both create and maintain. With well named objc selectors this formatting adds nothing to the readability of the code. Hate it, hate it, hate it.</description>
		<content:encoded><![CDATA[<p>I hate this formatting style. Takes up huge amounts of space, and a waste of time to both create and maintain. With well named objc selectors this formatting adds nothing to the readability of the code. Hate it, hate it, hate it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.219 seconds -->
