Sign in to follow this  
Followers 0
jagguy

c++ or c#

40 posts in this topic

I haven't been around for a while , and I have a basic query. I just want to ask how C# is now rated compared to C++. Like , is C++ still the most popular language, or is c# now seen as more of an equal to C++ for game programming?
0

Share this post


Link to post
Share on other sites
With C# you can land a job as a tools programmer in a games company. With C++ you have more chances to be able to work on the engine, gameplay, etc... Games themselves are mostly written in C++.
0

Share this post


Link to post
Share on other sites
Mat Noguchi from bungie is a big advocate of c# so some of the industry is beginning to turn. There was mention of it a month or so back on sweng-gamedev mailing list IIRC.

0

Share this post


Link to post
Share on other sites
C++ is still the most commonly used language in the industry, and probably will be for a while to come (mainly because current programmers are already trained in C++, and many companies 500,000+ line code bases are still written in C++). As was stated above, C# is very useful for tool development and other auxilliary components for the game, and it is making signifigant inroads in the business app/GUI development field, thanks to the capabilities of the .NET framework.
0

Share this post


Link to post
Share on other sites
if your using c# arraylists to manage your textures your gonna get a performance hit.

using realloc and a stack to remember which array indexes are empty is fast.

c# have an unsafe allocator aswell so you can use that. But then your gonna have as much coding to do as c++.

0

Share this post


Link to post
Share on other sites
I prefer C++ because I have been using it for 4 years. C# is really easy to use, and very similar to Java. I think one day C# will start to make a bigger impact in the game industry but right now C++ is the main language.
0

Share this post


Link to post
Share on other sites
Quote:
Original post by adam23
I prefer C++ because I have been using it for 4 years.

So next year you will prefer it because you have been using it for 5 years?

0

Share this post


Link to post
Share on other sites
C# isn't available for any consoles yet. There's been some word that MS is working one something to have C# on XBOX 360. Possibly just GUI stuff. I remember reading something on it, but I can't find the page right now.
0

Share this post


Link to post
Share on other sites
Quote:
Original post by nickwinters
C# isn't available for any consoles yet.
Incorrect. At the last GDC, they had a Managed DirectX demo running on an Xbox 360.
0

Share this post


Link to post
Share on other sites
Are you asking becuase you want to know which one to learn? If you are, learn both. If you learn on picking up the other shouldn't be to hard either(Which is true with a lot of languages, they all have the same base things). I prefer C++ becuase i find it more portable(probably every major system has a c++ library for it).
0

Share this post


Link to post
Share on other sites
Personally, I started game development (well..samples etc) in C++, making a basic RPG, and now I prefer C#.

C# is simpler, and easier to manage then ++, and in programs such as games (which you will want to re-use the code for later / make changes during development) this is essential.

I don't know much about the current state of the market, but my guess is the game industry needs to keep pumping out games, so they use what they know.

I can't imagine in 10+ years people will still be using ++, or another unmanaged language to create games.
Microsoft created C#, and they are also currently creating what will be the most advanced, and widely used OS in the world, thats got to mean something :)

James
0

Share this post


Link to post
Share on other sites
As others have already said, C++ is still the main jazz in the game development industry. However, for hobbyist projects and learning purposes, there's absolutely nothing wrong with C#. It's quite capable of creating games of reasonable intensity. A handful of commercial games have already been created with C#, so the industry is still not 100% C++ dominated. There's still room for the aspiring .NET coder, I say! [smile]
0

Share this post


Link to post
Share on other sites
I would personally go for C++, but C# has it's uses too. It's a very much used language here and there, especially in the tools sector for games. I dont think any commercially shipped games use C# or any .NET language yet.

It would be very beneficial to learn both of them, preferably.
0

Share this post


Link to post
Share on other sites
Nomatter how will be... allways "C is faster than C++ and C++ is faster than C#/Java".
0

Share this post


Link to post
Share on other sites
I can't particularly comment on C#. But, if you choose C++ you can expect slower turnaround and much more systems hacking than with a higher-level language. You will inadvertently create an interpreter and runtime for your own ad-hoc programming language.

And worst of all ... it will be in C++.
0

Share this post


Link to post
Share on other sites
Quote:
Original post by Arild Fines
Quote:
Original post by adam23
I prefer C++ because I have been using it for 4 years.

So next year you will prefer it because you have been using it for 5 years?



Funny :) but true.
0

Share this post


Link to post
Share on other sites
Quote:
Original post by Xpyder
Personally, I started game development (well..samples etc) in C++, making a basic RPG, and now I prefer C#.

C# is simpler, and easier to manage then ++, and in programs such as games (which you will want to re-use the code for later / make changes during development) this is essential.

I don't know much about the current state of the market, but my guess is the game industry needs to keep pumping out games, so they use what they know.

I can't imagine in 10+ years people will still be using ++, or another unmanaged language to create games.
Microsoft created C#, and they are also currently creating what will be the most advanced, and widely used OS in the world, thats got to mean something :)

James


... and that goes to say, C++ isn't owned by the Microsoft monopoly... hehe. Amen, to that. C++ > C#
0

Share this post


Link to post
Share on other sites
How does Microsoft own an ISO standard?
Both C# and C++ are ISO standards.


Quote:
Original post by QuinnJohns

... and that goes to say, C++ isn't owned by the Microsoft monopoly... hehe. Amen, to that. C++ > C#


OP:
Learn both but put a bit more effort into a single language when you begin learning, this way you can eventually pickup other languages with relative ease.
0

Share this post


Link to post
Share on other sites
Quote:
Original post by K_I_L_E_R
How does Microsoft own an ISO standard?
Both C# and C++ are ISO standards.


But the C# implementation of Microsoft doesn't follow its own ISO standard. There are extra things no covered by the ISO.

The small "incompatibilities" that would make competitor's tools to look bad. That's why C# will always be a Microsoft owned language.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0