this post was submitted on 28 Feb 2024
230 points (96.0% liked)

Technology

59627 readers
2911 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
[–] CatLikeLemming@lemmy.blahaj.zone 3 points 8 months ago* (last edited 8 months ago) (5 children)

If you're an expert tightrope walker, you're likely not gonna fall off. You can just do it without too much issue. When you're doing it over a chasm, and you don't plan on dying, you'd still probably prefer a harness though, wouldn't you?

Edit: I'm not saying C is a bad language or anything, but for important applications the safety of actually memory safe languages is vital for lower-skilled programmers and still a good assistance for higher-skilled programmers, as we're all humans and it doesn't hurt to try and avoid the mistakes we will eventually make.

[–] lolcatnip@reddthat.com 1 points 8 months ago* (last edited 8 months ago) (4 children)

I'll say it. C is a bad language. There was a time when it needed needed to exist and using it was a smart choice, but it has outlived its usefulness for anything but legacy code and niche use cases like FFI. It's in essentially the same category as Cobol.

[–] mariusafa@lemmy.sdf.org 1 points 8 months ago* (last edited 8 months ago) (3 children)

The bad language that all successor languages copied?

Edit: spell.

[–] lolcatnip@reddthat.com 1 points 8 months ago* (last edited 8 months ago)

It wasn't bad at the time relative to what else was around.

And I don't even know what you're getting at by saying "all" successor languages copied it. Are you referring to how many languages use curly braces as block delimiters? Because that's not what's wrong with C.

load more comments (2 replies)
load more comments (2 replies)
load more comments (2 replies)