Ep 102: REPLify!

Play Episode

Each week, we discuss a different topic about Clojure and functional programming.

If you have a question or topic you'd like us to discuss, tweet @clojuredesign, send an email to feedback@clojuredesign.club, or join the #clojuredesign-podcast channel on the Clojurians Slack.

This week, the topic is: "using the REPL to explore". We find ourselves in a murky situation, so we go to our REPL-connected editor to shine some light on the details.

Our discussion includes:

Selected quotes:

Clojure command line

If you are unfamilar with the Clojure command line, check out the Deps and CLI Guide. You can set up global aliases in $HOME/.clojure/deps.edn. For example, this is one Christoph uses:

{:aliases
 {:nrepl {:extra-deps {nrepl/nrepl {:mvn/version "RELEASE"}
                       cider/piggieback {:mvn/version "RELEASE"}}
          :jvm-opts ["-server" "-XX:MaxMetaspaceSize=256m" "-Xmx1280m"]
          :main-opts ["-m" "nrepl.cmdline"]}}}

Run it with:

clojure -M:nrepl

You can see more examples in Nate's dotfiles and in Sean Corfield's dot-clojure project.