Fork me on GitHub
#admin-announcements
<
2015-07-28
>
erichmond11:07:03

I have a friend asking for books/blog posts on why immutable data structures are useful. I can’t think of anything directly addressing that issue in a focused way, do you guys know of any books/blogs?

colin.yates11:07:31

I seem to remember dnolen did one.. let me look.

colin.yates11:07:10

is he asking why immutable programming is useful or why immutable data structures?

tcrayford11:07:12

@erichmond: "they're faster than calling .clone or whatever"

colin.yates11:07:42

the one I was thinking of isn’t as general as I remembered; http://swannodette.github.io/2014/07/30/hijacking-json/

erichmond11:07:51

I think he’s pushing to bring CLJS into his company, from JS

erichmond11:07:07

and I am assuming he is having a hard time with the “but why should we do this” bit

erichmond11:07:09

Anyone: best resource (book, etc) for explanation and thoughtful use cases for various immutable data structures?

erichmond11:07:14

this is his exact question

erichmond11:07:32

My answer was “try it, you’ll like it."

cfleming11:07:48

@erichmond: IIRC Facebook has immutable.js, which had a “Why?” section on their page

cfleming11:07:08

Of course, then his company’s response might be - why not just use that?

tcrayford11:07:29

just copy/paste from it 😉

erichmond11:07:43

@tcrayford: it took me forever to realize that was a pic of Rich, and not of you

erichmond11:07:53

I laughed quite loudly in the office when I realized it. heh

tcrayford11:07:57

shoutout to deviantart

colin.yates11:07:31

am I the only one that reads that and thinks ‘what sort of tart is a devian?'

colin.yates11:07:52

I guess I am simple_smile

itrillian11:07:42

@erichmond: Could probably also add the value of values to the homework bundle to take some inspiration from

Jakub Holý (HolyJak)11:07:41

@erichmond: The power and practicalities of immutability talk by Venkat subramaniam is a great argument for immutab. - https://vimeo.com/131635253 My highlights from the talk here: https://theholyjava.wordpress.com/2015/06/19/ndc-oslo-2015-talk-notes-recommended-talks-security-fp-etc/

andrewhr12:07:01

This talk about immutable.js itself is also pretty good https://www.youtube.com/watch?v=I7IdS-PbEgI

mpenet13:07:40

@yogthos: You're around? I am toying with the idea of changing a bit the api for websockets in jet (it's not commited), I'd like some external input if you have a few minutes to spare. Especially since you had some issues with it

yogthos13:07:07

@mpenet hey yeah, give me a few min here