I have some background in Python and Bash (this is entirely self-taught and i think the easiest language from all). I know that C# is much different, propably this is why it is hard. I’ve been learning it for more than 4 months now, and the most impressive thing i can do with some luck is to write a console application that reads 2 values from the terminal, adds them together and prints out the result. Yes, seriously. The main problem is that there are not much usable resources to learn C#. For bash, there is Linux, a shit ton of distros, even BSD, MacOS and Solaris uses it. For python, there are games and qtile window manager. For C, there is dwm. I don’t know anything like these for C#, except Codingame, but that just goes straight to the deep waters and i have no idea what to do. Is my whole approach wrong? How am i supposed to learn C#? I’m seriously not the sharpest tool in the shed, but i have a pretty good understanding of hardware, networking, security, privacy. Programming is beyond me however, except for small basic scripts

  • learn java, way more material for that, but conceptionally very similar to c#. I suggest a book like “Head first Java”.

    after that c# will be much easier to grasp.

    • @lolcatnip@reddthat.com
      link
      fedilink
      English
      8
      edit-2
      5 days ago

      I considered saying the same thing, but C# has been around almost as long as Java at this point, and I believe it’s commonly used for teaching, so I have a hard time believing there’s a shortage of learning resources. Starting with Java seems like a waste of time if your goal is to learn C#, because you can learn the concepts equally well in either language, but if OP starts with Java they’ll end up spending a lot of time unlearning Java quirks and APIs while learning the equivalent stuff for C#.

      • TehPers
        link
        fedilink
        English
        25 days ago

        Not only this, but C# has diverged enough from Java that anything but the absolute basics isn’t going to help much with C#.

    • @kekmacska@lemmy.zipOP
      link
      fedilink
      English
      1
      edit-2
      5 days ago

      Is java easier to understand than c#, for someone who only has some experience with scripting languages?

      • @sevon
        link
        45 days ago

        C# is like Microsoft-branded java. No real difference in the language, but some of the tooling for java is worse.

      • @aluminium@lemmy.world
        link
        fedilink
        14 days ago

        I personally find Java easier in the sense you have to get things done with pretty simple tools, while C# you have 10 different options for a problem.

        Also makes it easier when looking at other people’s code since everyone uses the same basic tools.

      • no, i don’t think there is a big difference in ‘difficulty’ between both languages.

        there is just more material for java, and as i said the languages are very similar, so learing to program in java wont be a waste of time if you plan to only use c# after that, because the concepts you learned a long the way will easily carry over.