Fork me on GitHub
#portal
<
2022-07-29
>
mschmele16:07:57

Hi @djblue! A coworker of mine created a tool that he calls https://github.com/vvvvalvalval/scope-capture and it seems like it could be a great addition to a workflow with Portal, and makes me curious if there's an appetite from people here to have a document that would detail some of the ways that we use Portal effectively

mschmele16:07:49

My current workflow is something like: Capture values with tap> (usually function arguments)

(tap> {:param1 param1 :other-var other-var})
Select values in Portal and work in a comment block
(comment
  (let [{:keys [param1 other-var} @dev/portal]
    (some-code-here param1)))
This involves quite a bit of manual code manipulation to capture the values that I want, and while it works very well, I'm sure the process could be improved. Curious to see how others work

mschmele16:07:56

For context, this workflow is essentially my effort to emulate the behavior of proto-repl: https://www.youtube.com/watch?v=buPPGxOnBnk

djblue16:07:27

Yeah, I think having a https://github.com/djblue/portal/tree/master/doc/guides for how to use scope capture + portal would be very nice 💯

1
mschmele16:07:18

Oh good call! I may have time to put an initial usage doc today

🙏 1
steveb8n11:07:08

Awesome. I use scope capture every day