News for hackers. Stuff that matters.
Re:Ask HN: What made you change your mind about a programmin... by Elrac on Monday March 04, 2019 @03:18AM (#19299628)
Here's a "me too:" I'm working on a small-ish Java application with a couple of former FORTRAN developers. Last Thursday we got a bug report from our integration testers saying that some data from earlier messages was showing up in later, unrelated messages.

Sure thing, the data buffers are objects being re-used with mutation rather than being built from scratch per new message. Immutable objects, or a kind of "FP light" would have made this particular problem impossible.

Re:Ask HN: What made you change your mind about a programmin... by FreeFull on Monday March 04, 2019 @08:46AM (#19301146)
I feel like Rust has shown that mutability is ok, as long as you don't have both mutability and aliasing. Having a mutable object accessible from many places at the same time definitely is a recipe for bugs.