<?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: Functional vs &#8220;Java&#8221; Style</title>
	<atom:link href="http://www.alittlemadness.com/2009/08/21/functional-vs-java-style/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alittlemadness.com/2009/08/21/functional-vs-java-style/</link>
	<description>A man needs a little madness, or else he never dares cut the rope and be free. -Nikos Kazantzakis</description>
	<lastBuildDate>Tue, 09 Mar 2010 14:20:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tony Morris</title>
		<link>http://www.alittlemadness.com/2009/08/21/functional-vs-java-style/comment-page-1/#comment-186049</link>
		<dc:creator>Tony Morris</dc:creator>
		<pubDate>Sun, 20 Sep 2009 11:22:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.alittlemadness.com/?p=316#comment-186049</guid>
		<description>It is true that Java is not well suited to a functional style, but it does raise the question, just what &quot;style&quot; is it suited to?

It is far more suited to a &quot;functional style&quot; than not, as your code provides anecdotal evidence for (the case generalises).

I wish we, as an industry, did away with this Java nonsense and moved on.</description>
		<content:encoded><![CDATA[<p>It is true that Java is not well suited to a functional style, but it does raise the question, just what &#8220;style&#8221; is it suited to?</p>
<p>It is far more suited to a &#8220;functional style&#8221; than not, as your code provides anecdotal evidence for (the case generalises).</p>
<p>I wish we, as an industry, did away with this Java nonsense and moved on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dale</title>
		<link>http://www.alittlemadness.com/2009/08/21/functional-vs-java-style/comment-page-1/#comment-184210</link>
		<dc:creator>Dale</dc:creator>
		<pubDate>Thu, 03 Sep 2009 17:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.alittlemadness.com/?p=316#comment-184210</guid>
		<description>Best to switch to Scala.  People like Joshua Bloch have condemned Java to stagnation.</description>
		<content:encoded><![CDATA[<p>Best to switch to Scala.  People like Joshua Bloch have condemned Java to stagnation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.alittlemadness.com/2009/08/21/functional-vs-java-style/comment-page-1/#comment-183180</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Tue, 25 Aug 2009 13:15:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.alittlemadness.com/?p=316#comment-183180</guid>
		<description>It really is just a matter of personal preference and not of better readability. The simple fact that the code contains a lot of class and function definition keywords like new, return, public, boolean plus additional parentheses makes this harder to read IMHO. I am sure that there are useful applications of this but stating that the one is &quot;better&quot; than the other is nothing more than an opinion. 

Frank</description>
		<content:encoded><![CDATA[<p>It really is just a matter of personal preference and not of better readability. The simple fact that the code contains a lot of class and function definition keywords like new, return, public, boolean plus additional parentheses makes this harder to read IMHO. I am sure that there are useful applications of this but stating that the one is &#8220;better&#8221; than the other is nothing more than an opinion. </p>
<p>Frank</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neal Gafter</title>
		<link>http://www.alittlemadness.com/2009/08/21/functional-vs-java-style/comment-page-1/#comment-183124</link>
		<dc:creator>Neal Gafter</dc:creator>
		<pubDate>Tue, 25 Aug 2009 06:08:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.alittlemadness.com/?p=316#comment-183124</guid>
		<description>It looks like Google engineers haven&#039;t reached consensus about a functional style in Java. Josh Bloch http://gafter.blogspot.com/2007/12/what-flavor-of-closures.html?showComment=1197631980000#c8863950537789037629 and Cedric Beust http://beust.com/weblog/archives/000517.html are against the functional style in Java, while the authors of Google Collections http://google-collections.googlecode.com/svn/trunk/javadoc/index.html?com/google/common/collect/Iterables.html promote and support it.</description>
		<content:encoded><![CDATA[<p>It looks like Google engineers haven&#8217;t reached consensus about a functional style in Java. Josh Bloch <a href="http://gafter.blogspot.com/2007/12/what-flavor-of-closures.html?showComment=1197631980000#c8863950537789037629" rel="nofollow">http://gafter.blogspot.com/2007/12/what-flavor-of-closures.html?showComment=1197631980000#c8863950537789037629</a> and Cedric Beust <a href="http://beust.com/weblog/archives/000517.html" rel="nofollow">http://beust.com/weblog/archives/000517.html</a> are against the functional style in Java, while the authors of Google Collections <a href="http://google-collections.googlecode.com/svn/trunk/javadoc/index.html?com/google/common/collect/Iterables.html" rel="nofollow">http://google-collections.googlecode.com/svn/trunk/javadoc/index.html?com/google/common/collect/Iterables.html</a> promote and support it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cyrille</title>
		<link>http://www.alittlemadness.com/2009/08/21/functional-vs-java-style/comment-page-1/#comment-182520</link>
		<dc:creator>cyrille</dc:creator>
		<pubDate>Thu, 20 Aug 2009 18:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.alittlemadness.com/?p=316#comment-182520</guid>
		<description>Yes a good post indeed. I already tried to express that recently, after 4 years of doing just that in our team.

You do emphasize what&#039;s important: over time a growing set of functors can be reused and composed together (boolean operations etc) as a plumbing kit. We used Apache Commons Collections Predicate, Closure and Transformer a lot (with Java 1.4) and very quickly all the team loved it, without even knowing for a long time that this was called functional style. And the benefits talked for themselves: much higher reuse, less LOC, no side effect, trivial unit testing, flexibility to configure the application at assembly time...

Whenever I mention functional style everybody immediately speaks about Scala, F# or another sexy language, whereas what&#039;s really important is the style in itself (paradigm), not the syntactic sugar.</description>
		<content:encoded><![CDATA[<p>Yes a good post indeed. I already tried to express that recently, after 4 years of doing just that in our team.</p>
<p>You do emphasize what&#8217;s important: over time a growing set of functors can be reused and composed together (boolean operations etc) as a plumbing kit. We used Apache Commons Collections Predicate, Closure and Transformer a lot (with Java 1.4) and very quickly all the team loved it, without even knowing for a long time that this was called functional style. And the benefits talked for themselves: much higher reuse, less LOC, no side effect, trivial unit testing, flexibility to configure the application at assembly time&#8230;</p>
<p>Whenever I mention functional style everybody immediately speaks about Scala, F# or another sexy language, whereas what&#8217;s really important is the style in itself (paradigm), not the syntactic sugar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.alittlemadness.com/2009/08/21/functional-vs-java-style/comment-page-1/#comment-182509</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 20 Aug 2009 16:26:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.alittlemadness.com/?p=316#comment-182509</guid>
		<description>Hi Ricky,

Thanks for the comment, although it sounds like I&#039;ll need to be more controversial next time :).  I have seen Functional Java which looks interesting.  I am somewhat wary of the reimplementation of basic collections -- have you found this an issue when working with other Java libraries?  I&#039;d have to actually try it before I could pass any meaningful judgement.

I actually do really need to look into the alternatives as Pulse currently uses a home-grown library.  It was born before there was a decent alternative (particularly one which made use of generics), but I&#039;m sure we&#039;d be better off switching to something more complete now.</description>
		<content:encoded><![CDATA[<p>Hi Ricky,</p>
<p>Thanks for the comment, although it sounds like I&#8217;ll need to be more controversial next time <img src='http://www.alittlemadness.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .  I have seen Functional Java which looks interesting.  I am somewhat wary of the reimplementation of basic collections &#8212; have you found this an issue when working with other Java libraries?  I&#8217;d have to actually try it before I could pass any meaningful judgement.</p>
<p>I actually do really need to look into the alternatives as Pulse currently uses a home-grown library.  It was born before there was a decent alternative (particularly one which made use of generics), but I&#8217;m sure we&#8217;d be better off switching to something more complete now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricky Clarkson</title>
		<link>http://www.alittlemadness.com/2009/08/21/functional-vs-java-style/comment-page-1/#comment-182507</link>
		<dc:creator>Ricky Clarkson</dc:creator>
		<pubDate>Thu, 20 Aug 2009 16:01:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.alittlemadness.com/?p=316#comment-182507</guid>
		<description>Excellently said.  You might also look at Functional Java.  I think this is my first ever non-argumentative blog comment.</description>
		<content:encoded><![CDATA[<p>Excellently said.  You might also look at Functional Java.  I think this is my first ever non-argumentative blog comment.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
