Learning some cool new stuff with clojure!
This is my personal playground repository. I'll add code and documentation here while I follow the book Clojure for the Brave and True.
Download from ...nowhere yet.
This app has been generated with the following command:
lein new app app-name
Let's use Leiningen to run this thing...
lein run
Run it!lein uberjar
Build a jar filejava -jar target/uberjar/clojure-noob-0.1.0-SNAPSHOT-standalone.jar
Run the generated jar file
Other commands:
lein eastwood
run the linterlein cloverage
analyze the test coveragelein ancient
search for outdated dependencieslein kibit
analyze the code and suggest more idiomatic variantslein bikeshed
analyze the formatting of the source fileslein omni
run all the quality analyzers (eastwood, cloverage, ancient, kibit and bikeshed).
Using the REPL (Read Eval Print Loop):
lein repl
Start it!
Run the function M-x cider-jack-in RET
to start the REPL in a new window.
Select code and press C-x C-e
in order to send it for evaluation into the REPL.
While working on a .clj
file/buffer, use C-c M-n
to set the namespace to the one specified on the top of the file.
After editing a .clj
file, use C-c C-k
to compile it within the REPL session.
Copyright © 2017
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.