• henfredemars@infosec.pub
    link
    fedilink
    English
    arrow-up
    81
    arrow-down
    1
    ·
    11 months ago

    I’ve actually found C# quite pleasant to develop with, so long as I didn’t have to worry about targeting non-Windows platforms.

        • Kogasa@programming.dev
          link
          fedilink
          arrow-up
          13
          ·
          11 months ago

          The standard .NET C# compiler and CLI run on and build for Windows, MacOS, and Linux. You can run your ASP.NET webapps in a Linux docker container, or write console apps and run them on Linux, it doesn’t matter anymore. As a .NET dev I have literally no reason to ever touch Windows, unless I’m touching legacy code from before .NET Core or building a Windows-exclusive app using a Windows app framework.

        • Rookeh@startrek.website
          link
          fedilink
          arrow-up
          4
          ·
          11 months ago

          Well, I’m currently writing a service and frontend, both in C# (Blazor for the UI), and using docker-compose to build and deploy them to a Raspberry Pi running Linux. So not only cross-platform, but cross-architecture as well.

          This is not a new thing either. Since .NET Core was released almost 10 years ago, it has supported cross platform development.

        • Wiezy Krwi@programming.dev
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          11 months ago

          The sdk and runtime are available on all operating systems. I have used nvim on Ubuntu (wsl) to write and execute C#.

          • Ziglin (it/they)@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            4
            ·
            11 months ago

            See all Operating Systems is a steep claim, that is how I originally misunderstood the meaning of fully cross platform.

            I’m relatively certain that it won’t run on DOS or an Arduino, thereby instantly disproving the ‘all operating systems’.

      • henfredemars@infosec.pub
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        1
        ·
        11 months ago

        True, but what I’m really talking about is the unbeatable user experience of having an application that looks and feels as if it were a native Windows application, because it is and has that first-class platform support straight from the vendor.

        With that said, most new cross platform applications today are probably more like electron or Web apps.

        • Kogasa@programming.dev
          link
          fedilink
          arrow-up
          14
          ·
          11 months ago

          Ok, there’s no such thing as native Windows apps for Linux, but there are cross platform GUI frameworks like Avalonia and Uno that can produce apps with a polished identical experience across all platforms, no electron needed

    • cm0002@lemmy.worldOP
      link
      fedilink
      arrow-up
      29
      ·
      11 months ago

      Yea this was a crosspost and also just a meme, but C# is my fav

      And really cross-platform has come a LONG way…just as long as you don’t need UI on Linux lolol

    • Hugin@lemmy.world
      link
      fedilink
      arrow-up
      22
      ·
      11 months ago

      Yeah C# gets a bad rap. I spent a decade developing in C++, and Java before switching to C# because of program requirements. Now I never want to go back.

      • ChickenLadyLovesLife@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        11 months ago

        I’ve used many languages/platforms in my 30 years of programming (take that!), including Visual Basic, C, C#, Java, Objective-C and C++. I agree that C# is the best but not by much. They all do pretty much the same things - if one language lacks something that other languages have shown to be beneficial, that something tends to get incorporated in a future update in some form or another, and their glaring weaknesses tend to get corrected as well (like when Objective-C mostly did away with the need to explicitly release fucking everything).