> I, however, have still been doing a more traditional
> write/save/execute debugging workflow without the REPL, which doesn't
> seem to get the real benefits of the REPL.  From what I understand,
> when you take full advantage of the REPL, you can quickly tweak things
> in the code like if a function breaks, you can rewrite it and start
> again.  Say for example a GUI is opened and a button press calls some
> clojure function.  If there's a bug in that, I can redefine that
> function in the REPL and just click again on the button to continue
> without losing the state of the program when I recompile.  Is this
> correct?

Yes, within reason. A re-defined top-level function will be
immediately visible. Changing a macro requires re-compiling code that
uses that macro. How practically useful re-loading of code is will
depend on how the application is structured.

> Are there any tutorials specific to developing and debugging large
> clojure apps through the REPL?

If you mean just the mechanics of getting a useful REPL hooked up to
your editor, I'd recommend clojure-swank and slime in emacs. The
easiest way, assuming a modern emacs, is probably to install the
swank-clojure package via ELPA: http://tromey.com/elpa/

There is something similar for vim (I'm sure a vim user will chime in).

If you're rather looking for overall workflows/program structure/best
practices etc - good question. :)

-- 
/ Peter Schuller

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to