Comment

Comment by blt

The article also says:

> ... all the capabilities of reversing events can be done instead by reverting to a past snapshot and replaying the event stream. As a result reversal is never absolutely needed for functionality. However it may make a big difference to efficiency...

When I implemented undo/redo, I found that replaying from snapshots was fast enough. I wasn't working on a database-backed app though.

Implementing reversal is extra work and bug surface, so it should be subject to cost/benefit analysis.

parent blt 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton