♲ “Mutability, aliasing, and the caches you didn’t know you had”: garbagecollective.quora.com/Mutability-ali
New post on Garbage Collective.
Conversation
Replying to
Very nice! I hadn't thought about it in terms of cache invalidation before but that's a great view on it.
1
Replying to
Yup. Implicitly caching of UI state is the devil. Hard to get right without being bitten by doing it wrong.
Replying to
Imagine if methods called via a timer couldn't set ivars/properties/global state and were forced to only read existing data!
Replying to
on a past Java project, all derived data was dependent on values directly from the UI. It was very hard to read.
Replying to
it was mostly just an experiment to see what that would look like on a real project.
Replying to
I made the same argument about caching you make here to convince others that it was worth doing. :)



