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

#programming

threaded - newest

bizdelnick@lemmy.ml on 07 May 11:06 next collapse

Everywhere except some Windows only apps.

SleeplessCityLights@programming.dev on 07 May 11:52 next collapse

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.

refalo@programming.dev on 07 May 13:42 next collapse
  • you need predictable latency

  • you don’t want garbage collection

  • you don’t like MS

  • toolchain doesn’t exist for your target

thingsiplay@lemmy.ml on 07 May 14:11 collapse

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#.