<?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: Message formatting in Java</title>
	<atom:link href="http://karlagius.com/2009/12/09/message-formatting-in-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://karlagius.com/2009/12/09/message-formatting-in-java/</link>
	<description>It&#039;s not rocket science</description>
	<lastBuildDate>Sun, 05 Feb 2012 20:23:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Karl</title>
		<link>http://karlagius.com/2009/12/09/message-formatting-in-java/comment-page-1/#comment-1057</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Sat, 05 Jun 2010 12:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://karlagius.com/?p=373#comment-1057</guid>
		<description>Thanks Don :) The ordinal can be used in this case, but I prefer to explicitly define an integer to break the dependency on the ordering of the enum.
Static MessageFormat instances can be useful in places, but in my opinion looking up the instance to use as opposed to just using the static method just adds noise to the code. 
In terms of performance, the static instance is way faster (it averages 2000ms less over 1 million iterations on my machine), so it&#039;s definitely something to consider if the code is called often.</description>
		<content:encoded><![CDATA[<p>Thanks Don <img src='http://karlagius.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  The ordinal can be used in this case, but I prefer to explicitly define an integer to break the dependency on the ordering of the enum.<br />
Static MessageFormat instances can be useful in places, but in my opinion looking up the instance to use as opposed to just using the static method just adds noise to the code.<br />
In terms of performance, the static instance is way faster (it averages 2000ms less over 1 million iterations on my machine), so it&#8217;s definitely something to consider if the code is called often.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don</title>
		<link>http://karlagius.com/2009/12/09/message-formatting-in-java/comment-page-1/#comment-1056</link>
		<dc:creator>Don</dc:creator>
		<pubDate>Fri, 04 Jun 2010 18:10:42 +0000</pubDate>
		<guid isPermaLink="false">http://karlagius.com/?p=373#comment-1056</guid>
		<description>Enums have an int associated with them already - .ordinal().  That&#039;s why they can be used in switch-case statements.  Any thoughts on usefulness of static MessageFormat instances as opposed to always using the static method MessageFormat.format?</description>
		<content:encoded><![CDATA[<p>Enums have an int associated with them already &#8211; .ordinal().  That&#8217;s why they can be used in switch-case statements.  Any thoughts on usefulness of static MessageFormat instances as opposed to always using the static method MessageFormat.format?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://karlagius.com/2009/12/09/message-formatting-in-java/comment-page-1/#comment-1052</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Thu, 25 Mar 2010 13:54:25 +0000</pubDate>
		<guid isPermaLink="false">http://karlagius.com/?p=373#comment-1052</guid>
		<description>Thanks Chris.</description>
		<content:encoded><![CDATA[<p>Thanks Chris.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Micallef</title>
		<link>http://karlagius.com/2009/12/09/message-formatting-in-java/comment-page-1/#comment-1051</link>
		<dc:creator>Chris Micallef</dc:creator>
		<pubDate>Thu, 25 Mar 2010 13:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://karlagius.com/?p=373#comment-1051</guid>
		<description>An interesting read indeed Karl.</description>
		<content:encoded><![CDATA[<p>An interesting read indeed Karl.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://karlagius.com/2009/12/09/message-formatting-in-java/comment-page-1/#comment-1038</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Sat, 23 Jan 2010 19:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://karlagius.com/?p=373#comment-1038</guid>
		<description>Whoa, thanks Dreas :) Glad you liked it.</description>
		<content:encoded><![CDATA[<p>Whoa, thanks Dreas <img src='http://karlagius.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Glad you liked it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas Grech</title>
		<link>http://karlagius.com/2009/12/09/message-formatting-in-java/comment-page-1/#comment-1037</link>
		<dc:creator>Andreas Grech</dc:creator>
		<pubDate>Sat, 23 Jan 2010 13:01:27 +0000</pubDate>
		<guid isPermaLink="false">http://karlagius.com/?p=373#comment-1037</guid>
		<description>Immensely useful article.  I like the part about the Template Engine</description>
		<content:encoded><![CDATA[<p>Immensely useful article.  I like the part about the Template Engine</p>
]]></content:encoded>
	</item>
</channel>
</rss>

