<?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: Method Chaining, to use, or not to use</title>
	<atom:link href="http://blog.lckymn.com/2009/06/30/method-chaining-to-use-or-not-to-use/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lckymn.com/2009/06/30/method-chaining-to-use-or-not-to-use/</link>
	<description>IT, Java, Ubuntu, Linux</description>
	<lastBuildDate>Thu, 13 Oct 2011 23:02:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Kevin</title>
		<link>http://blog.lckymn.com/2009/06/30/method-chaining-to-use-or-not-to-use/comment-page-1/#comment-699</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Mon, 03 Aug 2009 13:58:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=347#comment-699</guid>
		<description>Thanks Varghese Cottagiri.

Yes, it&#039;s easier to use method chaining with a function like code (content) assist in some IDEs. Although I still don&#039;t like overuse of method chaining, as I said, it can be very useful if a developer uses it carefully or has good reasons for using it.  For instance, the append method of StringBuilder returns the StringBuilder itself so it is easy to add more String with chaining the append method call. Another good example can be found in builder pattern used when there are many constructor parameters as Joshua Bloch recommends in his book entitled &#039;Effective Java&#039;.  The methods in Builder object returns the object itself so the invocations can be chained then finally it returns the desired object so the object can be instantiated with member variables initialised with all the values that the builder object contains.

I think it has probably become more useful to use method chaining since Java 5 (JDK 1.5) as the return type covariance is implemented in Java 5.</description>
		<content:encoded><![CDATA[<p>Thanks Varghese Cottagiri.</p>
<p>Yes, it&#8217;s easier to use method chaining with a function like code (content) assist in some IDEs. Although I still don&#8217;t like overuse of method chaining, as I said, it can be very useful if a developer uses it carefully or has good reasons for using it.  For instance, the append method of StringBuilder returns the StringBuilder itself so it is easy to add more String with chaining the append method call. Another good example can be found in builder pattern used when there are many constructor parameters as Joshua Bloch recommends in his book entitled &#8216;Effective Java&#8217;.  The methods in Builder object returns the object itself so the invocations can be chained then finally it returns the desired object so the object can be instantiated with member variables initialised with all the values that the builder object contains.</p>
<p>I think it has probably become more useful to use method chaining since Java 5 (JDK 1.5) as the return type covariance is implemented in Java 5.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Varghese Cottagiri</title>
		<link>http://blog.lckymn.com/2009/06/30/method-chaining-to-use-or-not-to-use/comment-page-1/#comment-685</link>
		<dc:creator>Varghese Cottagiri</dc:creator>
		<pubDate>Sun, 02 Aug 2009 17:39:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=347#comment-685</guid>
		<description>Good write up on Method Chaining. I think that if an API built with Method Chaining in mind is presented to a developer - he/she would invariably start using it just because the number of keystrokes is less, especially in an IDEs one could go selecting method after method from the drop downs.</description>
		<content:encoded><![CDATA[<p>Good write up on Method Chaining. I think that if an API built with Method Chaining in mind is presented to a developer &#8211; he/she would invariably start using it just because the number of keystrokes is less, especially in an IDEs one could go selecting method after method from the drop downs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://blog.lckymn.com/2009/06/30/method-chaining-to-use-or-not-to-use/comment-page-1/#comment-442</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Sun, 05 Jul 2009 16:02:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=347#comment-442</guid>
		<description>댓글은 제가 알아듣는 말이면 아무거나 상관없습니다...^^;;; 
가끔 제가 모르는 언어로 글 (이 아니라 사실 스팸) 을 남기는 분이 계신데, 요런건 바로 삭제죠...^^;

감사는 제가 드려야죠. Eternity님께서 좋은글 쓰셔서 인용할수 있게 도와주셨으니까요. :)
저의 경우는, Eternity님 처럼 체계적이고 도움이 되는글을 쓴게 아니고,
&quot;그냥 이경우 저는 이런식으로 합니다.&quot; 라는 잡담 형식이라서...
제글은 거론할 가치가 없습니다. 
영어야 워낙 기술 설명하기에는 간결한 언어라, 이것도 역시 거론할 가치가...^^;;;

아무튼 과찬이십니다. 
제 주변에서는 method chaining 쓰는걸 많이 보지 못했고,
(Java쪽은 아니고 주로 JavaScript쪽 jQuery 사용하는 경우에 쓰는건 많이 봤군요.)
저도 접한 후에도 본문에 설명한 이유로 맘에 안 들어서 안 쓰다가
쓸모 있는 상황을 발견하게 되었고,
역시 기술이고 뭐고 사용하는 사람이 어떻게 쓰느냐에 달렸구나 라는걸 느껴서
그냥 간단하게 느낀걸 써보고자 하다가 차일피일 미뤄졌었는데, 
마침 Eternity님 글에서 체계적으로 언급하신걸 보고 인용해서 글을 쓰게 됐네요.
그냥 잡담도 Eternity님 글을 인용한 덕에 모양새가 조금 나아져서 다행입니다.
감사합니다. :)</description>
		<content:encoded><![CDATA[<p>댓글은 제가 알아듣는 말이면 아무거나 상관없습니다&#8230;^^;;;<br />
가끔 제가 모르는 언어로 글 (이 아니라 사실 스팸) 을 남기는 분이 계신데, 요런건 바로 삭제죠&#8230;^^;</p>
<p>감사는 제가 드려야죠. Eternity님께서 좋은글 쓰셔서 인용할수 있게 도와주셨으니까요. <img src='http://blog.lckymn.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
저의 경우는, Eternity님 처럼 체계적이고 도움이 되는글을 쓴게 아니고,<br />
&#8220;그냥 이경우 저는 이런식으로 합니다.&#8221; 라는 잡담 형식이라서&#8230;<br />
제글은 거론할 가치가 없습니다.<br />
영어야 워낙 기술 설명하기에는 간결한 언어라, 이것도 역시 거론할 가치가&#8230;^^;;;</p>
<p>아무튼 과찬이십니다.<br />
제 주변에서는 method chaining 쓰는걸 많이 보지 못했고,<br />
(Java쪽은 아니고 주로 JavaScript쪽 jQuery 사용하는 경우에 쓰는건 많이 봤군요.)<br />
저도 접한 후에도 본문에 설명한 이유로 맘에 안 들어서 안 쓰다가<br />
쓸모 있는 상황을 발견하게 되었고,<br />
역시 기술이고 뭐고 사용하는 사람이 어떻게 쓰느냐에 달렸구나 라는걸 느껴서<br />
그냥 간단하게 느낀걸 써보고자 하다가 차일피일 미뤄졌었는데,<br />
마침 Eternity님 글에서 체계적으로 언급하신걸 보고 인용해서 글을 쓰게 됐네요.<br />
그냥 잡담도 Eternity님 글을 인용한 덕에 모양새가 조금 나아져서 다행입니다.<br />
감사합니다. <img src='http://blog.lckymn.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eternity</title>
		<link>http://blog.lckymn.com/2009/06/30/method-chaining-to-use-or-not-to-use/comment-page-1/#comment-440</link>
		<dc:creator>Eternity</dc:creator>
		<pubDate>Sun, 05 Jul 2009 13:21:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lckymn.com/?p=347#comment-440</guid>
		<description>Kevin님 안녕하세요. (여기에 한글로 답변 달면 안될 것 같은 압박이... 그러나 어쩔 수 없이 한글로... ^^;)
Method Chaining에 대한 좋은 글 잘 읽었습니다. 제 글을 인용해서 주셔서 감사합니다. 뿌듯하네요.
저보다 글을 더 잘 쓰시는 것 같습니다. 거기다 영어로.. 부럽네요 ^^
SAX를 핸들링하기 위해 Fluent Interface를 가진 Expression Builder를 만들기 위해 Method Chaining을 사용하셨네요.
Method Chaining을 적용하는데 좋은 참고가 될 것 같습니다.
좋은 글 또 부탁드릴께요. ^^</description>
		<content:encoded><![CDATA[<p>Kevin님 안녕하세요. (여기에 한글로 답변 달면 안될 것 같은 압박이&#8230; 그러나 어쩔 수 없이 한글로&#8230; ^^;)<br />
Method Chaining에 대한 좋은 글 잘 읽었습니다. 제 글을 인용해서 주셔서 감사합니다. 뿌듯하네요.<br />
저보다 글을 더 잘 쓰시는 것 같습니다. 거기다 영어로.. 부럽네요 ^^<br />
SAX를 핸들링하기 위해 Fluent Interface를 가진 Expression Builder를 만들기 위해 Method Chaining을 사용하셨네요.<br />
Method Chaining을 적용하는데 좋은 참고가 될 것 같습니다.<br />
좋은 글 또 부탁드릴께요. ^^</p>
]]></content:encoded>
	</item>
</channel>
</rss>

