beginners

VardriPoise 2025-07-05T10:12:22.937979Z

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!

practicalli-johnny 2025-07-06T13:15:01.976579Z

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))
)

VardriPoise 2025-07-17T12:54:15.308599Z

Just wanted to thank you both for the portal+tap suggestions, has made my workflow way better and I've started using both extensively, ty! @p-himik @jr0cket

👍 1
p-himik 2025-07-05T10:24:47.254499Z

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.

☝️ 1
VardriPoise 2025-07-05T10:28:51.386199Z

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

VardriPoise 2025-07-05T10:28:59.395949Z

by Portal were you referring to https://github.com/djblue/portal?

p-himik 2025-07-05T10:29:49.988119Z

Yep.

VardriPoise 2025-07-05T10:35:58.062089Z

I see neat, thanks for the comments!