• JusticeForPorygon@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    10 days ago

    Just started uni and theyre having us learn C

    It’s only been a couple weeks and it’s not too bad, but every time I bring up to someone that I’m learning C they express sympathy, which makes me think I’m eventually gonna hit a brick wall of a learning curve.

    • zib@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      10 days ago

      C isn’t all that bad once you understand the incredible power you can wield with it. It’s more limited than C++ due to lack of proper OOP, but still very usable and nice to know as a foundation to C++ and other languages. I’ve been rocking both for the last 20 years and they’re still my favorites to use.

    • ColonelThirtyTwo@pawb.social
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      10 days ago

      It’s mostly because C is notorious for not holding your hand and not telling you when you mess up. Write one past the array’s length? Might do nothing, might crash, might mess up some other data, might crash later in somewhere completely different.

      • Wirlocke@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        1
        ·
        9 days ago

        Or in some cases might crash 8.5 million computers worldwide.

        Yes the Crowdstrike crash was caused by going 1 past an array length, caused by a magic number index and a regex mistake, and wasn’t caught because the tests didn’t work.

        The whole thing was a compound series of amateur mistakes, but with kernel access at boot time.