this post was submitted on 09 Jun 2024
602 points (98.2% liked)
Programmer Humor
19488 readers
823 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
And even if you do get to use pure modern C++ you'll still get burned by subtle cases of undefined behavior (e.g. you probably haven't memorized every iterator invalidation rule for every container type) that force you to spend weeks debugging an inexplicable crash that happened in production but can only be recreated in 1/10000 runs of your test suite, but vanishes entirely if you compile in debug mode and try to use gdb.
And don't even get me started on multi-threading and concurrency.
"Test suite"?
I'm not sure if you're genuinely asking what a test suite is or if this is a sarcistic joke about how no one bothers to test their C++ code.
This is why I moved over to Rust
🦀🦀🦀🦀🦀🦀🦀🦀
Rustacean supremacy (not to be racist, because we avoid race conditions in the first place)
Sorry to be pedantic but Rust only guarantees no data races can happen. It does not prevent race conditions more generally.
Don't get me wrong, I absolutely love the language for sparing me from the hell that is data races, but the language alone won't solve race conditions for you.
Man, you had to go and rain on my parade. 😞