<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: C# vs Java Part 2: The Platforms (Desktop and Mobile)</title>
	<atom:link href="http://simpleprogrammer.com/2010/02/08/c-vs-java-part-2-the-platforms-desktop-and-mobile/feed/" rel="self" type="application/rss+xml" />
	<link>http://simpleprogrammer.com/2010/02/08/c-vs-java-part-2-the-platforms-desktop-and-mobile/</link>
	<description>Software Development from John Sonmez&#039;s Perspective</description>
	<lastBuildDate>Tue, 27 Jul 2010 15:11:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Pavel Savara</title>
		<link>http://simpleprogrammer.com/2010/02/08/c-vs-java-part-2-the-platforms-desktop-and-mobile/#comment-123</link>
		<dc:creator>Pavel Savara</dc:creator>
		<pubDate>Sun, 14 Feb 2010 16:44:38 +0000</pubDate>
		<guid isPermaLink="false">http://simpleprogrammer.com/?p=335#comment-123</guid>
		<description>You don&#039;t have to choose now. Use both of them http://jni4net.sf.net/

Enjoy!</description>
		<content:encoded><![CDATA[<p>You don&#8217;t have to choose now. Use both of them <a href="http://jni4net.sf.net/" rel="nofollow">http://jni4net.sf.net/</a></p>
<p>Enjoy!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dinah</title>
		<link>http://simpleprogrammer.com/2010/02/08/c-vs-java-part-2-the-platforms-desktop-and-mobile/#comment-91</link>
		<dc:creator>Dinah</dc:creator>
		<pubDate>Tue, 09 Feb 2010 15:36:47 +0000</pubDate>
		<guid isPermaLink="false">http://simpleprogrammer.com/?p=335#comment-91</guid>
		<description>Over the last few weeks I&#039;ve undertaken a task of converting a Java project with 36k lines to C#. Other than the UI stuff, it is dead simple to convert from Java to C#. Even the reflection hasn&#039;t been that hard. As I optimize the direct translations, it&#039;s made me realize a lot of huge advantages of C#.

The first is &quot;foreach&quot; and &quot;indexers&quot;. The code is so much cleaner when using these. Years ago when I did PHP work, PHP OOP hadn&#039;t yet come of age and everything was arrays, indexes, and foreach loops. I got so comfortable when them that I couldn&#039;t conceive of a language not having them.

Another big C# advantage is delegates. The Java code I&#039;m working with has dozens of observer pattern implementations that Java uses instead of delegates and events. I can refactor away many Java classes and file using 1-3 line long delegate and event C# code.

The final huge one is generics. It may just be the code base I&#039;m working with, but most Java I come across relies on native primitives to do all the work and un/boxing &quot;object&quot;s when another class else is used. This is horrible! Type-safety aside, it&#039;s just not as descriptive and intuitive as it could be. I only need to know that a variable is of type List to know exactly what it holds. I don&#039;t have to remember or reference how it was used. All that casting feels so cumbersome and ugly to me now.

After reading all of your posts - and they&#039;ve been wonderful - the biggest reason I stick with C# instead of Java though has gone unmentioned: the IDE. I think highly of C# and love using it. I enjoy the features, the syntactic sugar, and the tremendous community. In the end though, the IDE alone would keep me using it even if it sucked as a language.

To me, using Eclipse to code with Java feels like a sturdy SUV going through the mountains. It&#039;s rough, it&#039;s tough, it can handle anything capably, but it&#039;s still a really bumpy ride and my knuckles are white the whole time.

C# + Visual Studio feels like a yuppie SUV going down the highway. I&#039;m every bit as safe, the road is smooth and I&#039;m gliding along. I&#039;ll still never confuse it for a sportscar or motorcycle but I&#039;d much rather be sailing down the highway than through the mountains.</description>
		<content:encoded><![CDATA[<p>Over the last few weeks I&#8217;ve undertaken a task of converting a Java project with 36k lines to C#. Other than the UI stuff, it is dead simple to convert from Java to C#. Even the reflection hasn&#8217;t been that hard. As I optimize the direct translations, it&#8217;s made me realize a lot of huge advantages of C#.</p>
<p>The first is &#8220;foreach&#8221; and &#8220;indexers&#8221;. The code is so much cleaner when using these. Years ago when I did PHP work, PHP OOP hadn&#8217;t yet come of age and everything was arrays, indexes, and foreach loops. I got so comfortable when them that I couldn&#8217;t conceive of a language not having them.</p>
<p>Another big C# advantage is delegates. The Java code I&#8217;m working with has dozens of observer pattern implementations that Java uses instead of delegates and events. I can refactor away many Java classes and file using 1-3 line long delegate and event C# code.</p>
<p>The final huge one is generics. It may just be the code base I&#8217;m working with, but most Java I come across relies on native primitives to do all the work and un/boxing &#8220;object&#8221;s when another class else is used. This is horrible! Type-safety aside, it&#8217;s just not as descriptive and intuitive as it could be. I only need to know that a variable is of type List to know exactly what it holds. I don&#8217;t have to remember or reference how it was used. All that casting feels so cumbersome and ugly to me now.</p>
<p>After reading all of your posts &#8211; and they&#8217;ve been wonderful &#8211; the biggest reason I stick with C# instead of Java though has gone unmentioned: the IDE. I think highly of C# and love using it. I enjoy the features, the syntactic sugar, and the tremendous community. In the end though, the IDE alone would keep me using it even if it sucked as a language.</p>
<p>To me, using Eclipse to code with Java feels like a sturdy SUV going through the mountains. It&#8217;s rough, it&#8217;s tough, it can handle anything capably, but it&#8217;s still a really bumpy ride and my knuckles are white the whole time.</p>
<p>C# + Visual Studio feels like a yuppie SUV going down the highway. I&#8217;m every bit as safe, the road is smooth and I&#8217;m gliding along. I&#8217;ll still never confuse it for a sportscar or motorcycle but I&#8217;d much rather be sailing down the highway than through the mountains.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jsonmez</title>
		<link>http://simpleprogrammer.com/2010/02/08/c-vs-java-part-2-the-platforms-desktop-and-mobile/#comment-90</link>
		<dc:creator>jsonmez</dc:creator>
		<pubDate>Mon, 08 Feb 2010 22:27:39 +0000</pubDate>
		<guid isPermaLink="false">http://simpleprogrammer.com/?p=335#comment-90</guid>
		<description>I didn&#039;t really address winforms.  But I have created custom control in winforms that would have been able to implement similar functionality, although not as easy as that Swing example.  WPF is not winforms though.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t really address winforms.  But I have created custom control in winforms that would have been able to implement similar functionality, although not as easy as that Swing example.  WPF is not winforms though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikhail</title>
		<link>http://simpleprogrammer.com/2010/02/08/c-vs-java-part-2-the-platforms-desktop-and-mobile/#comment-89</link>
		<dc:creator>Mikhail</dc:creator>
		<pubDate>Mon, 08 Feb 2010 20:47:03 +0000</pubDate>
		<guid isPermaLink="false">http://simpleprogrammer.com/?p=335#comment-89</guid>
		<description>I am not a WinForms expert but I do not agree with you regarding Swing vs. WinForms comparison. Swing implements MVC at UIControl level (not at application level) and is much more powerful then WinForms. There is no much talk about Swing lately because everything was already said 10 years ago. Take a look what this guy is doing with Swing, would it be possible with WinForms &lt;a&gt;http://www.jroller.com/santhosh/date/20050610&lt;/a&gt; ?</description>
		<content:encoded><![CDATA[<p>I am not a WinForms expert but I do not agree with you regarding Swing vs. WinForms comparison. Swing implements MVC at UIControl level (not at application level) and is much more powerful then WinForms. There is no much talk about Swing lately because everything was already said 10 years ago. Take a look what this guy is doing with Swing, would it be possible with WinForms <a>http://www.jroller.com/santhosh/date/20050610</a> ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
