608
you are viewing a single comment's thread
view the rest of the comments
[-] hperrin@lemmy.ca 2 points 6 days ago

No.

By that same logic, memory safety issues in C/C++ don’t make them bad programming languages.

If you’re worried about it, like you’re accepting input from the user, sanitize it.

if (typeof userProvidedData !== "string") {
  throw new Error("Only works on strings.");
}

Better yet, put that in a function called assertString.

this post was submitted on 24 Nov 2025
608 points (89.2% liked)

Programmer Humor

27542 readers
437 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

founded 2 years ago
MODERATORS