|
|
|
|
|
by fauigerzigerk
3258 days ago
|
|
Limiting mutability is not new and it's not a fad. It is at the very core of every single principle of modularity and dependency management ever invented by mankind, even beyond programming. Almost 30 years ago when I first learned C one of the first design principles I was taught was to avoid mutable global variables. And ever since that time I haven't found anything as key to avoiding bugs as knowing and controlling exactly what code can change what data. I find it totally baffling that a practicing programmer could possibly think of mutability as a purely theoretical concern. |
|
This fad of using immutability everywhere and treating it like a silver bullet absolutely is new and is a fad.