-
April 29th, 2011, 02:02 AM
#1
What is programmed in C-sharp?
I just need a little help with a short paper on C#;
so, I was wondering, specifically, what kind of things are programmed in C# and can you provide
examples? Thanks
-
April 29th, 2011, 11:22 AM
#2
Re: What is programmed in C-sharp?
Applications, Web sites, and Web services - pretty much everything.
-
April 29th, 2011, 11:29 AM
#3
Re: What is programmed in C-sharp?
I think it is also one of the most popular languages for video games and physics engines.
-
April 29th, 2011, 03:06 PM
#4
Re: What is programmed in C-sharp?
Originally Posted by DeepThought
I think it is also one of the most popular languages for video games and physics engines.
Yeah that's not true. C++ is far and away the most popular game programming language. C# + XNA is great, but you can hardly say it is one of the "most popular" languages/platforms for game development.
-
April 29th, 2011, 03:50 PM
#5
Re: What is programmed in C-sharp?
Originally Posted by DeepThought
I think it is also one of the most popular languages for video games and physics engines.
That's the opposite of true. Those are two very good examples of where you should probably not code in C#.
-
April 29th, 2011, 04:37 PM
#6
Re: What is programmed in C-sharp?
Originally Posted by BigEd781
Yeah that's not true. C++ is far and away the most popular game programming language. C# + XNA is great, but you can hardly say it is one of the "most popular" languages/platforms for game development.
Oh I see it a lot on requirements for job postings. What are the advantages to C++ I can do int++ in C# as well :P
-
April 29th, 2011, 04:56 PM
#7
Re: What is programmed in C-sharp?
Originally Posted by DeepThought
Oh I see it a lot on requirements for job postings. What are the advantages to C++ I can do int++ in C# as well :P
You'll need to program in both to understand the differences.
-
April 29th, 2011, 05:18 PM
#8
Re: What is programmed in C-sharp?
Originally Posted by DeepThought
I think it is also one of the most popular languages for video games and physics engines.
Originally Posted by BigEd781
Yeah that's not true. C++ is far and away the most popular game programming language. C# + XNA is great, but you can hardly say it is one of the "most popular" languages/platforms for game development.
Originally Posted by Chris_F
That's the opposite of true. Those are two very good examples of where you should probably not code in C#.
Originally Posted by DeepThought
Oh I see it a lot on requirements for job postings. What are the advantages to C++ I can do int++ in C# as well :P
Originally Posted by Arjay
You'll need to program in both to understand the differences.
As for game development - mainstream games are definitively done in C++ (speed being one of the obvious advantages, a bunch of experienced C++ game programers being the other, standard C++ graphics APIs being another one, and so on...). However, on the indie scene, there's a lot of people experimenting with C#. Besides, I feel that Managed DirectX and XNA are pretty capable. There were even some (though not particularly noticeable) commercial games developed in C# - or so I've read somewhere.
I think that game programmers can greatly benefit from the C# language, and the way good C# code is written (and designed). As the hardware gets more powerful, the potential for C# to penetrate into the field of the "mainstream" game development will grow I guess.
Furthermore, there are various kinds of games, and not all of them require raw power above all other things; there are games made in Java, or Flash (ActionScript)... I mean, on one end of the spectrum are fancy 3D-HD-WhatNot-games, and on the other are text-based games.
It all boils down to what you mean by game.
But, since we're probably talking about a modern 3D engine based game here, I'm under the impression that C# can be used to create a fairly decent engine. Maybe it's not (yet) suitable for an AAA title, but things change with time. Think of what kind of games you can play on mobile phones now, and compare that to the classic Nokia Snake. Those hardware engineers will eventually come up with something that will make us forget that IL and JIT-compiling are even there.
-
April 29th, 2011, 06:50 PM
#9
Re: What is programmed in C-sharp?
Last edited by Mutant_Fruit; April 29th, 2011 at 06:53 PM.
www.monotorrent.com For all your .NET bittorrent needs
NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling.
-
April 29th, 2011, 07:02 PM
#10
Re: What is programmed in C-sharp?
Yes, the reason C++ is so dominant is not necessarily that it is the only language capable of writing a game with, it is the fact that the *vast* majority of existing code is already written in C++. Also, in regards to console games, a language like C# is just impractical. Have fun running .NET on your PS3. Also, there are many times in which you do need direct access to the hardware, and C# is simply not designed for such things.
Writing an indie game for a Windows PC? Go ahead and use C# with XNA or DirectX. Anything else is just going to be a huge pain.
-
April 29th, 2011, 07:05 PM
#11
Re: What is programmed in C-sharp?
Interesting, so I take it if you write a program in C++ it does not require the framework to run.
That alone is worth using it for!
-
April 29th, 2011, 07:15 PM
#12
Re: What is programmed in C-sharp?
Originally Posted by DeepThought
Interesting, so I take it if you write a program in C++ it does not require the framework to run.
That alone is worth using it for!
Well, no, not really. C# is a great language and the .NET framework trivializes many tasks that would be more onerous if done in C++. One language is not "better" than the other, they are different tools for different jobs.
-
April 29th, 2011, 08:02 PM
#13
Re: What is programmed in C-sharp?
Originally Posted by DeepThought
Interesting, so I take it if you write a program in C++ it does not require the framework to run.
That alone is worth using it for!
Do you understand the depth of penetration the .Net framework has (i.e the % of Windows systems that has one or more versions of the .Net Framework)?
In other words, often times there is nothing additional to install to run a .Net program.
-
April 29th, 2011, 08:15 PM
#14
Re: What is programmed in C-sharp?
Originally Posted by BigEd781
Also, there are many times in which you do need direct access to the hardware, and C# is simply not designed for such things.
I can say with 99.9% certainty that no game ever directly accesses hardware. That's what device drivers are for Sure, C# is not really designed for device drivers, but that's not what you'll be doing when you're writing a game. If there is some exotic hardware you need access to you'll just access it via it's driver just the same as how you can play sounds and render 3D graphics in C# today.
Have fun running .NET on your PS3.
EA had no trouble doing this with The Sims 3 The also managed it on Mac OS too!
Interesting, so I take it if you write a program in C++ it does not require the framework to run.
That alone is worth using it for!
No, not at all. A language with a framework is *far* superior to a language without a framework in every respect. Assuming a 'framework' is defined as 'a set of reusable libraries', every major language has this. What game developer wants to write their own List implementation or their own quicksort. None. They want to write game logic. Therefore the richer your framework and the easier it is to use, the faster you can get your task (writing game logic) done. With that in mind, the language with the largest framework would be the logical choice.
If by 'framework' you mean a JIT compiled language, avoiding a language simply because it has a JIT makes absolutely zero sense. The existence (or non existence) of a JIT should be completely irrelevant to you unless the platform you're targeting does not allow jitting. All that should matter to you are concrete performance targets (i.e. being able to execute at 60fps on a Core 2 Duo 2ghz with an ATI 4800) and developer productivity. If a jitted language can reach your target with better productivity than a non-jitted language then surely it's worth giving it some serious consideration.
Last edited by Mutant_Fruit; April 29th, 2011 at 08:17 PM.
www.monotorrent.com For all your .NET bittorrent needs
NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling.
-
April 29th, 2011, 09:42 PM
#15
Re: What is programmed in C-sharp?
Originally Posted by Mutant_Fruit
I can say with 99.9% certainty that no game ever directly accesses hardware. That's what device drivers are for
Ok, yes, access hardware via the device driver . But still, those interfaces are rarely friendly to access through C#, I do it for a living every day.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|