This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-11
Channels
- # adventofcode (108)
- # announcements (4)
- # aws (11)
- # babashka (39)
- # beginners (199)
- # calva (12)
- # clj-kondo (17)
- # cljs-dev (1)
- # clojure (115)
- # clojure-dev (9)
- # clojure-europe (98)
- # clojure-italy (17)
- # clojure-nl (4)
- # clojure-norway (3)
- # clojure-seattle (7)
- # clojure-sweden (6)
- # clojure-switzerland (5)
- # clojure-uk (15)
- # clojurescript (41)
- # code-reviews (36)
- # conjure (7)
- # datomic (1)
- # emacs (1)
- # events (1)
- # fulcro (26)
- # graalvm (2)
- # helix (35)
- # jackdaw (2)
- # jobs (9)
- # jobs-discuss (5)
- # lambdaisland (2)
- # meander (24)
- # off-topic (80)
- # pathom (22)
- # pedestal (1)
- # portal (20)
- # re-frame (3)
- # releases (1)
- # reveal (13)
- # rewrite-clj (1)
- # shadow-cljs (8)
- # specter (5)
- # sql (4)
Workflow question - how do you guys manage your "scratch file" in conjure? Do you always change (ns http://abc.xyz) on the first line before evaluating code? Or is there a more elegant way?
I have a separate tree of files that all have appropriate namespaces, and I add that tree of files when I launch the repl
so for namespace app.foo.bar
, I have fiddle.foo.bar
with my scratch code and rich comments
and in the fiddle namespace, I either refer all from the other namespace or just qualify all my calls into it
Same idea here. I have a separate "dev" folder on the same level as "src" that usually has a scratch.clj (ns scratch) and/or a user.clj (ns user) The "dev" folder is not part of the classpath by default, I add it when needed by using a "dev" alias defined in the project's deps.edn
You can also use :helpgrep b:conjure#context
to set a buffer's namespace (context) to a specific string without putting it in the buffer itself.
Thanks @U38J3881W - that does the job!