I’ve been trying to learn a system language because it would enable me to access a whole new world of possibility for games, tools, and potential projects. My main problem when learning the language are:

  • can I write modern C++ code using the newer standards and still compile with libraries from older standards?
  • how do I even organize a C++ project? Look at the linked project, the CMakeList.txt is so hard to understand, the syntax looks so hard to write.
  • how do I install dependencies? You’re going to laugh at me, but I always used languages with package managers and I looked again at the linked project, and they write a whole CMakeList.txt to import ImGui (GUI library I wanna try) but if you compare the structure of the files, it’s different from the ones on the repository of ImGui.

As you see there are a lot of problems and it pains me to not be able to solve them because Rust is so unfun to use and work with! Do you think I should try C++, carry one with it?

Thanks, hector.

  • the_artic_one@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    9 months ago

    I have over a decade of professional C++ experience.

    • Most of my fellow developers are still wrapping their heads around C++11.
    • I’ve never used cmake and have no idea how, it’s always been something custom or something generated by an IDE (usually VS, not vscode, I’m talking about the gigantic purple monster).
    • Download source or even binaries and check 'em in. I had never even heard of package management until I started working with other languages more.

    Some of these situations are probably better outside of my industry (gamedev).

    • lysdexic@programming.devM
      link
      fedilink
      English
      arrow-up
      4
      ·
      9 months ago

      I’ve never used cmake and have no idea how,

      That’s odd. CMake is the de facto standard in C++. Even Visual Studio supports CMake, and perhaps the best IDE for C++, CLion, is basically built around CMake.

      What exactly have you been doing in that decade of experience working with C++?

      • the_artic_one@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        9 months ago

        Like I said, game development. For example, I know Unreal’s build system pretty well and that’s a bunch of batch files, C#, and nmake that gets generated automatically.