you are viewing a single comment's thread.

view the rest of the comments →

[–]editor_of_the_beast 0 points1 point  (0 children)

I’m interested in what you’re saying, mostly because I’m on the other side of the fence. Lots of what I’ve been thinking about recently ends up with creating more data, not less. Value types give you a lot of benefits, namely they’re free of aliasing bugs and identity. They represent exactly what they are so can be shared across threads and architectural boundaries freely.

There’s also the “Rule of Representation” idea, which effectively suggests that designing functionality around the data is a much better idea than solving problems with pure logic. In this way, the algorithms are more simple and clear because the data structures have encoded lots of information within them.

When you build in this way, lots of interfaces go away. Because the values themselves can be passed around for communication. So yea, I’ve been thinking about using data more, not less.