<?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"
	>
<channel>
	<title>Comments on: Method names in Java can be named _ and why static import is a good thing</title>
	<atom:link href="http://www.codemonkeyism.com/archives/2006/06/06/method-names-in-java-can-be-named-_-and-why-static-import-is-a-good-thing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codemonkeyism.com/archives/2006/06/06/method-names-in-java-can-be-named-_-and-why-static-import-is-a-good-thing/</link>
	<description>Programming is hard</description>
	<pubDate>Sat, 22 Nov 2008 11:48:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: stephan</title>
		<link>http://www.codemonkeyism.com/archives/2006/06/06/method-names-in-java-can-be-named-_-and-why-static-import-is-a-good-thing/#comment-42</link>
		<dc:creator>stephan</dc:creator>
		<pubDate>Tue, 06 Jun 2006 17:39:14 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.cintoo.org/archives/2006/06/06/method-names-in-java-can-be-named-_-and-why-static-import-is-a-good-thing/#comment-42</guid>
		<description>Yes, this is no joke. I'm a great admirer of readable code. Which usually includes understandable and descriptive method names (the Messages code is not that bad).

After i18ning a big project most of the code was littered with i18n constructs. This reduced readibilty of the original business code (i18n understood as a orthogonal, non-business aspect) and made the code a lot less readable than before. To the point where lots of i18n was littered through Swing, display, logging and error code and the original business code was not understandable anymore.

With $ and _ as method names, the i18n part of the code fades away and no longer blocks the view to the really important code, the business one. 

But of course I would strongly regiment the usage of static imports in my projects and control the code with checkers or reviews. The same goes for $ and _ as or in method names. As always, don't be ideological, but use the best tools for the job. And if the best tool is $ as a method name, then you should use it I think. For people who can't live with $() or _(), Messages still supports Messages.format().

@Tom: Yes. In projects there should be a i18n guide with i18n guidelines for keys, words, wording, grammar and style. And the guide should explain how i18n is done, so the developers know what $() means. For reading code from other projects (open source) the IDE helps as you said. </description>
		<content:encoded><![CDATA[<p>Yes, this is no joke. I&#8217;m a great admirer of readable code. Which usually includes understandable and descriptive method names (the Messages code is not that bad).</p>
<p>After i18ning a big project most of the code was littered with i18n constructs. This reduced readibilty of the original business code (i18n understood as a orthogonal, non-business aspect) and made the code a lot less readable than before. To the point where lots of i18n was littered through Swing, display, logging and error code and the original business code was not understandable anymore.</p>
<p>With $ and _ as method names, the i18n part of the code fades away and no longer blocks the view to the really important code, the business one. </p>
<p>But of course I would strongly regiment the usage of static imports in my projects and control the code with checkers or reviews. The same goes for $ and _ as or in method names. As always, don&#8217;t be ideological, but use the best tools for the job. And if the best tool is $ as a method name, then you should use it I think. For people who can&#8217;t live with $() or _(), Messages still supports Messages.format().</p>
<p>@Tom: Yes. In projects there should be a i18n guide with i18n guidelines for keys, words, wording, grammar and style. And the guide should explain how i18n is done, so the developers know what $() means. For reading code from other projects (open source) the IDE helps as you said.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.codemonkeyism.com/archives/2006/06/06/method-names-in-java-can-be-named-_-and-why-static-import-is-a-good-thing/#comment-41</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Tue, 06 Jun 2006 17:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.cintoo.org/archives/2006/06/06/method-names-in-java-can-be-named-_-and-why-static-import-is-a-good-thing/#comment-41</guid>
		<description>Three cheers. If it makes the code in question clearer, I agree. And Ctrl Click in the IDE will give all the details someone else might need when looking at the code.</description>
		<content:encoded><![CDATA[<p>Three cheers. If it makes the code in question clearer, I agree. And Ctrl Click in the IDE will give all the details someone else might need when looking at the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john smith</title>
		<link>http://www.codemonkeyism.com/archives/2006/06/06/method-names-in-java-can-be-named-_-and-why-static-import-is-a-good-thing/#comment-40</link>
		<dc:creator>john smith</dc:creator>
		<pubDate>Tue, 06 Jun 2006 17:28:12 +0000</pubDate>
		<guid isPermaLink="false">http://stephan.cintoo.org/archives/2006/06/06/method-names-in-java-can-be-named-_-and-why-static-import-is-a-good-thing/#comment-40</guid>
		<description>You're kidding right?  You think a method name of _ is a good thing?  Then hiding it with a static import is a good thing?

It's not april fools day.  Where's the "I'm Kidding" at the end of the entry?</description>
		<content:encoded><![CDATA[<p>You&#8217;re kidding right?  You think a method name of _ is a good thing?  Then hiding it with a static import is a good thing?</p>
<p>It&#8217;s not april fools day.  Where&#8217;s the &#8220;I&#8217;m Kidding&#8221; at the end of the entry?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
