Maybe you just too used to programming in language that don't equipped with
REPL.

Typical development process I have is:

* analysis the problem, and design a few fn to solve it. Most of fn should
be functional, so you can easily test them.
* start a REPL, load that namespace, and test fns individually, if get some
errors, edit fns again, and use `:reload` in `use` or `require` to reload
ns, and test again. lein repl startup time is just painful.
* and then write some test cases for the fns you written for your
regression test.

RUN is too heavy for clojure, REPL will accelerate your development a
**lot**.

Thanks,
Di Xu

2014-12-05 17:41 GMT+08:00 Laye Zhou <laye.z...@gmail.com>:

> Hi,
>
> I started learning Clojure this week and I'm a bit confused about the
> general development process in the Clojure world.
>
> When I write Java there is a main method as the entry of the program, and
> in the IntelliJ IDEA it's kind of easy to run or debug the program by just
> clicking the "Run" or "Debug". When I write Clojure code, this process of
> "editing, compiling, debuting/running" seems so different because I need to
> setup a Java application in IDEA + Cursive to start clojure.main -m
> main-namespace and there is no way to just click that "Run" button. Is it
> right I need to enable "Compile all namespaces" in the Clojure settings in
> IDEA? And since now we're equipped with REPL, I wonder what is the best way
> I can debug/run the program before I really build the project. Thank you.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to