• Dyskolos@lemmy.zip
    link
    fedilink
    arrow-up
    60
    arrow-down
    1
    ·
    edit-2
    1 day ago

    I’m not a big M$-fan but I actually like c# a lot. Java not so much.

    I’m no pro though, I just guerilla-code in my spare time. But of all the languages it’s actually my most used. Besides PPL and ASM 😁

    • AstridWipenaugh@lemmy.world
      link
      fedilink
      arrow-up
      38
      ·
      23 hours ago

      I have 20 years programming experience and C# is one of my favorite languages. It feels so expressive and doesn’t get in your way nearly as much as Java does. I feel like I’m writing the code I want to write instead of writing the code someone from 30 years ago with a fetish for boilerplate wanted me to write.

      • Dyskolos@lemmy.zip
        link
        fedilink
        arrow-up
        2
        ·
        6 hours ago

        Lol, yes. I can actually get things done in c#. Even fast and also complex.

        In java (which I have to use for android) it’s really aweful. Sure I’m no pro, but it also sucks to have to be a pro (and dedicate most of your time to a single thing) to get shit done.

    • mmddmm@lemm.ee
      link
      fedilink
      arrow-up
      8
      arrow-down
      1
      ·
      22 hours ago

      Microsoft Java is one of those cases where MS got the “extend” phase so well executed that they didn’t even need to finish the plan.

      That said, the language is only good if you insist on using either it or Java. And the ecosystem around it is really, really bad.

      • AdrianTheFrog@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        20 hours ago

        You can’t really kill a programming language though

        Companies are going to continue using it just because it’s what they used before

    • bitchkat@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      21 hours ago

      C# is a great language but I’ll always choose Java because the ecosystem around it is so vast. Often times some client library you need has a c# port maintained by one guy and he hasn’t updated in years.

      • Dyskolos@lemmy.zip
        link
        fedilink
        arrow-up
        2
        ·
        6 hours ago

        OK you probably need it more often than I do. But so far, I always found anything I needed for C#. But I’m surely no measure of course, I’m a casual who only codes stuff i, myself, need. And just me/wifey.

    • Valmond@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      1 day ago

      A shame there is no real FOSS movement behind it (for what I know) it could do with some modernization.

          • jecxjo@midwest.social
            link
            fedilink
            English
            arrow-up
            2
            ·
            14 hours ago

            I think that is probably due to the places where it shrines isn’t often a FOSS area. All my corporate use was for these massive windows applications. FOSS many times are small teams making very targeted solutions. Aside from Android, it feels like Java programmers are picking java out of personal skill. I don’t known what apps I use would be a good target for C#.

            • Valmond@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              5 hours ago

              That’s probably it, it feels like a “corporate language” for most people, and probably is.

              I use C# with Godot and have done some stuff at work but it’s true it hasn’t really its place it seems. Never have I thought about C# as a solution if I wasn’t forced to use it.

          • adminofoz@lemmy.cafe
            link
            fedilink
            English
            arrow-up
            1
            ·
            18 hours ago

            Its basically a requirement for the OSEP cert put out by offsec so there are a fair amount of cybersec guys who at least piddle with it if you are looking for some projects or a community hopefully that is a good start.

  • henfredemars@infosec.pub
    link
    fedilink
    English
    arrow-up
    100
    arrow-down
    3
    ·
    1 day 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.

        • Wiezy Krwi@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          7 hours 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
            1
            arrow-down
            1
            ·
            6 hours 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’.

        • Kogasa@programming.dev
          link
          fedilink
          arrow-up
          11
          ·
          21 hours 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
          ·
          20 hours 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.

        • adminofoz@lemmy.cafe
          link
          fedilink
          English
          arrow-up
          2
          ·
          18 hours ago

          I feel the pain in your comment.

          I too have been burned by “cross-platform” tooling. What I’ve learned is the more complex your project is, the less likely it is to have simple cross compliation.

          But with that huge caveat, I’ll say I’ve had a better time doing cross comp on dotnet than I have rust. Either of them are infinitely better than learning cmake though. That’s definitely just my amateur take though. I’m sure smarter people will tell you I’m wrong.

      • henfredemars@infosec.pub
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        1
        ·
        edit-2
        1 day 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
          ·
          1 day 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

            • ChickenLadyLovesLife@lemmy.world
              link
              fedilink
              English
              arrow-up
              11
              ·
              1 day ago

              Good lord, I’ve never seen anyone say this in public. I used Qt Creator for a couple of years and I found the combination of C++ for under the hood and Javascript for the UI to be a fantastic way of ensuring a nearly nonexistent base of developers who could competently do both. Maybe they grow on trees in Finland, I dunno. And maybe you’re talking about some other “Qt”, I also dunno.

              I’ve done C# and Java extensively as well and I would never choose Qt over them. I might choose Qt over Objective-C, however.

              • Rikudou_Sage@lemmings.world
                link
                fedilink
                arrow-up
                5
                ·
                23 hours ago

                QML is such an awesome UI language, the only thing (that I know of) that comes close is Jetpack Compose.

                The flavour of JavaScript QML uses is very different from regular JavaScript, it’s literally a glue language and any significant non-UI logic should be done in C++.

                And Qt C++ is very different to most other C++ framework (or how people usually write pure C++), it feels much more Java-inspired.

                Anyway, it really is a great UI toolkit if you want something powerful, cross-platform and efficient.

                • ChickenLadyLovesLife@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  3
                  ·
                  23 hours ago

                  I suppose Qt’s cross-platform aspect is a big checkmark in the plus column. My own opinion of Qt is probably colored by the fact that I was forced into it against my will and that the Finns who initially wrote the app were unhelpful and downright hostile to my attempts to customize it in ways that their customization framework did not support.

    • cm0002@lemmy.worldOP
      link
      fedilink
      arrow-up
      35
      arrow-down
      1
      ·
      1 day 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
      27
      arrow-down
      1
      ·
      1 day 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
        ·
        1 day 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).

  • Lovable Sidekick@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    19 hours ago

    MS products used to be just Word, Excel, etc. I used to know the name of the guy who instituted adding “Microsoft” to all the names. I think he was a VP.