this post was submitted on 07 Sep 2026
44 points (86.7% liked)

Programming

28504 readers
780 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] onlinepersona@programming.dev 25 points 1 week ago (3 children)

So yes, C++ is a terrible language. Now fire up your terrible IDE and get back to coding in the worst programming language in the entire world!

No thank you. I've moved on long ago and welcome the abilities that rust provides. Since I'm not a game developer who needs to "move fast and break things", which C++ is not even good at btw (well the moving fast part), there is no reason to use or get accommodated with C++ again. I think I'd even rather write PHP than C++ at this point.

[–] MyNameIsRichard@lemmy.ml 32 points 1 week ago (3 children)

I think I’d even rather write PHP than C++ at this point.

You can get professional help for that these days!

[–] spartanatreyu@programming.dev 9 points 1 week ago

Modern PHP is basically a different language than the horrors of php 3-4.

It has:

  • traits
  • pattern matching
  • named parameters (so you never have to pass in a null anywhere just to skip a parameter in a function that someone else defined)
  • references (like smart pointers so you can pass by reference instead of value, but it prevents you from seeing the actual memory address to stop people trying to do math on pointers and ending up with bugs)
  • SensitiveParameter (a way to make a value as this needs to be hidden for security purposes, so attackers can't leak passwords in stack traces by causing crashes)
  • etc...

That said, there's still some remnants of the horrors...

  • Its god awful API.
    • Example, if you wanted to do something with a string, you can't type the string then . and see a list of functions/methods to use on it. Nor can you call a general String. and see autocompleted things. No, instead every single method that is used for string manipulation has a different name that doesn't include the word string at all. And the names are completely inconsistent. You just have to memorise an entire textbook of invocations to do the one simple thing you want to do.
    • There was work to fix the naming inconsistency, but the proposal's been dead for years. If you want to see the horrors it would have fixed you can check: https://wiki.php.net/rfc/consistent_function_names#list_of_functions_to_be_renamed
  • Way too much OOP
    • Want to make a simple data structure? Too bad, type out 100 lines and make an object instead.
    • There's just way too much boiler plate.
[–] onlinepersona@programming.dev 5 points 1 week ago

I would check myself in if I started writing either, for sure.

[–] RaphaelSchmitz@feddit.org 5 points 1 week ago (2 children)

The "move fast and break things" is from Silicon valley startup culture. Like, JS and PHP. No idea why you would think C++ is the poster child for fast iteration.

[–] flying_sheep@lemmy.ml 4 points 1 week ago (1 children)

Because that's the main reason people cite why they're not programming games in Rust.

There has to be something to it as well, because it happened a few times, while people keep falling in love with Rust in all other fields

[–] ulterno@programming.dev 2 points 1 week ago

The reason for that was probably because they were more well versed with C++ and learning Rust would require extra time and also that back then there were not enough frameworks, libraries and game engines available with Rust.
I see quite a few games being made using Rust nowadays thanks to increased availability.

[–] onlinepersona@programming.dev 1 points 1 week ago

I think you missed what I wrote in the brackets. It was regarding the gaming thing.

Bevy makes game dev with rust a dream IMO. Just missing a full blown editor like Godot has. So for me I haven't found a situation where I wouldn't use rust lol