ALTERNATE UNIVERSE DEV

Around IT In 256 Seconds

#54: Immutability: from data structures to data centers

Immutability means that when something was once created, it can’t be changed. This concept is tremendously important across our whole industry. Probably you’ve heard about immutable data structures. Let’s take an immutable list as an example. If you create such a list with a few items, you can’t add more items to that list. It’s written in stone. Any action attempting to modify that list returns a modified copy. The original instance is left intact. Modifying a single item, adding or removing, sorting - each of these operations return a copy.

Read more: https://nurkiewicz.com/54

Get the new episode straight to your mailbox: https://nurkiewicz.com/newsletter

Episode source