this post was submitted on 28 Feb 2024
183 points (96.4% liked)

Technology

58143 readers
5171 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
 

White House urges developers to dump C and C++::Biden administration calls for developers to embrace memory-safe programing languages and move away from those that cause buffer overflows and other memory access vulnerabilities.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] parens@programming.dev 26 points 6 months ago (1 children)

C/C++: so bad that even the white house takes notice ๐Ÿ˜‚

[โ€“] mox@lemmy.sdf.org 16 points 6 months ago (1 children)

C isn't bad. It has been a good portable assembly language for ages, and remains so today. What's problematic is continuing to use it where more advanced languages now make more sense.

I won't defend C++, though. I'm happy to kick it to the curb now that better alternatives are gaining traction.

[โ€“] Rednax@lemmy.world 3 points 6 months ago

The problem with C++ is not the lack of safety features. It's the ever lasting backwards compatibility that is keeping it both alive and down at the same time.

Having to support 50 year old code, is going to limit any restriction you place. But it is usually the restrictions that make a language good.

Example: You can write perfectly good modern C++ code without any pointers. But pointers are so ingrained into the language, that it is impossible to remove them.