The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

jeffmad (5) [Avatar] Offline
#1
As a new student of Clojure, we often hear people sing the praises of the REPL, but it is not really too clear on how it is used other than simple functions (+ 1 3). What if you make a typo or find a bug? How do you fix it? Once you have a few functions working, how do you save them to a file?

I think it would be valuable to show an example that demonstrates how experienced clojure devs work: in an editor, write some code, load it into the repo, load test code, run it, make fixes, refresh the REPL. run it again. You seem to hint around it in ch. 2 and 10, but stackoverflow suggests that this question comes up a lot.

Contrast that development style to most devs working on a web app - change code in IDE, build, deploy web app locally (wait), run http request, look at output, rinse repeat.
amitrathore (132) [Avatar] Offline
#2
Re: repl example
Check out chapter 10 - about TDD and REPL-driven development

Let me know if that's helpful with this...