(Also are Programming socks memes welcome here?)

  • bluGill@fedia.io
    link
    fedilink
    arrow-up
    15
    ·
    4 days ago

    If you need to learn C, at least use the first edition of the book - the one without the ANSI additions is much smaller.

    I’'ve actually never read the second/and edition so I can’t say if it is good or not. I can tell you that the first edition still has a proud space on my bookshielf though the acid paper is starting to take a toll and I suspect it won’t be long and I’ll be needing a reprint.

    • PowerfulTurtle@lemmy.caOP
      link
      fedilink
      arrow-up
      9
      arrow-down
      5
      ·
      4 days ago

      I haven’t read either, honestly Rust is so much better than C or C++ and if I were going to learn a low level language I’d probably go with that instead. Currently I only do Python and a tiny bit of Javascript.

      • Shanmugha@lemmy.world
        link
        fedilink
        arrow-up
        5
        arrow-down
        1
        ·
        3 days ago

        I dare assume you get downvoted for liking Rust, so take my upvote for balance. We differ about what we think of the language, but this kind of angry downvoting is plain ridiculous

        • BatmanAoD@programming.dev
          link
          fedilink
          arrow-up
          3
          arrow-down
          3
          ·
          edit-2
          2 days ago

          Probably moreso for expressing the opinion so strongly without actually knowing any of the three languages.

          Edit: I’m just guessing why a different comment got downvotes. Why am I getting downvotes?

      • Valmond@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 days ago

        This Rust talk sounds exactly like Java in the 2000. It’s the language of the future!! Rust is good though but only time will tell if rust will replace C/C++ which I doubt.

        • UpperBroccoli@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          1
          ·
          2 days ago

          As a long time C/C++ developer, I think it has a lot of really great ideas. The one thing preventing me from using it a lot more is that there is no stable ABI that would allow to use shared libraries in Rust - everything is statically linked, and if I use the same crates in a number of programs, the same code exists in each of these programs. That is not really a good thing whne you try to develop for a system with very limited space and where program load times make a difference, such as for certain embedded platforms.

          But honestly, Rust support in the Linux kernel? Java never got that far, nor any other language (apart from C, obviously).

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

            C/C++ oldtimer myself, yep Rust is basically C++ template metaprogramming. So Rust does this thing way better, but as you says it does other things less good. Exactly like Java with the facility to run on different platforms (well, sort of) for example.

            C/C++ is hard because it’s the ultimate multi tool!

            I use Python BTW when I don’t need the fancy stuff, maybe the death of C/C++ will be that of a thousand cuts, one specialised language for each specific C/C++ use …

    • zerofk@lemm.ee
      link
      fedilink
      arrow-up
      3
      ·
      3 days ago

      It’s also a very good introduction to programming, and just a good read. Probably the best book about programming I’ve ever read.