This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-29
Channels
- # announcements (3)
- # babashka (47)
- # beginners (88)
- # calva (17)
- # clj-kondo (8)
- # cljdoc (1)
- # clojars (9)
- # clojure (98)
- # clojure-europe (53)
- # clojure-norway (2)
- # clojure-seattle (1)
- # clojure-uk (5)
- # clojurescript (20)
- # cursive (11)
- # data-oriented-programming (1)
- # data-science (3)
- # datahike (1)
- # datascript (3)
- # events (3)
- # graalvm (5)
- # honeysql (7)
- # hyperfiddle (1)
- # jobs-discuss (10)
- # leiningen (3)
- # malli (16)
- # music (4)
- # nbb (17)
- # off-topic (45)
- # pathom (9)
- # portal (7)
- # releases (1)
- # shadow-cljs (80)
- # sql (15)
- # tools-build (5)
- # xtdb (23)
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
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 workFor context, this workflow is essentially my effort to emulate the behavior of proto-repl: https://www.youtube.com/watch?v=buPPGxOnBnk
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 💯
@djblue PR with basic usage guide open: https://github.com/djblue/portal/pull/134