• coltorl
    link
    fedilink
    arrow-up
    18
    arrow-down
    2
    ·
    edit-2
    1 year ago

    C++, I am a library developer with some embedded experience. I can easily interface with c libs and expose my lib with a c interface. With clang, static analysis catches most bugs before runtime. Everything I write can be compiled nearly anywhere with very little dependencies required. Excellent IDE and LSP support with a ton of documentation on the language features available (admittedly, there are a lot). The standard library is gigantic, useful, and well documented. It is used everywhere, so resources and example source code in C++ are very easy to come by. Project configuration (via CMake) is extremely powerful and expressive (though not technically C++).

    Some languages have some of the elements I listed, but no other language has them all.

    • lysdexic
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      I would also mention support for third-party compiler cache systems. Install something like ccache, set a couple of flags in the CMake project, and your whole project can now reuse build artifacts with barely no CPU load.

    • z3rOR0ne@lemmy.ml
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      1 year ago

      If you don’t mind throwing your two cents my way, what’s a good intro to C±± book for those who already have a basic understanding of C?