Skip to main content
GameDev.net gamedev.net
🔒 Locked

C++ or C# ?

Started by Alina_85 Jul 20, 2008 at 8:45 AM 8 replies 1.7k views
Original Post
Alina_85
Alina_85
Hello ! I want to start an opengl project and I don't know what is the best for that : C++ or C#. I preffer C# but....I'm still undecided. Hope you can help me with some advices. Thanks !
Alina
Ezbez
Ezbez
You prefer C#, so use it. The only reason not to would be issues with unsupported platforms, but if you're using OpenGL, then the Mono project *should* be able to run the C# program. Hands down, the best language is the one you're the most comfortable with, especially with two pretty similar languages like C# and C++.
qp
qp
Although i think this question is slightly off topic, i recommend C# or any other nice high-level language over the low-level C or its weird mutation C++. The Language doesn't matter much though: just use what you like and know. Being able to read C helps because most of the examples you will encounter are written in C. I for one use Common Lisp for OpenGL programming, which makes me weird. People also use Python, Perl, Java or about every other language out there.
SaurabhTorne
SaurabhTorne
use dot net and you will be fine with anything
Iftah
Iftah
you need to decide which do you prefer:
being 5 times more productive or gaining 5% more performance.

(rough estimate of course)
VanKurt
VanKurt
Befeore every new project I ask myself the same question :-)

I usually go for C# since it is way more comfortable and I get my results a lot faster. Debugging is also easier in my opionon.

But of course there are times I have to do crazy low level stuff or need maximum performance. Then C++ is the better choice...
Fiddler
Fiddler
I use C# + OpenGL (through OpenTK) for my thesis and the combination is quite good. I develop primariliy on Windows (VS2008), but test the binaries on Linux/Mono.
[OpenTK: C# OpenGL 4.4, OpenGL ES 3.0 and OpenAL 1.1. Now with Linux/KMS support!]
V-man
V-man
Quote:
Original post by VanKurt
Befeore every new project I ask myself the same question :-)

I usually go for C# since it is way more comfortable and I get my results a lot faster. Debugging is also easier in my opionon.

But of course there are times I have to do crazy low level stuff or need maximum performance. Then C++ is the better choice...


What is it about C# that makes getting results faster?
MARS_999
MARS_999
Nothing, if you know C++ and have good libs it's not an issue. Myself C/C++ is all I need.
zedz
zedz
Quote:
What is it about C# that makes getting results faster?

the standard answer is less memory issues

Im very dubious about some of these things to make it easier for programmers, eg I do a bit of actionscript as well, now there u can type in a lot of crap + it just accepts it, until finally something overwhelms it (+ then try to find the original error :) ). Perhaps easier to understand is a similar story with c++ and visual c, how many messages have u seen on these boards, 'it works in debug + not in release'

not to mention all the crap it does behind the scenes trying to organize your code to be faster

Quote:
being 5 times more productive or gaining 5% more performance.
(rough estimate of course)
extremely rough, perhaps u meant 5x performance + 5% more productive


Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.