Talk:Clojure Programming

From Wikibooks, the open-content textbooks collection

Jump to: navigation, search

The sample gui application quits immediately now ... I need to put a (. Thread (sleep 10000)) to get any value from it. Brand new to Clojure, so I'm not sure what the best fix is.

Contents

[edit] split into multiple pages?

Good article, but long. Might consider splitting it into multiple pages.

-- I split the main topic to subpages, but didn't edit the main page yet. This should help further work

http://en.wikibooks.org/wiki/Clojure_Programming/Getting_Started http://en.wikibooks.org/wiki/Clojure_Programming/Tutorials_and_Tips http://en.wikibooks.org/wiki/Clojure_Programming/Concepts http://en.wikibooks.org/wiki/Clojure_Programming/Examples

[edit] mvn vs ant

I've did "mvn install", but it downloaded a whole bunch of things to my machine. And so far just doing "ant" works for me :)

[edit] Problem with clj-completions script

The supplied clj-competions script doesn't work with recent svn checkouts. The following will do completions for the clojure.core namespace

(defmacro with-out-file [pathname & body]
  `(with-open [stream# (new java.io.FileWriter ~pathname)]
    (binding [*out* stream#]
      ~@body)))
 
(def completions (keys (ns-publics (find-ns 'clojure.core))))
(with-out-file "clj-keys.txt" (doseq [x completions] (println x)))

[edit] needs much work

Wow, these instructions are atrocious.

[edit] Knowledge collection

There is so much knowledge in the Google Group, IRC transcripts, official docs, actual code, screencasts, and what not. It's getting out of hand to learn all the small stuff like conventions, idioms, guidelines, principles of operation, and other stuff that's usually left out of the regular docs and, currently, out of this wiki.

Maybe there's a point to start a section for these small not-really-belonging-anywhere-else tidbits? E.g. What's Clojure convention for naming functions, camelCase or under_scores or dash-names? (dash-names).

What do you think?

[edit] Approved revisions

The approved revision mechanism is killing this wiki. I'm avoiding even the smallest improvements due to this over-controlling mechanism. Please remove it and let the magic commence. 62.0.132.222 (talk) 10:43, 8 February 2009 (UTC)

I don't think there's a way to disable this, unfortunately. Help:Revision_review#Automatic_editor_status_criteria explains how one can become an editor. I think it's too much trouble, but the rules are being revised, apparently. 41.241.89.88 (talk) 14:22, 11 February 2009 (UTC)

[edit] Orphaned page

Clojure Programming/TJP Examples is not linked to by this book. Please mark it for deletion with {{delete|reasoning}}, link to it, or merge it into another page and mark it with {{now merged|destination page}}. -- Adrignola talk contribs 21:08, 1 August 2009 (UTC)