123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|628|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> C/C++/C#/Other -> C#, why?

Fri, 20 Nov 2009, 02:28
JL235
I've just installed Visual Studio so I can do C++ development, however it's occurred to me I could also use C#. I've used it in the past but it's always been occasional small stuff. I've never truly emmersed myself in it. Finally I don't like the idea of passing it by and never using it if it's actually pretty damn good.

So I'm interested in hearing some opinions from people here who currently use C#. Why do you use it? Why use it over other languages? What are your favourite advantages?
Fri, 20 Nov 2009, 02:30
Afr0
Rapid development.
Twice the development speed of C++ for a typical program.
Strict OO language.

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Fri, 20 Nov 2009, 02:36
Jayenkai
C#, and the whole .net thing will let you code for X360, but other than that I don't see an advantage.
If you're already good with plainer c, then I'd stick to that.

Learn some extra C stuff, get a good collection of compatible libraries, and start producing some great games that will run on multiple systems through porting.

.. Once I bother to pay for my year-long Xbox Gold account (which I don't really use to play online, maybe once the whole year, so haven't bothered to upgrade again) and my Xbox Developer Premium account (which I still haven't gotten around to, and now have to pay for the frickin' Gold thing again!) then I'll probably go back to playing with #/., but for now it's not really a priority for me.

I think your games, and their whole vector art style might actually do quite well on the Xbox. Maybe something to consider.

-=-=-
''Load, Next List!''
Fri, 20 Nov 2009, 09:30
Phoenix
Visual Studio in conjunction with C# makes for the best development environment out there. It's really the state of the art. On the language itself, C# is modern and pain-free: it's supported by .NET which does what you don't want to, it has plenty of interesting and useful features such as generators and LINQ expressions, and picking it up takes little effort.

Then there's also the vast sea of resources available for it. Plenty of languages fail because they don't have community support which is significant enough, and C# ain't one of them. Also, make sure to check out Silverlight since you like putting your games in the browser. Never tried it, so I can't lobby for it, though.

Drawbacks would include the .NET dependency, as well as subpar non-Windows support.
Fri, 20 Nov 2009, 09:50
Afr0
as well as subpar non-Windows support


Mono's really getting good these days. Haven't found a library I needed for Afr0 Messenger that Mono didn't have yet, and there's quite alot!!

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Fri, 20 Nov 2009, 10:07
Phoenix
Windows 7 ships with .NET 3.5, so that makes it pretty widespread. I can't speak for the Linux community, but I don't think it's equally commonplace. Feel free to correct me though. The statement about subpar non-Windows support was mostly based on hearsay, and I'm not really reliable in non-Windows territories, so you're probably right.
Fri, 20 Nov 2009, 14:17
Scherererer
Because it's loads better than C++. Trust me -- you'll find every language feature of C++ in C#, but everything is cleaned up and better. You should also appreciate it because it has a more java-ish feel when it comes to OOP. But, you get cool stuff that java is missing such as operator overloading.

If you're going to do .NET, you might as well use C#, because there's no better language for that platform.

-=-=-
YouTube Twitter
Computer Science Series: Logic (pt1) (part 2) (part 3) 2's Complement Mathematics: Basic Differential Calculus
Sat, 21 Nov 2009, 09:52
Cower
The statement about subpar non-Windows support was mostly based on hearsay, and I'm not really reliable in non-Windows territories, so you're probably right.
Mono support under Mac OS isn't very good. If you're aiming to reach all platforms, using C# is patently bad idea. If you're developing general applications (i.e., not realtime) for Windows, it's probably the best choice. If you're developing a game, there's probably no reason to limit yourself by using it (last I'd checked, working with any graphics library in C# was pretty awful primarily due to the everything-must-be-a-class thing and having to work around the managed environment).