Where should a programmer use C++ instead of C#?
from GreenTea2@lemmy.org to programming@programming.dev on 07 May 11:00
https://lemmy.org/post/5747960
from GreenTea2@lemmy.org to programming@programming.dev on 07 May 11:00
https://lemmy.org/post/5747960
#programming
threaded - newest
Everywhere except some Windows only apps.
It’s entirely depdent on the project and the team. Use C++ when you need something low level. Use C# when you need a very high level language and want to create an object oriented mess. Honestly, people will shit on C# all day long, but as far as utility goes, it is a fine language. People get caught up in the, well deserved, MS hate and ignore that it is a powerful performant language. Would people actually choose Java over C#? Dotnet compiles to Linux without having to install the Dotnet SDK on the Linux machine. It’s not Windows only anymore.
you need predictable latency
you don’t want garbage collection
you don’t like MS
toolchain doesn’t exist for your target
When you don’t want to depend on .NET runtime. And if there are libraries you want to use that is available in C++, but not in C#.