For anyone using conjure or any method of in-editor evaluation, do you know if there's a way to add a side-effectful command in-expression to inform the output method to change the color of a particular section of the output? am currently working on transformations of very deeply nested data and I'd like to add these kind of instructions to paint pieces of the data to be able to better see what I'm doing. Or suggestions for alternative methods/ideas for doing this sort of things would be highly appreciated!
When using Neovim & Conjure I https://practical.li/clojure/data-inspector/portal/. Portal can be used to navigate data structures. You could also evaluate or tap> specific parts of the data structure to see specific changes (I usually add this type of code in a comment block at the bottom of the relevant namespace)
(comment
(tap> (-> data :key :sub-key :sub-sub-key))
)If possible, it's best to avoid deeply nested data.
But if not, I'd definitely use Portal along with tap>.
You can tap> just the data that you need and you can create custom viewers for any data.
IMO inline evaluation is only suitable for things producing tiny output. And I don't use it myself at all - to me it's strictly worse than anything else given that I have REPL open at all times when working on something.
hm right, I was thinking that maybe a better workflow would be to factor out these transformations into something that instead focuses on creating the function that gets maped into creating these, for easier output. ty the idea of using tap> didn't occur to me though, I will try it out
by Portal were you referring to https://github.com/djblue/portal?
Yep.
I see neat, thanks for the comments!