• bitfucker@programming.dev
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    1
    ·
    8 months ago

    What do you mean by C# is “accessable” vs C++? Do you mean it as readability? Or the software availability (compiler, and the tooling behind the language)?

      • bitfucker@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        1
        ·
        8 months ago

        That really depends on the teacher/mentor. C and C++ can be just as accessible. For someone who is learning by themselves however, I agree.

        • theherk@lemmy.world
          link
          fedilink
          English
          arrow-up
          6
          arrow-down
          2
          ·
          8 months ago

          I disagree, but not to be combative. C++ maybe but C not so much. Even with a good teacher assembly isn’t as accessible as C, neither is machine more than assembly. There is a scale and even with a great teacher C, while an awesome language, is going to take more work. Debatable I guess and nothing wrong with starting with C; quite the opposite, but up-to-speed time will be a bit higher in my view.

          • bitfucker@programming.dev
            link
            fedilink
            English
            arrow-up
            3
            ·
            8 months ago

            Assembly sure, since it will differ from ISA to ISA. But C is still a “high” level language in the sense that you can write once run “anywhere”. Also, more work to do something is expected since C is such a “bare” language to simplify. But again, it doesn’t count as it not being as accessible to get new developers started, but it is and will be more cumbersome to work with (in the context of redis like software).

            So yeah, maybe it depends on how you would define accessible is. I think if it is defined as just “how easy it is to get started and understand how it works, and how to work with it”, C and C++ is quite accessible with a good teacher/mentor. The teacher/mentor is important in C and C++ because unlike C# which has Microsoft as its main authoritative source and the big influencer in the language, C and C++ doesn’t have those so the resource on learning it can vary wildly.

            • theherk@lemmy.world
              link
              fedilink
              English
              arrow-up
              3
              arrow-down
              1
              ·
              8 months ago

              I guess the main problem here is using a very imprecise word with arbitrary meaning, “accessible”, that may mean something different to each of us. All I’m saying is there is a continuum of some sort, and along it first is C, then C++, then C++ ++.

          • sugar_in_your_tea@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            1
            ·
            8 months ago

            I think C is way more accessible than C++. It’s such a simple language that there are only so many footguns. C++, on the other hand, is a behemoth, and there are so many different opinions on “the right way” that it can be quite confusing. And with C++, you get all the baggage of C, and a bunch more.

            With C#, you don’t need to worry about memory as much, virtual tables are more sane, templates are more sane, etc. Basically, C# is what happens when someone adds a GC to C++ and cleans house. It’s still complex, but there are far fewer footguns and a vibrant community. The C++ community is large, but I wouldn’t call it “vibrant.”

    • douglasg14b@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 months ago

      It’s a high level memory managed language. Usually this by itself means it’s an accessible language.

      Combine that with .Net being one of the better if not the best standard libraries/frameworks out there, and it being one of the top five most popular languages in the world, means it’s highly accessible to new and experienced programmers.