Get the latest tech news
Clojure Interactive Development 101
The question was asked once again: "so I'm writing some code into REPL and seeing the results, but that's not very convenient". I decided to write a small intro on how to do interactive development (a.k.a. REPL-driven development) more conveniently.
As you can see, this is a toy middleware function, that receives a request, runs it through some unknown to us authorization logic, and the returns a string, depending on the result. In CIDER this is done with M-x cider-eval-defun-at-point RET, you can find the similar VS Code command and more examples and videos on the subject in the eval tips article on Calva's website. We eval expressions that are deep within functions we work with with substituted params to quickly find and fix bugs (even in production, using nREPL).
Or read this on Hacker News