Talks
Immutability Matters

By, Ranjeet Singh

The Ruby codebase and standard libraries make heavy use of mutable objects, as does pretty much any mainstream language. Mutable objects are not thread-safe, comparatively harder to maintain and write tests for, and with the resulting tests being slow and brittle. Thus, it becomes very hard to understand applications and libraries written using mutable object states to pass values around and perform operation on those values. Immutability resolves a lot of concurrency issues (race conditions, dirty read/write etc.), and also simplifies the codebase and test cases.

Help us caption & translate this video!

http://amara.org/v/GF2q/

Garden City Ruby 2015

Explore all talks recorded at Garden City Ruby 2015
+8