Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide more useful information in data browser #172

Open
danielcompton opened this issue Mar 15, 2018 · 0 comments
Open

Provide more useful information in data browser #172

danielcompton opened this issue Mar 15, 2018 · 0 comments

Comments

@danielcompton
Copy link
Contributor

danielcompton commented Mar 15, 2018

The data browser is great at looking at data in app-db, subs, and the new code tracing feature. It does well at not overwhelming you with too much data, by hiding more data behind the disclosure triangle. But sometimes the specifics of the data are not as interesting as the next level of structure, or the way that the data is printed obscures the difference between different things. Some useful things to be able to see/say about data are:

  • "There are 65 elements in this vector"
  • "The keys in this map are :x, :y, :z
  • "The shape of the data provided matches this spec"
  • "The shape of this data is a {:x [100 items] :y boolean :z String}"
  • "The keys of this map are (1 3 4 5 6 7 10)
  • "The first 5 and last 5 elements of this vector are: `

As a concrete example:

screenshot of safari 15-03-18 4-34-23 pm

  • The first two todos are maps with 5 elements in them, with keys (3 4 5 6 7)
  • (vals todos) returned a sequence of 5 maps
  • (filter :done) returned a sequence 2 maps
  • (map :id) returned a sequence of 2 integers
  • (reduce dissoc todos) returned a map with 3 map entries in them, with keys (3 6 7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants