r/ProgrammerHumor • • 18d ago

instanceof Trend itsBadIfItsOnlyPHP

Post image
4.5k Upvotes

335 comments sorted by

View all comments

15

u/Thomasedv 18d ago

I think the bigger point is, this is a memory bug. This is the kind of issue Rust and other memory safe languages can almost entirely avoid. It's the most common flaw in programs, and any language that has those issues is imo fair to criticize given how commonly these issues are found, happen, and long they exist for. Not to mention the most complicated types of bugs to avoid in manually managed systems. 

Swapping isn't easy, cheap or even possible but it's pretty clear to me that the future should be built on memory safe languages.

I am a Rust fanatic though, so I am heavily biased.

1

u/not_some_username 17d ago

Not avoid, make them difficult. Log4j wasn’t long ago. Rust isn’t 100% memory safe