immutable js

http://www.zsoltnagy.eu/introduction-to-immutable-js/

http://www.macwright.org/2015/05/18/practical-undo.html

immutable is a powerful concept, can be applied in many areas

but people also need to mutate data

to achieve that, u create a new thing, a new immutable one,

new thing = old thing + edits

actually, old thing = nothing + edits

and edits are immutable

so everything = nothing + edits + edits + ….

code version system follows this pattern

database shall follow the same pattern

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s