• Jonny@lemmy.rimkus.it
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    Hmm, but I hear from many students that they at least had a contact with C. In my opinion the problem with C is, that you have to take care of too many things, e.g memory and pointer management, which can fast turn into really difficult to understand code, especially when you’re dealing with many libraries. Having a language which helps in memory management is a very big help and lead’s to more stable code

    • Ephera@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      I’ve had contact with C in a course in university, too, but I never felt anywhere close to as productive as with e.g. Java. Learning C felt more like a historic exhibition than like learning a tool I would actually use.

      And yeah, there’s this saying/quote, which goes something like “code is low-level when it concerns itself with uninteresting details”. And C definitely feels like that to me.

      Rust has kind of broken that saying, because it allows low-level machine access, but actually offers rather high-level abstractions.
      I mean, you do notice that Rust doesn’t use garbage collection, so that is one detail which I largely deem uninteresting as a human that just wants to make things go beep-boop, but yeah, it is still an enormous improvement in the uninteresting details department.