I hate Java, I like C#

  • (2 Pages)
  • +
  • 1
  • 2

17 Replies - 6567 Views - Last Post: 27 July 2008 - 12:15 PM

#1 Tom9729   User is offline

  • Segmentation fault
  • member icon

Reputation: 181
  • View blog
  • Posts: 2,642
  • Joined: 30-December 07

I hate Java, I like C#

Posted 25 July 2008 - 10:26 PM

I've heard the "I despise Java, but I love C#" opinion a few times around these parts...

Got bored and decided to install Visual C# just to play around with it. Also grabbed XNA, and a few examples. Upon opening the examples and browsing through the code, my first thought was "Wow, there must be a mistake, I must have downloaded the Java version or something".

Just curious why you folks hold the opinion that you do (you know who you are ;)).

C# seems to be nothing more than Microsoft's latest implementation of Java. I'm not saying that there's anything wrong with that mind you...

</late-night-rant>

This post has been edited by Tom9729: 25 July 2008 - 10:27 PM


Is This A Good Question/Topic? 1
  • +

Replies To: I hate Java, I like C#

#2 Programmist   User is offline

  • Refactorer in Chief
  • member icon

Reputation: 256
  • View blog
  • Posts: 1,843
  • Joined: 02-January 06

Re: I hate Java, I like C#

Posted 25 July 2008 - 11:05 PM

View PostTom9729, on 25 Jul, 2008 - 10:26 PM, said:

C# seems to be nothing more than Microsoft's latest implementation of Java.


No offense, but you are just now coming to that conclusion? :) It's not quite a true as it once was as C# has grown in it's own direction, but yeah - it was a Java clone when it was first released - and a bad one at that.
Was This Post Helpful? 0
  • +
  • -

#3 PsychoCoder   User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1660
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: I hate Java, I like C#

Posted 26 July 2008 - 12:19 AM

C# was modeled after C++ and Java, but has taken off in its own direction since then, and in a good way at that. As for J#, I can code in it, but it is a dieing technology that Microsoft is phasing out of releases of Visual Studio Professional.

C#, in my opinion, was never a crappy copy of anything, but there's nothing anyone can do to settle the Java > C# debates that rage on :)
Was This Post Helpful? 0
  • +
  • -

#4 Nova Dragoon   User is offline

  • The Innocent Shall Suffer, Big Time
  • member icon

Reputation: 38
  • View blog
  • Posts: 6,169
  • Joined: 16-August 01

Re: I hate Java, I like C#

Posted 26 July 2008 - 07:17 AM

Both suck.

zing!
Was This Post Helpful? 0
  • +
  • -

#5 jacobjordan   User is offline

  • class Me : Perfection
  • member icon

Reputation: 115
  • View blog
  • Posts: 1,499
  • Joined: 11-June 08

Re: I hate Java, I like C#

Posted 26 July 2008 - 10:50 AM

C# is my favorite programming language. To me, it provides a good balance of ease of use and power. C++ too much on the "power" side and is not very easy to use, and VB is too easy to use and not very powerful. I've used C#, C++, and J#, and in my opinion C# does look kind of like a J# - C++ hybrid.

J# .NET
package HelloWorldProgram;

import System.Console;
public class Program
{
	public static void main(String[] args)
	{
		Console.WriteLine("Hello World!\n");
	}
}


C++ .NET
#include "stdafx.h"
#include <iostream>

using namespace System;

int main(array<System::String ^> ^args)
{
    Console::WriteLine("Hello World!\n");
    return 0;
}


And C# .NET
using System;

namespace HelloWorldProgram
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!\n");
        }
    }
}



BTW: i do hate Java and i do like C#.
Was This Post Helpful? 0
  • +
  • -

#6 Tom9729   User is offline

  • Segmentation fault
  • member icon

Reputation: 181
  • View blog
  • Posts: 2,642
  • Joined: 30-December 07

Re: I hate Java, I like C#

Posted 26 July 2008 - 11:09 AM

View PostProgrammist, on 26 Jul, 2008 - 02:05 AM, said:

No offense, but you are just now coming to that conclusion? :) It's not quite a true as it once was as C# has grown in it's own direction, but yeah - it was a Java clone when it was first released - and a bad one at that.

I had never really looked at C# until now. :)

View Postjacobjordan, on 26 Jul, 2008 - 01:50 PM, said:

BTW: i do hate Java and i do like C#.

Just curious, why?
Was This Post Helpful? 0
  • +
  • -

#7 baavgai   User is online

  • Dreaming Coder
  • member icon


Reputation: 7483
  • View blog
  • Posts: 15,510
  • Joined: 16-October 07

Re: I hate Java, I like C#

Posted 26 July 2008 - 12:22 PM

I like Java, I like C#. I don't really understand how a C# programmer could hate Java, because they're basically the same, except for a few minor bits. However, I do prefer C#. Here's a list of some of the goodness C# has over Java.

1. properties: Basically an explicit implementation of the Java conventions of getters and setters.
2. delegates: like a C function pointer. Allows for clean code and a far more elegant event model.
3. .NET framework: the namespace of java with the benefit of hind site. smooth integration of UI elements.
4. primitives: In Java there is an explicit different between primitives and objects. In C#, this line does not exist. The int type really is an Integer(Int32) object.
5. Visual Studio.

In the end, Visual Studio is one of the best IDEs I've ever used. Eclipse is broad, others are general or focused depending. In Visual Studio a novice programmer can have a Windows based program up and running in the time it takes to choose project type and press compile.

You can write C# in a text editor and use a command line compiler, but why would you? I suspect the "I hate Java" crowd aren't used to writing code in a simple text editor. Some of it may be "I hate leaving the warm and fuzzy IDE." At least, that's my theory.

This post has been edited by baavgai: 26 July 2008 - 12:22 PM

Was This Post Helpful? 0
  • +
  • -

#8 indrora   User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 100
  • Joined: 25-July 08

Re: I hate Java, I like C#

Posted 26 July 2008 - 12:31 PM

View Postbaavgai, on 26 Jul, 2008 - 12:22 PM, said:

I like Java, I like C#. I don't really understand how a C# programmer could hate Java, because they're basically the same, except for a few minor bits. However, I do prefer C#. Here's a list of some of the goodness C# has over Java.

1. properties: Basically an explicit implementation of the Java conventions of getters and setters.
2. delegates: like a C function pointer. Allows for clean code and a far more elegant event model.
3. .NET framework: the namespace of java with the benefit of hind site. smooth integration of UI elements.
4. primitives: In Java there is an explicit different between primitives and objects. In C#, this line does not exist. The int type really is an Integer(Int32) object.
5. Visual Studio.

you forgot something...
winforms! WPF! Linq!

... oh and another thing people dont remember ... (sploiler)
Spoiler

... :ph34r:
Was This Post Helpful? 0
  • +
  • -

#9 PixelCard   User is offline

  • D.I.C Head
  • member icon

Reputation: 48
  • View blog
  • Posts: 139
  • Joined: 20-June 08

Re: I hate Java, I like C#

Posted 26 July 2008 - 01:20 PM

I recently (a month ago) switched to C# and feel very comfortable with it. However, I am using both Java and C#. The arguments are:

For Java:
* Mobility. I can create Java applications that can be deployed on a wide variety of mobile devices.
* Applets. I can deploy my Java applications even through a web-browser.
* Cross-platform compatibility. I can run Java basically on any platform, for which there is a JVM.

For C#:
* Unsafe code. Using C# I can directly access the memory contents.
* .NET . This is self explanatory. The biggest part of the .NET platform is created using C#, and because every .NET language uses the same libraries, I can, for example, declare a VB.NET class as one, derived form a C# base class. Also, I can access thousands of .NET libraries.
* Windows Services. I can create Windows Services using C#.

I like both languages. They are very similar and this is a big plus when it comes to learning. Using both is a kind of 'double power'. :)

indrora said:

you forgot something...
winforms! WPF! Linq!


WinForms? Isn't there Swing in Java? WPF is a great thing, but it's not so massively used (however I like it very much).

This post has been edited by PixelCard: 26 July 2008 - 01:55 PM

Was This Post Helpful? 0
  • +
  • -

#10 baavgai   User is online

  • Dreaming Coder
  • member icon


Reputation: 7483
  • View blog
  • Posts: 15,510
  • Joined: 16-October 07

Re: I hate Java, I like C#

Posted 26 July 2008 - 01:49 PM

View Postindrora, on 26 Jul, 2008 - 03:31 PM, said:

you forgot something...
winforms! WPF! Linq!


Nope, didn't forget them. :P

WinForms is implicit and part of "smooth integration of UI elements".

WPF and Linq... I honestly wouldn't call such things a plus. They're also relatively new entries into .NET. Glad you like them, though.
Was This Post Helpful? 0
  • +
  • -

#11 jacobjordan   User is offline

  • class Me : Perfection
  • member icon

Reputation: 115
  • View blog
  • Posts: 1,499
  • Joined: 11-June 08

Re: I hate Java, I like C#

Posted 26 July 2008 - 02:59 PM

View PostTom9729, on 26 Jul, 2008 - 01:09 PM, said:

View Postjacobjordan, on 26 Jul, 2008 - 01:50 PM, said:

BTW: i do hate Java and i do like C#.

Just curious, why?

Well, i don't "Hate" Java, i just don't care for it. I am a computer programmer, and not a web programmer, so i really have no use for Java. J# was a joke, J++ doesn't exist anymore, and i don't even know if it's possible to make a program in standard Java.
Was This Post Helpful? 0
  • +
  • -

#12 Tom9729   User is offline

  • Segmentation fault
  • member icon

Reputation: 181
  • View blog
  • Posts: 2,642
  • Joined: 30-December 07

Re: I hate Java, I like C#

Posted 26 July 2008 - 03:26 PM

View Postjacobjordan, on 26 Jul, 2008 - 05:59 PM, said:

Well, i don't "Hate" Java, i just don't care for it. I am a computer programmer, and not a web programmer, so i really have no use for Java. J# was a joke, J++ doesn't exist anymore, and i don't even know if it's possible to make a program in standard Java.

Forgive my ignorance but what is standard Java as opposed to Java? :blink:
Was This Post Helpful? 0
  • +
  • -

#13 RodgerB   User is offline

  • D.I.C Lover
  • member icon

Reputation: 66
  • View blog
  • Posts: 2,284
  • Joined: 21-September 07

Re: I hate Java, I like C#

Posted 26 July 2008 - 03:36 PM

View PostTom9729, on 27 Jul, 2008 - 08:26 AM, said:

View Postjacobjordan, on 26 Jul, 2008 - 05:59 PM, said:

Well, i don't "Hate" Java, i just don't care for it. I am a computer programmer, and not a web programmer, so i really have no use for Java. J# was a joke, J++ doesn't exist anymore, and i don't even know if it's possible to make a program in standard Java.

Forgive my ignorance but what is standard Java as opposed to Java? :blink:

Some people like their coffee made differently.
Was This Post Helpful? 0
  • +
  • -

#14 jacobjordan   User is offline

  • class Me : Perfection
  • member icon

Reputation: 115
  • View blog
  • Posts: 1,499
  • Joined: 11-June 08

Re: I hate Java, I like C#

Posted 26 July 2008 - 04:11 PM

View PostTom9729, on 26 Jul, 2008 - 05:26 PM, said:

View Postjacobjordan, on 26 Jul, 2008 - 05:59 PM, said:

Well, i don't "Hate" Java, i just don't care for it. I am a computer programmer, and not a web programmer, so i really have no use for Java. J# was a joke, J++ doesn't exist anymore, and i don't even know if it's possible to make a program in standard Java.

Forgive my ignorance but what is standard Java as opposed to Java? :blink:

Um, there the same. I just called it "Standard Java" instead of just Java so you didn't get it mixed up with J# and J++.
Was This Post Helpful? 0
  • +
  • -

#15 Tom9729   User is offline

  • Segmentation fault
  • member icon

Reputation: 181
  • View blog
  • Posts: 2,642
  • Joined: 30-December 07

Re: I hate Java, I like C#

Posted 26 July 2008 - 05:53 PM

View Postjacobjordan, on 26 Jul, 2008 - 07:11 PM, said:

Um, there the same. I just called it "Standard Java" instead of just Java so you didn't get it mixed up with J# and J++.

Ahhh my mistake.

I think you're mixing up Java and Javascript though (which are completely unrelated surprisingly). :ph34r:
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2