this post was submitted on 03 Apr 2024
29 points (100.0% liked)

C++

1763 readers
1 users here now

The center for all discussion and news regarding C++.

Rules

founded 1 year ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 7 months ago (1 children)

Not the OP but I've had the same experience. For me, it's slow to iterate in due to fightting the compiler. Languages like Go, Python, Java, C are all quicker to develop in, IMO.

[–] [email protected] 3 points 7 months ago (1 children)

Exactly, you’re right: it does not feel like you’re creating? You’re always fighting against the compiler and I prefer some debugging/seeking and keeping good practices that being surveilled and punished by the compiler.

[–] [email protected] 3 points 7 months ago (1 children)

I like what Rust tries to accomplish, but for me, the cost is too high. It's just too awkward in practice.

[–] [email protected] 2 points 7 months ago (1 children)

I solved practically all of my problems and I see why C++ is such a monument in software engineering it’s sooo cool versatile and fun

[–] [email protected] 2 points 7 months ago

C++ is a powerful language, it also definitely has its share of problems.