4 ms·
> I still like to convince myself, though, as to why this approach makes sense over the traditional OO / encapsulation approach. I've become a 100% believer th
by snprbob86 14y ago
> I still like to convince myself, though, as to why this approach makes sense over the traditional OO / encapsulation approach.
I've become a 100% believer that Values are preferable to Objects & Encapsulation, full stop. However, I don't think that means you abandon objects, state, encapsulation 100%. I think that just means that you minimize them significantly.
I just watched a talk by Stuart Halloway [1] on Datomic where he makes a little "play at home" fill in the blanks table of design decisions and implications. He makes the assertion that if you take "program with values" to be the only given filled in table cell, you can make some arbitrary decisions for one or two other spots and the rest of the spots will fall out trivially with interesting properties. I guess the point is that programming with Values just affords you so much freedom and flexibility.
[1] http://www.infoq.com/presentations/Impedance-Mismatch http://www.infoq.com/presentations/Impedance-Mismatch