<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>try {} catch () &#187; Java</title>
	<atom:link href="http://blog.gerardin.info/archives/category/java/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.gerardin.info</link>
	<description>Java, Agile, the Web and other nice things</description>
	<lastBuildDate>Tue, 14 Jun 2011 09:48:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Java in Flux&#8230; a Java roadmap (kindof)</title>
		<link>http://blog.gerardin.info/archives/767</link>
		<comments>http://blog.gerardin.info/archives/767#comments</comments>
		<pubDate>Wed, 30 Mar 2011 21:59:47 +0000</pubDate>
		<dc:creator>Olivier Gérardin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[keynote]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[roadmap]]></category>
		<category><![CDATA[tssjs]]></category>

		<guid isPermaLink="false">http://blog.gerardin.info/?p=767</guid>
		<description><![CDATA[Must read keynote from the TSSJS conf last week&#8230; I was thrilled by the Aeon Flux reference btw [edit: the presentation has been removed and is no longer accessible... you can read the related blog entry here. Thanks Chris for making me aware of this]]]></description>
			<content:encoded><![CDATA[<div id="__ss_7288918" style="width: 425px;">Must read keynote from the TSSJS conf last week&#8230; I was thrilled by the Aeon Flux reference btw <img src='http://blog.gerardin.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
<div style="width: 425px;"><span style="display: block; margin: 12px 0 4px;">[edit: the presentation has been removed and is no longer accessible... you can read the related blog entry <a href="http://blogs.oracle.com/java/2011/03/java_in_flux_utopia_or_deuteranopia.html" target="_blank" class="liexternal">here</a>. Thanks Chris for making me aware of this]</span></div>
<p><script src="http://b.scorecardresearch.com/beacon.js?c1=7&amp;c2=7400849&amp;c3=1&amp;c4=&amp;c5=&amp;c6="></script><script src="http://b.scorecardresearch.com/beacon.js?c1=7&amp;c2=7400849&amp;c3=1&amp;c4=&amp;c5=&amp;c6="></script></p>
<p><script src="http://b.scorecardresearch.com/beacon.js?c1=7&amp;c2=7400849&amp;c3=1&amp;c4=&amp;c5=&amp;c6="></script><br />
<script src="http://b.scorecardresearch.com/beacon.js?c1=7&amp;c2=7400849&amp;c3=1&amp;c4=&amp;c5=&amp;c6="></script></p>]]></content:encoded>
			<wfw:commentRss>http://blog.gerardin.info/archives/767/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Testatoo: TDD for the GUI</title>
		<link>http://blog.gerardin.info/archives/738</link>
		<comments>http://blog.gerardin.info/archives/738#comments</comments>
		<pubDate>Fri, 02 Jul 2010 09:41:32 +0000</pubDate>
		<dc:creator>Olivier Gérardin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Automated testing]]></category>
		<category><![CDATA[DSL]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://blog.gerardin.info/?p=738</guid>
		<description><![CDATA[Test-driven development is a good thing. We all agree on that, right? But TDD assumes you can write tests before actually implementing the functionality. How do you do for the GUI when most GUI test tools are based on a scenario-recording appraoch? This requires that the GUI already exists; in other words, another instance of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.gerardin.info/wp-content/uploads/2010/07/testatoo_logo.png" class="liimagelink"><img class="alignleft size-full wp-image-742" title="testatoo_logo" src="http://blog.gerardin.info/wp-content/uploads/2010/07/testatoo_logo.png" alt="" width="250" height="95" /></a></p>
<p>Test-driven development is a good thing. We all agree on that, right?</p>
<p>But TDD assumes you can write tests before actually implementing the functionality. How do you do for the GUI when most GUI test tools are based on a scenario-recording appraoch? This requires that the GUI already exists;  in other words, another instance of the &#8220;chicken or the egg&#8221; dilemma&#8230;</p>
<p>My friend David Avenante (and host in Montréal for the confoo.ca 2010 conference), has been working on a solution to this problem called Testatoo.</p>
<p>From the web site: &#8220;Testatoo provides on one hand an abstraction of the UI business domain through an expressive API and on the other hand a way to express this domain via a DSL (a button semantically stays a buttons whatever the technology). With Testatoo you can therefore write tests with a seldom achieved level of expressiveness and make these tests INDEPENDENT of the underlying technology.&#8221;</p>
<p>Interested? The <a href="http://www.testatoo.org/" class="liexternal">testatoo web site</a> is now up, with tutorials, demos, samples, FAQ, and a forum ! Give it a try, and post your feedback&#8230;</p>]]></content:encoded>
			<wfw:commentRss>http://blog.gerardin.info/archives/738/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EricDaugherty.com: Does Write Once Run Anwhere Work?</title>
		<link>http://blog.gerardin.info/archives/691</link>
		<comments>http://blog.gerardin.info/archives/691#comments</comments>
		<pubDate>Wed, 17 Feb 2010 14:04:56 +0000</pubDate>
		<dc:creator>Olivier Gérardin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[GWT]]></category>
		<category><![CDATA[WORA]]></category>

		<guid isPermaLink="false">http://blog.gerardin.info/?p=691</guid>
		<description><![CDATA[Eric Daugherty: Realistically, I think tools like GWT are the future. As a Flex developer, I enjoy the ability to quickly and easily create rich applications that will render the same on ever user&#38;apos;s machine. But I would prefer that the Flex applications would compile to HTML and JavaScript, so they could be run native [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.gerardin.info/wp-content/uploads/2009/05/java_logo.png" class="liimagelink"><img class="size-full wp-image-214 alignleft" style="border: 0pt none; margin-left: 10px; margin-right: 10px;" title="java_logo" src="http://blog.gerardin.info/wp-content/uploads/2009/05/java_logo.png" alt="" width="65" height="119" /></a>Eric Daugherty:</p>
<p><em>Realistically, I think tools like GWT are the future.  As a Flex developer, I enjoy the ability to quickly and easily create rich applications that will render the same on ever user&amp;apos;s machine.  But I would prefer that the Flex applications would compile to HTML and JavaScript, so they could be run native in the browser.</em></p>
<p>via <a href="http://blog.ericdaugherty.com/2010/02/does-write-once-run-anwhere-work.html" class="liexternal">EricDaugherty.com: Does Write Once Run Anwhere Work?</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.gerardin.info/archives/691/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kindle Development Kit to use Java</title>
		<link>http://blog.gerardin.info/archives/683</link>
		<comments>http://blog.gerardin.info/archives/683#comments</comments>
		<pubDate>Mon, 08 Feb 2010 12:01:15 +0000</pubDate>
		<dc:creator>Olivier Gérardin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[kindle]]></category>

		<guid isPermaLink="false">http://blog.gerardin.info/?p=683</guid>
		<description><![CDATA[Amazon has unveiled the details of its development kit for its Kindle e-book reader. The so called &#8220;Kindle development kit for active content&#8221; (or KDK) will be based on Java 1.4 Personal Basis Profile (JSR 217); custom additional APIs will be available for networking, local storage, specific UI components, etc. (see javadoc). As strongly as [...]]]></description>
			<content:encoded><![CDATA[<p>Amazon has unveiled the details of its development kit for its Kindle e-book reader.</p>
<p>The so called &#8220;Kindle development kit for active content&#8221; (or KDK) will be based on Java 1.4 Personal Basis Profile (<a href="http://java.sun.com/javame/reference/apis/jsr217/" target="_blank" class="liexternal">JSR 217</a>); custom additional APIs will be available for networking, local storage, specific UI components, etc. (see <a href="http://kdk-javadocs.s3.amazonaws.com/index.html" target="_blank" class="liexternal">javadoc</a>).</p>
<p>As strongly as I feel about <a href="http://blog.gerardin.info/archives/306" target="_blank" class="liexternal">not actually owning what&#8217;s on your Kindle</a>, this comes as a good news for Java when its future is being questioned after the Oracle merger.</p>
<p>You can read the KDK FAQ <a href="https://kindlepublishing.amazon.com/gp/vendor/kindlepubs/kdk/get-content?id=200436000" target="_blank" class="liexternal">there</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.gerardin.info/archives/683/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Google Collections Library 1.0 final</title>
		<link>http://blog.gerardin.info/archives/660</link>
		<comments>http://blog.gerardin.info/archives/660#comments</comments>
		<pubDate>Mon, 04 Jan 2010 14:19:42 +0000</pubDate>
		<dc:creator>Olivier Gérardin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[collections]]></category>

		<guid isPermaLink="false">http://blog.gerardin.info/?p=660</guid>
		<description><![CDATA[The Google Collections Library 1.0 is a set of new collection types, implementations and related goodness for Java 5 and higher, brought to you by Google. It is a natural extension of the Java Collections Framework. We have finally (Dec 30, 2009) released version 1.0-final! The API is now frozen: there will be no more [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>The Google Collections Library 1.0 is a set of new collection types, implementations and related goodness for Java 5 and higher, brought to you by Google. It is a natural extension of the Java Collections Framework.<br />
We have finally (Dec 30, 2009) released version 1.0-final! The API is now frozen: there will be no more source- or binary-incompatible changes, except those that can be performed via a minimum 18-month-long deprecation window.</p></blockquote>
<p><a href="http://code.google.com/p/google-collections/" target="_blank" class="liexternal">Project page</a></p>
<p><a href="http://google-collections.googlecode.com/files/google-collect-1.0.zip" target="_blank" class="lizip">Download Google Collections Library 1.0-final</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.gerardin.info/archives/660/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Support the Elvis proposal for Java !</title>
		<link>http://blog.gerardin.info/archives/658</link>
		<comments>http://blog.gerardin.info/archives/658#comments</comments>
		<pubDate>Wed, 30 Dec 2009 12:45:56 +0000</pubDate>
		<dc:creator>Olivier Gérardin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[elvis]]></category>
		<category><![CDATA[java 7]]></category>

		<guid isPermaLink="false">http://blog.gerardin.info/?p=658</guid>
		<description><![CDATA[Are you tired of writing (x != null) ? x.getThis() : null Would you rather write something like x?.getThis() If so, support the Elvis proposal for Java ! Interesting alternative notations can be found here.]]></description>
			<content:encoded><![CDATA[<p>Are you tired of writing<br />
<code>(x != null) ? x.getThis() : null</code></p>
<p>Would you rather write something like<br />
<code>x?.getThis()</code></p>
<p>If so, support the <a href="http://docs.google.com/Doc?docid=ddb3zt39_78frdf87dc&amp;hl=en" target="_blank" class="liexternal">Elvis proposal for Java</a> !</p>
<p>Interesting alternative notations can be found <a href="http://blogs.infosupport.com/blogs/peterhe/archive/2009/03/02/Java-7-and-the-Elvis-operator.aspx" target="_blank" class="liexternal">here</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.gerardin.info/archives/658/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mark Reinhold&#8217;s proposal for Java closures</title>
		<link>http://blog.gerardin.info/archives/632</link>
		<comments>http://blog.gerardin.info/archives/632#comments</comments>
		<pubDate>Mon, 14 Dec 2009 08:18:07 +0000</pubDate>
		<dc:creator>Olivier Gérardin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[closures]]></category>

		<guid isPermaLink="false">http://blog.gerardin.info/?p=632</guid>
		<description><![CDATA[I believe this proposal, although incomplete, to be much more acceptable to the current Java community than existing BGGA or FCM. Most proposals state that it&#8217;s not the syntax that matters, it&#8217;s the semantics. While this is undoubtedly true, syntax is the first thing a programmer will see and judge the feature by. If the [...]]]></description>
			<content:encoded><![CDATA[<p>I believe this proposal, although incomplete, to be much more acceptable to the current Java community than existing <a href="http://www.javac.info/closures-v05.html" target="_blank" class="liexternal">BGGA</a> or <a href="http://docs.google.com/Doc?id=ddhp95vd_6hg3qhc" target="_blank" class="liexternal">FCM</a>.</p>
<p>Most proposals state that it&#8217;s not the syntax that matters, it&#8217;s the semantics. While this is undoubtedly true, syntax is the first thing a programmer will see and judge the feature by. If the syntax isn&#8217;t self-explanatory enough, it will be a cause of rejection, and the feature will not be used as it could have been. So I do believe syntax is a key point of the future Java closures feature, and in this respect I tend to favor Mak Rheinhold&#8217;s proposal or the FCM proposal rather than BGGA.</p>
<p><a href="http://cr.openjdk.java.net/~mr/lambda/straw-man/" target="_blank" class="liexternal">Mark Rheinhold&#8217;s proposal</a></p>
<p><a href="http://openjdk.java.net/projects/lambda/" target="_blank" class="liexternal">Project Lambda</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.gerardin.info/archives/632/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lambdaj &#8211; easy collection manipulation</title>
		<link>http://blog.gerardin.info/archives/561</link>
		<comments>http://blog.gerardin.info/archives/561#comments</comments>
		<pubDate>Tue, 17 Nov 2009 12:45:07 +0000</pubDate>
		<dc:creator>Olivier Gérardin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[closures]]></category>
		<category><![CDATA[lambdaj]]></category>

		<guid isPermaLink="false">http://blog.gerardin.info/?p=561</guid>
		<description><![CDATA[LambaJ is quite an interesting project. How many times did you write the same loop, with only a few differences that were impossible to factor out because of the lack of closures in Java? LambdaJ partially alleviates the need for closures by allowing the manipulation of Collections in a way that doesn&#8217;t require iterating through [...]]]></description>
			<content:encoded><![CDATA[<p>LambaJ is quite an interesting project. How many times did you write the same loop, with only a few differences that were impossible to factor out because of the lack of closures in Java?</p>
<p>LambdaJ partially alleviates the need for closures by allowing the manipulation of Collections in a way that doesn&#8217;t require iterating through the items. For example you could write</p>
<pre class="prettyprint"><span class="pln">forEach</span><span class="pun">(</span><span class="pln">personInFamily</span><span class="pun">).</span><span class="pln">setLastName</span><span class="pun">(</span><span class="str">"Fusco"</span><span class="pun">);</span></pre>
<p>with personInFamily being a List of Person, and setLastName being a method on the Person class. Actually, forEach returns a proxy that implements both the Iterable interface and the methods of the collection items&#8217; class (Person in this case). A call to any of these methods is then propagated to each member of the collection.</p>
<p>As you can see, LambdaJ uses the DSL-style notation that mock frameworks introduced, which I&#8217;m not particularly fond of; but I must say that in this case it produces quite elegant and readable code.</p>
<p>As a bonus, LambaJ also offers <a href="http://code.google.com/p/lambdaj/wiki/Closures" target="_blank" class="liexternal">its own flavor of closures</a>&#8230;</p>
<p><a href="http://code.google.com/p/lambdaj/" class="liexternal">lambdaj &#8211; Project Hosting on Google Code</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.gerardin.info/archives/561/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Is Oracle Good for Java?&#8221;</title>
		<link>http://blog.gerardin.info/archives/524</link>
		<comments>http://blog.gerardin.info/archives/524#comments</comments>
		<pubDate>Mon, 09 Nov 2009 23:48:35 +0000</pubDate>
		<dc:creator>Olivier Gérardin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Sun]]></category>

		<guid isPermaLink="false">http://blog.gerardin.info/?p=524</guid>
		<description><![CDATA[Continuing the series, here&#8217;s Bert Ertman&#8217;s opinion after Oracle&#8217;s OpenWorld : (&#8230;) To sum things up so far, Oracle’s message is about integrating everything into a single (bright red colored) solution. They deserve credit for the way their current stack seems to deliver to that promise. However, Java’s promise has always been about opening everything [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.gerardin.info/archives/149/zot_sun_s_oracle_b" rel="attachment wp-att-154" class="liimagelink"><img class="size-full wp-image-154 alignright" style="border: 0pt none;" title="Logo Sun/Oracle" src="http://blog.gerardin.info/wp-content/uploads/2009/04/zot_sun_s_oracle_b.gif" alt="Logo Sun/Oracle" width="195" height="98" /></a></p>
<p>Continuing the series, here&#8217;s Bert Ertman&#8217;s opinion after Oracle&#8217;s OpenWorld :</p>
<blockquote><p>(&#8230;) To sum things up so far, Oracle’s message is about integrating everything into a single (bright red colored) solution. They deserve credit for the way their current stack seems to deliver to that promise. However, Java’s promise has always been about opening everything up for innovation and boldly go where no-one has gone before (lame quote alert, but it holds the truth). I don’t see where the latter fits in within Oracle. (&#8230;)</p></blockquote>
<p><a href="http://blogs.infosupport.com/blogs/berte/archive/2009/10/14/impressions-from-oracle-openworld-is-oracle-good-for-java.aspx" target="_blank" class="liexternal">Read the entire post</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.gerardin.info/archives/524/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle-Sun acquisition: update</title>
		<link>http://blog.gerardin.info/archives/486</link>
		<comments>http://blog.gerardin.info/archives/486#comments</comments>
		<pubDate>Fri, 30 Oct 2009 12:40:08 +0000</pubDate>
		<dc:creator>Olivier Gérardin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Sun]]></category>

		<guid isPermaLink="false">http://blog.gerardin.info/?p=486</guid>
		<description><![CDATA[I have already commented on this subject, and nothing much has changed since then&#8230; the acquisition is still pending regulatory issues, and Larry Ellison is trying to put pressure on the EU by saying everywhere that every day until the deal closes, he loses 100.000 dollars, a figure that can&#8217;t be confirmed of course. Anyway, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.gerardin.info/archives/149/zot_sun_s_oracle_b" rel="attachment wp-att-154" class="liimagelink"><img class="alignleft size-full wp-image-154" style="border: 0pt none;" title="Logo Sun/Oracle" src="http://blog.gerardin.info/wp-content/uploads/2009/04/zot_sun_s_oracle_b.gif" alt="Logo Sun/Oracle" width="195" height="98" /></a>I have already <a href="http://blog.gerardin.info/archives/149" target="_blank" class="liexternal">commented on this subject</a>, and nothing much has changed since then&#8230; the acquisition is still pending regulatory issues, and Larry Ellison is trying to put pressure on the EU by saying everywhere that every day until the deal closes, he loses 100.000 dollars, a figure that can&#8217;t be confirmed of course.</p>
<p>Anyway, a few days ago Oracle updated its web page dedicated to the acquisition, and we can now find there a document named &#8220;<a href="http://www.oracle.com/us/sun/038563.pdf" target="_blank" class="lipdf">Oracle and Sun overview and FAQ</a>&#8220;. In summary, this is what we can retain from this document regarding Java-related issues:</p>
<ul>
<li>Java: Oracle plans to &#8220;accelerate investment on the Java platform&#8221;.</li>
<li>DBs: Oracle claims it will spend more money then Sun does now developing MySQL.</li>
<li>IDEs: JDeveloper, NetBeans and Oracle&#8217;s own flavor of Eclipse will coexist&#8230; for now.</li>
<li>Application servers: Oracle will continue evolving Glassfish as JEE reference implementation, and also work towards &#8220;aligning common infrastructure components“ between Glassfish and WebLogic. Does this sound like a step to merging both products?</li>
</ul>
<p>Other announcements include increased funding for Solaris and SPARC, continued support for virtualization products, and a few other things.</p>
<p>Overall this is obviously meant to be reassuring to everyone: there is no intention to drop any product, most of them will get increased investment, Oracle now has the best hardware and software combination, etc. But until we know what &#8220;accelerate investment on the Java platform&#8221; exactly means, there&#8217;s still a lot of room for speculations.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.gerardin.info/archives/486/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

