Alex Rivera | Logout

Why would you want to use C# if its slower than C++?

Asked 2009-04-24T20:08:32.077
37

I'm looking for a new language to learn after C++ and Java. I was going to try C#, but a bunch of people say its really slow because its a high level language. So why would anybody use C#? Isn't C++ much faster? Does it make development easier, but just have a slower final product?

Also, what can C# be used for? You use it with a lot of .NET stuff on windows, and with ASP.NET, but what are other situations where one would use C#? Will there be a lot of job opportunities for it?

Edit
Report

2 Answers

23

My last company was founded by 5 C++ veterans with 15+ years experience each. They spent over a month building a certain Windows service. One of them found and dabbled in C#. Within a week he'd gotten further than the collective had in their month. Shortly after, they all switched to C#.

Why C# if it may perform slower: what price do you put on that degree of rapid development?

answered 2009-04-24T20:17:27.640
7

Why should it be slow ? Indeed, C# is compiled to 'Intermediate Language', which is JIT'ed at runtime, but this can give you a performance advantage, since the runtime can generate the most optimized for the platform the code is running on ...

Depending on the application that you want to write, the 'speed' of the language will have a minor impact. The performance of your application will mostly be determined by the way you design your application, if you make good uses of the tools / technologies you use , etc ... Sure, C# is not a silver bullet, and there are projects where you shouldn't use it, simply because it is not the right tool for the job, but it will do just fine for most of the business / enterprise app's.

answered 2009-04-24T20:13:50.783

Your Answer