<?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: Brackets</title>
	<atom:link href="http://nslog.com/2003/04/25/brackets/feed" rel="self" type="application/rss+xml" />
	<link>http://nslog.com/2003/04/25/brackets</link>
	<description>The Weblog of Erik J. Barzeski</description>
	<lastBuildDate>Wed, 23 May 2012 23:05:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: JongAm Park</title>
		<link>http://nslog.com/2003/04/25/brackets#comment-2510</link>
		<dc:creator>JongAm Park</dc:creator>
		<pubDate>Fri, 27 Aug 2004 05:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/04/25/brackets/#comment-2510</guid>
		<description>With Obj-C style of function, it is self-explainable. You don&#039;t need to look up the header file to figure out what parameter is for what.



However, if you should write opening bracket and closing bracket always. So, it makes you keep go back to the point where you passed, and place an open bracket. If the call is something like this, then it is worse.



MyClass *aclass = [[MyClass alloc] init];



You may just start to write after = like this : My Class alloc] (Ah! I forgot the opening bracket! Let&#039;s go back)



[MyClass alloc] init] ( Ah! I forgot another one!



It looks like stupid thing, but it happens!



So.. I think the code sense should be extended to the point that it can solve this problem. If not, I prefer the C++.</description>
		<content:encoded><![CDATA[<p>With Obj-C style of function, it is self-explainable. You don't need to look up the header file to figure out what parameter is for what.</p>
<p>However, if you should write opening bracket and closing bracket always. So, it makes you keep go back to the point where you passed, and place an open bracket. If the call is something like this, then it is worse.</p>
<p>MyClass *aclass = [[MyClass alloc] init];</p>
<p>You may just start to write after = like this : My Class alloc] (Ah! I forgot the opening bracket! Let's go back)</p>
<p>[MyClass alloc] init] ( Ah! I forgot another one!</p>
<p>It looks like stupid thing, but it happens!</p>
<p>So.. I think the code sense should be extended to the point that it can solve this problem. If not, I prefer the C++.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William Herold</title>
		<link>http://nslog.com/2003/04/25/brackets#comment-2509</link>
		<dc:creator>William Herold</dc:creator>
		<pubDate>Wed, 11 Aug 2004 21:05:39 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/04/25/brackets/#comment-2509</guid>
		<description>&quot;someObject.createConnection(mySocket, 12163, 28800, myClient, NULL);&quot;



That&#039;s a poor example of C++ useage. Any good developer will run away screaming from &quot;magic numbers&quot;. Good practice is to name *all* variables and constants, thus mitigating the problem as stated. Having said that, I can see some limited utility in typing parameter names.</description>
		<content:encoded><![CDATA[<p>"someObject.createConnection(mySocket, 12163, 28800, myClient, NULL);"</p>
<p>That's a poor example of C++ useage. Any good developer will run away screaming from "magic numbers". Good practice is to name *all* variables and constants, thus mitigating the problem as stated. Having said that, I can see some limited utility in typing parameter names.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aquasition.Net</title>
		<link>http://nslog.com/2003/04/25/brackets#comment-2512</link>
		<dc:creator>Aquasition.Net</dc:creator>
		<pubDate>Mon, 28 Apr 2003 04:02:35 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/04/25/brackets/#comment-2512</guid>
		<description>&lt;strong&gt;Cocoa Syntax&lt;/strong&gt;

Erik Barzeski recently wrote in his blog: &quot;I really, really like Objective-C&#039;s [square brackets] method of markup (whatever you wanna call it).&quot; Cocoa&#039;s syntax owns pretty much everything I&#039;ve used. I have used VisualBASIC, realBASIC, C++, PHP, and Coc...
</description>
		<content:encoded><![CDATA[<p><strong>Cocoa Syntax</strong></p>
<p>Erik Barzeski recently wrote in his blog: "I really, really like Objective-C's [square brackets] method of markup (whatever you wanna call it)." Cocoa's syntax owns pretty much everything I've used. I have used VisualBASIC, realBASIC, C++, PHP, and Coc...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://nslog.com/2003/04/25/brackets#comment-2508</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Sat, 26 Apr 2003 19:53:54 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/04/25/brackets/#comment-2508</guid>
		<description>I like the Objective-C syntax, but - objectAtIndex: is grotesquely verbose compared to operator[](). On the other hand, if you&#039;re doing a lot of work on data structures, there&#039;s a good chance you&#039;re using iterators anyway...</description>
		<content:encoded><![CDATA[<p>I like the Objective-C syntax, but - objectAtIndex: is grotesquely verbose compared to operator[](). On the other hand, if you're doing a lot of work on data structures, there's a good chance you're using iterators anyway...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michel</title>
		<link>http://nslog.com/2003/04/25/brackets#comment-2507</link>
		<dc:creator>Michel</dc:creator>
		<pubDate>Sat, 26 Apr 2003 12:37:07 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/04/25/brackets/#comment-2507</guid>
		<description>this notation (and the namedparameters: ) is easier to read in a source code. 



I get to prefere objective C instead of C++ notation.</description>
		<content:encoded><![CDATA[<p>this notation (and the namedparameters: ) is easier to read in a source code. </p>
<p>I get to prefere objective C instead of C++ notation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan LaMee</title>
		<link>http://nslog.com/2003/04/25/brackets#comment-2506</link>
		<dc:creator>Dan LaMee</dc:creator>
		<pubDate>Sat, 26 Apr 2003 04:42:08 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/04/25/brackets/#comment-2506</guid>
		<description>As someone who is learning Obj-C [or trying to], I&#039;ll just say they are more than a little daunting. But from that simple comparison things became a little clearer. Now, if other areas of the language made a little more sense, I might be a lot more productive in the language!</description>
		<content:encoded><![CDATA[<p>As someone who is learning Obj-C [or trying to], I'll just say they are more than a little daunting. But from that simple comparison things became a little clearer. Now, if other areas of the language made a little more sense, I might be a lot more productive in the language!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Norris</title>
		<link>http://nslog.com/2003/04/25/brackets#comment-2505</link>
		<dc:creator>Mike Norris</dc:creator>
		<pubDate>Sat, 26 Apr 2003 03:50:02 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/04/25/brackets/#comment-2505</guid>
		<description>My vote goes to the square brackets because... well, because square brackets are just cool.



If you have a nosey through some of the more hip-&#039;n&#039;-happenin&#039; contemporary sociocultural journals, you&#039;ll see copious square brackets put in there to funkify the traditional parenthetical asides. It&#039;s a typographical aesthetics thing. Some hard masculine edges to put some brawny machismo into your soft, feminine serif body text. So get some balls into your code, and use square brackets.



Oh, and curly brackets are soooo last millennium.</description>
		<content:encoded><![CDATA[<p>My vote goes to the square brackets because... well, because square brackets are just cool.</p>
<p>If you have a nosey through some of the more hip-'n'-happenin' contemporary sociocultural journals, you'll see copious square brackets put in there to funkify the traditional parenthetical asides. It's a typographical aesthetics thing. Some hard masculine edges to put some brawny machismo into your soft, feminine serif body text. So get some balls into your code, and use square brackets.</p>
<p>Oh, and curly brackets are soooo last millennium.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sam</title>
		<link>http://nslog.com/2003/04/25/brackets#comment-2504</link>
		<dc:creator>sam</dc:creator>
		<pubDate>Sat, 26 Apr 2003 03:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/04/25/brackets/#comment-2504</guid>
		<description>The thing I really like about obj-C style methods is the fact that you can tell what a method is doing without having to go look at the headers.



Assuming the formatting comes out looking right, this is how I like to write methods. It takes up more space, and is more typing, but as an amatuer programmer, I love the fact that the method call lets me know exactly whats going on. No need to look up the docs unless I need more details.





[someObject createConnectionToSocket:mySocket

                        onPortNumber:12163

                             atSpeed:28800

                          withClient:myClient

                     andExtraHeaders:nil];





Of course, its up to developers to write the methods such that parameters are well named, but I&#039;m happy with how Cocoa methods are named. If I want to do something, sometimes I just guess a method and its parameters, and half the time the method I guessed actually exists! I think this works because the methods are very readable and very memorable, at the cost of some typing speed.



Obj-C, especially used with Cocoa, is a very friendly and easy to use combination that I&#039;m very happy with as a relatively new person to the development world.



Peace,

sam</description>
		<content:encoded><![CDATA[<p>The thing I really like about obj-C style methods is the fact that you can tell what a method is doing without having to go look at the headers.</p>
<p>Assuming the formatting comes out looking right, this is how I like to write methods. It takes up more space, and is more typing, but as an amatuer programmer, I love the fact that the method call lets me know exactly whats going on. No need to look up the docs unless I need more details.</p>
<p>[someObject createConnectionToSocket:mySocket</p>
<p>                        onPortNumber:12163</p>
<p>                             atSpeed:28800</p>
<p>                          withClient:myClient</p>
<p>                     andExtraHeaders:nil];</p>
<p>Of course, its up to developers to write the methods such that parameters are well named, but I'm happy with how Cocoa methods are named. If I want to do something, sometimes I just guess a method and its parameters, and half the time the method I guessed actually exists! I think this works because the methods are very readable and very memorable, at the cost of some typing speed.</p>
<p>Obj-C, especially used with Cocoa, is a very friendly and easy to use combination that I'm very happy with as a relatively new person to the development world.</p>
<p>Peace,</p>
<p>sam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Tsai</title>
		<link>http://nslog.com/2003/04/25/brackets#comment-2503</link>
		<dc:creator>Michael Tsai</dc:creator>
		<pubDate>Sat, 26 Apr 2003 02:59:15 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/04/25/brackets/#comment-2503</guid>
		<description>Overall, I like the Objective-C syntax better. But there are good arguments for the C-style syntax as well. Having the method name all in one chunk makes it easier to do auto-completion without compiler support. It&#039;s also better for find and replace. If you&#039;re really familiar with what the method does, a shorter name is better because there&#039;s less to read. You don&#039;t have to wrap as many lines, and you can fit more code on the screen at once.



Also, the bracket syntax is harder to type and edit. If you&#039;re typing a chain of calls, you have to either count them ahead of time so that you know how many open brackets to type, or go back and add the open brackets later. With the dot syntax, you just add another dot and keep typing. Likewise, if you have an expression selected and want to use it as a receiver, you have to add text on both sides. Editor support, such as BBEdit&#039;s Balance command and Glossary, can help a lot. But I&#039;d like to see an editor that&#039;s bracket-savvy in the way that Emacs is for Lisp (which uses lots of parens).</description>
		<content:encoded><![CDATA[<p>Overall, I like the Objective-C syntax better. But there are good arguments for the C-style syntax as well. Having the method name all in one chunk makes it easier to do auto-completion without compiler support. It's also better for find and replace. If you're really familiar with what the method does, a shorter name is better because there's less to read. You don't have to wrap as many lines, and you can fit more code on the screen at once.</p>
<p>Also, the bracket syntax is harder to type and edit. If you're typing a chain of calls, you have to either count them ahead of time so that you know how many open brackets to type, or go back and add the open brackets later. With the dot syntax, you just add another dot and keep typing. Likewise, if you have an expression selected and want to use it as a receiver, you have to add text on both sides. Editor support, such as BBEdit's Balance command and Glossary, can help a lot. But I'd like to see an editor that's bracket-savvy in the way that Emacs is for Lisp (which uses lots of parens).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Quarter Life Crisis</title>
		<link>http://nslog.com/2003/04/25/brackets#comment-2511</link>
		<dc:creator>Quarter Life Crisis</dc:creator>
		<pubDate>Sat, 26 Apr 2003 01:50:14 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2003/04/25/brackets/#comment-2511</guid>
		<description>&lt;strong&gt;Party like it&#039;s May 23rd&lt;/strong&gt;

Complete: Coming home from town after having a few drinks at the Brit-Pop party thingy they did at Gromo...</description>
		<content:encoded><![CDATA[<p><strong>Party like it's May 23rd</strong></p>
<p>Complete: Coming home from town after having a few drinks at the Brit-Pop party thingy they did at Gromo...</p>
]]></content:encoded>
	</item>
</channel>
</rss>

