280
you are viewing a single comment's thread
view the rest of the comments
[-] dhork@lemmy.world 158 points 3 months ago

Just because you’re writing in a shiny new language that never misses an opportunity to crow about how memory safe it is, doesn’t mean that you can skip due diligence on input validation, checking every return value and writing exception handlers for even the most unlikely of situations.

Lol

[-] SeductiveTortoise@piefed.social 50 points 3 months ago

But at least it wasn't a memory leak!!! 😭😭😭

[-] Noja@sopuli.xyz 28 points 3 months ago

Memory leaks are logic errors, Rust can't really prevent you from leaking memory.

[-] socsa@piefed.social 9 points 3 months ago

Some memory leaks are logic errors, and this is honestly the irony of modern dynamic languages. I have actually gotten into the argument in interviews before - it is arguably safer (and better) to work from maximal static memory allocations with memory safe data objects than it is to implement dynamic memory algorithms just because they are fun coding problems.

[-] wizardbeard@lemmy.dbzer0.com 9 points 3 months ago

I swear, every time I start to think that I go overboard with this sort of shit in my scripts for work, I either find another ridiculous edge case or a story like this comes out.

this post was submitted on 21 Nov 2025
280 points (100.0% liked)

Technology

82489 readers
3712 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 news or articles.
  3. Be excellent to each other!
  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, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS