News for hackers. Stuff that matters.
Re:An expanded comment on Clojure web development by VMG on Thursday February 06, 2014 @05:08PM (#7193256)
I'm interested in a toolchain for cutting down on the editor-edit/server-restart/browser-refresh cycles. Is there any development in the direction of meteor that can help me make development a live experience?
Re:An expanded comment on Clojure web development by weavejester on Thursday February 06, 2014 @05:18PM (#7193308)
There are two approaches you can take.

The ring/ring-devel library includes middleware that reloads modified files (ring.middleware.reload), and this is included by default with the Lein-Ring plugin.

The second approach is to run the server from within the REPL, and to have functions to reload modified files and restart the server. There are libraries like Component and Jig that provide a framework for this style of development.

The trend seems to be toward the second, though it requires a little more work than the first option.

Re:An expanded comment on Clojure web development by billrobertson42 on Friday February 07, 2014 @09:44AM (#7196422)
The first option is really easy to get started with. It can get a little clunky though when you suddenly need a repl, because now you need a new window (be it terminal or emacs).