Comment on Drop your unpopular opinions here because c/unpopularopinions is filled with popular opinions
Katana314@lemmy.world 6 days agoI ended up avoiding game development in part because of C/C++. Part of that is because you inevitably write C for various library imports, with little object-oriented operation. The other part is the archaic mess of the templating, which is totally unnecessary.
I don’t mind being forced to manage memory carefully, to follow what is actually happening to RAM. RAII also makes a lot of sense to me. But the obtuse declarations are often sideways from that. Worse, while there were new language features around the time I stopped, they were actively avoided.
I wanted to mention that because it seems like the few people who have any knowledge of C are devoted to it. I don’t know enough of Rust to actually champion it, but it isn’t the only language shielded from criticism.
kunaltyagi@programming.dev 6 days ago
If you want a higher language for game dev, use Godot + C#
Katana314@lemmy.world 6 days ago
Now you’re getting into garbage-collected abstraction though. Quite often you don’t have full control of the machine layer with C#.
This is not just saying “C++ is too complicated for me”. It’s also that even beyond managing precisely what memory holds, C++ is not intuitively designed, and deserves a successor fulfilling the same role. The reason game development often moved off C++ was that even as fast as it was, dozens of people would write failing or undiagnosable code in it purely because of the language design.