Immutability Matters
Ranjeet Singh • Bangalore, India • Talk

Date: January 10, 2015
Published: unknown
Announced: unknown

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.

Garden City Ruby 2015

Explore all talks recorded at Garden City Ruby 2015
+8