• e8d79@discuss.tchncs.de
    link
    fedilink
    arrow-up
    2
    ·
    24 minutes ago

    You can use C# for pretty much anything the question is how convenient it is to do so. There are even some people who try to use .NET with embedded systems. I would use C++ only in cases where performance is the most important aspect of the product and even that niche grows smaller and smaller as time marches on. For example, at my current job we are using C# to implement some pretty intense image processing algorithms. Initially we wanted to use C++ for the performance critical parts, but we are still well within our performance targets using C# alone.

  • Kissaki@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    22 minutes ago

    Nowhere. Until you have a reason to.

    Maybe it’s integration, or existing code, or performance, or close to hardware, or reference lib or docs

    In most industries and cases, you probably won’t have to, and it makes no sense to.

  • refalo@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    5 hours ago
    • 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
    link
    fedilink
    arrow-up
    2
    ·
    5 hours ago

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

  • SleeplessCityLights@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    7 hours ago

    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.