Which areas of programming are each language best suited for?
I like both C++ and C# but i prefer to use C# because of .NET.
My question is when will you use C++ and when do you use C#?
So if you make a financial application for a company you will use C#? ( It’s easy to design a form and connect to a database without downloading 3rd party libraries, and if you make advanced algorithms you would use C++ for it’s speed?
This is my idea. I just watched video’s @ http://www.academicearth.org, and it seems that universities prefer to use C++ for Machine Learning for example.
What do you guys think of it? and what is the industry view on this.
Trying to compare the two isn’t really fair — C++ is usually used nowadays when you have the need for low-level, or portable, high performance code. You rarely find it used to implement business logic for enterprise systems, though about 10 years ago you did. You certainly wouldn’t want to start out development with an enterprise system with C++ today unless you had a really, really good reason to.
But in academia, C and C++ have been used for many years, so it’s probably not surprising that there is a large base of C++ code there for things like Machine Learning. C++ can often be faster than C# when it’s optimized properly. It can run with less memory, on more platforms, and with fewer dependencies on large frameworks than C# can.
C#, however, is a lot more forgiving with its memory model, and typically has access to Microsoft or Mono’s very large, comprehensive framework which allows developers to do a lot of stuff with minimal development effort, time, and cost. If you’re working on the Microsoft platform, it is arguably the standard language nowadays.