News for hackers. Stuff that matters.
Re:How UI-driven state increases accidental complexity by nyanpasu64 on Wednesday March 25, 2020 @09:08AM (#22684146)
Immutable data makes updates hard and undo easy. It's especially painful in C++.

Mutable data makes mutation easy and undo hard.

I don't know if there's a good solution. The command pattern is based off mutable data, and works, but has lots of boilerplate and implementation (to mutate the document forwards and backwards).

There are no comments on this comment yet.