Jump to content
  • Advertisement
Sign in to follow this  
jdub

A Noobs Question: Java or C#?

This topic is 3993 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am new to programming. I have started java over the summer but after reading around on the forums I have thought about trying C#. I would like to know: 1. what are the benifits of C# vs. Java and vice versa. 2. Where i could get a compiler and IDE

Share this post


Link to post
Share on other sites
Advertisement
Quote:

1. what are the benifits of C# vs. Java and vice versa.

I assume your final objective is game programming, since you are in this forum, IMHO:
for beginner, C# has:
XNA
for industrial standard, C# has:
Direct-X
and most important, there are tons of Articles and sample code in the SDK. Best for beginner.
this is slightly better for C# programming, than Java.
Of course , if you want cross-platform, java is best.

Share this post


Link to post
Share on other sites
Oh man. This is definitely a trap question. Honestly either would suit you fine, I think the biggest deciding factor is whether or not you hate Microsoft.

Let me see if I can make some comparisons without anyone getting frothing mad.

- Java -
Pros:
Larger user-base
More tools
Lots of good, free IDEs to choose from
More open-source friendly
Better at being cross-platform
Not Microsoft

Cons:
Language is annoyingly restrictive

- C# -
Pros:
Language is friendlier, less restrictive
Language is evolving more quickly
Better games support (XNA)

Cons:
Microsoft

Share this post


Link to post
Share on other sites
From user perspective - all existing Java software is substantially slower its C counterparts.

Share this post


Link to post
Share on other sites
I recommend C#. Java is a pain and the IDEs (*cough* Eclipse *cough*) are, in my opinion, slow and harder to use than something like Visual Studio or even command line.

C# is cross platform too as nobody owns C#. Microsoft owns XNA and DirectX, but there is nothing stopping anyone from using C# with the Mono Project and the Tao Framework to make games for Linux and OS X. I'm currently in the process of doing just that. To be fair it was tricky getting set up, but now that I have things going on OS X, I'll probably write up some tutorials.

Java and C# share some similar ideologies, syntax, and constructs so either one you learn first, the other will be a piece of cake. Just go with whichever you want to try. I think Java is a bit slower than C#, but certainly not unable to make games.

Share this post


Link to post
Share on other sites
Quote:
Original post by NickGravelyn
I recommend C#. Java is a pain and the IDEs (*cough* Eclipse *cough*) are, in my opinion, slow and harder to use than something like Visual Studio or even command line.

C# is cross platform too as nobody owns C#. Microsoft owns XNA and DirectX, but there is nothing stopping anyone from using C# with the Mono Project and the Tao Framework to make games for Linux and OS X. I'm currently in the process of doing just that. To be fair it was tricky getting set up, but now that I have things going on OS X, I'll probably write up some tutorials.

Java and C# share some similar ideologies, syntax, and constructs so either one you learn first, the other will be a piece of cake. Just go with whichever you want to try. I think Java is a bit slower than C#, but certainly not unable to make games.


While it is true that C# runs on multiple platforms (with mono) one has to remeber that mono sucks (its extremely slow compared to Suns JVM or Microsofts .NET).

Share this post


Link to post
Share on other sites
Quote:
Original post by Karnot
From user perspective - all existing Java software is substantially slower its C counterparts.

Even if that were the case, this discussion is not about C. You do realise that C# has nothing to do with C, right?

Share this post


Link to post
Share on other sites
Quote:
Original post by Karnot
From user perspective - all existing Java software is substantially slower its C counterparts.


This isn't the case any more, hasn't been for years, and even if it was, C# and Java are handled virtually identically, to the best of my knowledge (compiled to bytecode and then JIT compiled -- with the option of forcibly caching this compiled code).

@The OP - There is little between them. Personally I'd go for C#, simply because a) I'm familiar enough with it to know I would recommend it and b) Visual Studio (Express) seems like a better IDE than Java has to offer (although Eclipse does seem alright, in fairness).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!