day8 / re-frame-10x

A debugging dashboard for re-frame. X-ray vision as tooling.
MIT License
635 stars 68 forks source link

Better Diffing #272

Open mike-thompson-day8 opened 4 years ago

mike-thompson-day8 commented 4 years ago

In various places, the re-frame-10x user interface shows how data has changed between one epoch and the next.

It currently uses clojure.data/diff to calculate these diffs.

But perhaps we should be using Editscript instead?

Also, see this analysis: https://juji.io/blog/comparing-clojure-diff-libraries/

superstructor commented 3 years ago

deep-diff2 seems like the recommended way to go for

If you want to look at the diffs and do not care if the diffs are always the smallest possible, deep-diff2 is great.

It is also written in CLJC, so runs in ClojureScript.

However, the only way of "pretty printing" in the docs mentions Puget and Fipp, which are Clojure-only. So its not yet clear how one would colourise the output w/ ClojureScript.