Changes between Version 18 and Version 19 of Clojure Client Tutorial


Ignore:
Timestamp:
Aug 4, 2011 3:07:07 PM (13 years ago)
Author:
kedwar10
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Clojure Client Tutorial

    v18 v19  
    44
    55== Getting Started ==
    6 
    7 ----
    8 
    9 == Overview of Code ==
    10 
    11 ----
    12 
    13 == Client Usage Tutorial ==
    14 
    15 ----
    16 
    17 == Sample Domains ==
    18 
    196
    207The first thing you need before using this client is the Leiningen script.  This tool makes managing clojure projects relatively easy by providing a REPL, automatically downloading dependencies, compiling your projects into jar files, and many other useful abilities.  You can download Leiningen and read its tutorial here [[https://github.com/technomancy/leiningen]] and here [[https://github.com/technomancy/leiningen/blob/stable/doc/TUTORIAL.md]], respectively. If you're having trouble with leiningen, type "lein help" in the shell to see available commands (you can configure leiningen individually for each project, however, so these will differ depending on which directory you are in). Leiningen supports integration with emacs via the swank/slime mechanism, and if you're bent on using this, you can read up on it here [[http://dev.clojure.org/display/doc/Getting+Started]] (I strongly recommend that you don't attempt this unless you're a emacs expert, as you will likely have to tweak emacs quite a bit to get it working; a simpler solution is to use gvim with the vimclojure script: this provides syntax highlighting and indentation and works out of the box).
     
    5340* Atoms are your go-to way to manage state.
    5441* If you must define a type, prefer the simplest option.  A decision flowchart: [http://cemerick.com/2011/07/05/flowchart-for-choosing-the-right-clojure-type-definition-form/].
     42
     43----
     44
     45== Overview of Code ==
     46
     47----
     48
     49== Client Usage Tutorial ==
     50
     51----
     52
     53== Sample Domains ==
     54
     55
     56
    5557
    5658Now it is time to learn to use the client.  cd to the top level directory and typu "lein repl". If everything went smoothly you'll see something about no rlwrap and the prompt.