Re: Testing and infrastructure management for large Clojure app - how are you doing it?

2014-10-29 Thread Colin Yates
Hi David, Not to overstep the implied etiquette of these situations/patronise or condescend(!), but reading between the lines, I don't think you have a technology constraint I think you have a process constraint. You dropped the word agile in there (which is usually a license for people to

Re: Testing and infrastructure management for large Clojure app - how are you doing it?

2014-10-29 Thread Colin Yates
I also meant to say that it is worth doing a cost-benefit analysis on testing. When I did my consultant thing I frequently saw massive investment in tools, process, emotion(!) etc. in things that on paper were a good thing but in reality weren't mitigating any real risk. All testing isn't

where do I think the wrong way

2014-10-29 Thread Roelof Wobben
Hello, For a exercise I have to add something to the end of a existing map. So I thought this would work : (defn add-author [book new-author] (assoc book (conj :authors new-author))) and call the function with : (add-author little-schemer {:name Gerald J. Sussman}) then I see this

Re: where do I think the wrong way

2014-10-29 Thread Di Xu
maybe you should do this: (defn add-author [book new-author] (update-in book [:authors] conj new-author) Thanks, Di Xu 2014-10-29 19:01 GMT+08:00 Roelof Wobben rwob...@hotmail.com: Hello, For a exercise I have to add something to the end of a existing map. So I thought this would work

Re: where do I think the wrong way

2014-10-29 Thread James Reeves
On 29 October 2014 11:01, Roelof Wobben rwob...@hotmail.com wrote: For a exercise I have to add something to the end of a existing map. So I thought this would work : (defn add-author [book new-author] (assoc book (conj :authors new-author))) Take a look at that conj expression on its

Re: where do I think the wrong way

2014-10-29 Thread Roelof Wobben
Thanks James, But how do I use assoc with it I tried this : (defn add-author [book new-author] (assoc book (conj (book :authors) new-author))) but then I see this message : ArityException Wrong number of args (2) passed to: core$assoc clojure.lang.AFn.throwArity (AFn.java:437)

Re: where do I think the wrong way

2014-10-29 Thread Sven Richter
Hi Roelof, Just a general advice, for figuring out how small things like these work and why they don't work I find Lighttable (http://lighttable.com/) an awesome IDE. This is the best thing available to learn clojure (combined with a good book or online resource of course) and I would have to

Re: where do I think the wrong way

2014-10-29 Thread Luc Prefontaine
You need to provide a key and a value. (assoc book :authors (conj ... LP Thanks James, But how do I use assoc with it I tried this : (defn add-author [book new-author] (assoc book (conj (book :authors) new-author))) but then I see this message : ArityException Wrong

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-29 Thread Max Penet
Just curious, why http://dev.clojure.org/jira/browse/CLJ-1517 didn't make it. It seemed complete at first glance. On Tuesday, October 28, 2014 9:53:05 PM UTC+1, Alex Miller wrote: We will definitely be rolling this particular aspect of CLJ-1330 back in the next release. Alex On Tuesday,

Re: where do I think the wrong way

2014-10-29 Thread James Reeves
On 29 October 2014 11:20, Roelof Wobben rwob...@hotmail.com wrote: Thanks James, But how do I use assoc with it I tried this : (defn add-author [book new-author] (assoc book (conj (book :authors) new-author))) but then I see this message : ArityException Wrong number of args (2)

Re: where do I think the wrong way

2014-10-29 Thread François Rey
You also need to clarify your intention: are you adding an author to a list of authors, or setting the single author? I suppose the first, but then you need to be clear on what the list of authors is. , associated to the :authors key, look like. In

Re: where do I think the wrong way

2014-10-29 Thread François Rey
(oops my earlier message isn't quite right, here's the correct one) You also need to clarify your intention: are you adding an author to a list of authors, or setting the single author? I suppose the first, but then you need to be clear on what the

Re: where do I think the wrong way

2014-10-29 Thread François Rey
(oops my earlier message isn't quite right, here's the correct one) You also need to clarify your intention: are you adding an author to a list of authors, or setting the single author? I suppose the first, but then you need to be clear on what the

Namespace metadata

2014-10-29 Thread Haim Ashkenazi
Hi When I first wrote ayler https://github.com/babysnakes/ayler/wiki (a simple namespace browser) I used to get the doc for namespace by running something like this: (:doc (meta (find-ns 'some.namespace))) It used to work on all namespaces (IIRC I was working on clojure 1.4). Lately I noticed

Print broken in Cider 0.7.0 - Ring - Compojure

2014-10-29 Thread Steve Shogren
I cannot seem to see the results of println, print, or clojure.tools.trace/trace when running my site, per my setup here: http://stackoverflow.com/questions/22365741/missing-out-in-clojure-with-lein-and-ring?lq=1 The one comment suggested trying (.println System/out msg) which prints as I

Re: Namespace metadata

2014-10-29 Thread Haim Ashkenazi
Sorry, I pressed send too soon :) Here it is from the start: When I first wrote ayler https://github.com/babysnakes/ayler/wiki (a simple namespace browser) I used to get the doc for namespace by running something like this: (:doc (meta (find-ns 'some.namespace))) It used to work on all

Re: where do I think the wrong way

2014-10-29 Thread Roelof Wobben
Thanks all, It clear to me that I have to read the explanation or the right wiki page more carefully. I tried all of them and they all give the same answer : {:title zbook, :authors [{:name James} {:name Joe}]} Roelof Op woensdag 29 oktober 2014 13:34:32 UTC+1 schreef François Rey:

Re: Namespace metadata

2014-10-29 Thread Nicola Mometto
Might be an instance of http://dev.clojure.org/jira/browse/CLJ-130 Haim Ashkenazi writes: Sorry, I pressed send too soon :) Here it is from the start: When I first wrote ayler https://github.com/babysnakes/ayler/wiki (a simple namespace browser) I used to get the doc for namespace by

Re: Namespace metadata

2014-10-29 Thread Haim Ashkenazi
Thanks Nicola, I don't think this is the reason. clojure.test is also explicitly adding docs. Also I encountered it in riemann in a namespace that is not AOT at all. On Wed, Oct 29, 2014 at 3:03 PM, Nicola Mometto brobro...@gmail.com wrote: Might be an instance of

Re: Namespace metadata

2014-10-29 Thread Nicola Mometto
I just tested for clojure.test and I'm getting nil with clojure 1.7.0-master-SNAPSHOT but the correct metadata when using master w/ clj-130 patch. Haim Ashkenazi writes: Thanks Nicola, I don't think this is the reason. clojure.test is also explicitly adding docs. Also I encountered it in

How is Matthias' transcripts license going?

2014-10-29 Thread OHTA Shogo
Hi Recently, Matthias Nehlsen graciously shared his transcripts [1] of Rich Hickey's talks. They are pretty helpful for us, as non-native English speaker, to get better understanding of the talks. Thank you for your great effort, Matthias! So, now I'm planning to start a project translating

Re: Namespace metadata

2014-10-29 Thread Haim Ashkenazi
Thanks Nicola, I stand corrected :) However, It did work on 1.4 so there's something strange. Anyway, hope it will be solved. On Wed, Oct 29, 2014 at 3:20 PM, Nicola Mometto brobro...@gmail.com wrote: I just tested for clojure.test and I'm getting nil with clojure 1.7.0-master-SNAPSHOT but

Using Clojure for Social Media

2014-10-29 Thread Cecil Westerhof
A long time I wrote a Bash script to post on Facebook by sending emails and a PHP script to post on Twitter with OAuth2. I find them lacking and I also want to post on LinkedIn. I thought it was a good project to learn more of Clojure. I have looked around a bit and it seems that QArth is the

Re: [ANN] Clojure 1.7.0-alpha3 now available

2014-10-29 Thread Alex Miller
It's a big change and will require a fair amount of screening and analysis, none of which has been done yet. On Wednesday, October 29, 2014 7:25:20 AM UTC-5, Max Penet wrote: Just curious, why http://dev.clojure.org/jira/browse/CLJ-1517 didn't make it. It seemed complete at first glance.

Re: Using Clojure for Social Media

2014-10-29 Thread Cecil Westerhof
2014-10-29 14:46 GMT+01:00 Cecil Westerhof cldwester...@gmail.com: A long time I wrote a Bash script to post on Facebook by sending emails and a PHP script to post on Twitter with OAuth2. I find them lacking and I also want to post on LinkedIn. I thought it was a good project to learn more

Clojure Survey 2014 - Tag Clouds

2014-10-29 Thread juan.facorro
Hi All, In case someone was interested in the results and how I got to them, I wrote an article about my attempt to visualize the free-form text answers from Clojure’s (and ClojureScript) Community Survey 2014. Any comments, suggestions or questions are welcome. Clojure Survey 2014 - Tag

Re: Print broken in Cider 0.7.0 - Ring - Compojure

2014-10-29 Thread Bozhidar Batsov
I recall that a similar problem was caused by a buggy nREPL version.  See https://github.com/clojure-emacs/cider/issues/785 — Cheers,  Bozhidar On October 29, 2014 at 2:41:02 PM, Steve Shogren (steve.a.shog...@gmail.com) wrote: I cannot seem to see the results of println, print, or

Re: where do I think the wrong way

2014-10-29 Thread Benjamin VanRyseghem
(defn add-author [book new-author]   (assoc book (conj (:authors book) new-author))) or (defn add-author [book new-author]   (assoc book (conj (get book :authors) new-author))) Ben On Wed, Oct 29, 2014 at 12:20 PM, Roelof Wobben rwob...@hotmail.com wrote: Thanks James, But

Re: where do I think the wrong way

2014-10-29 Thread Henrik Lundahl
The error message means that you gave assoc the wrong number of arguments. In the simplest case assoc takes three arguments - the map, a key and a (new) value, so you need to add another :authors: (defn add-author [book new-author] (assoc book :authors (conj (book :authors) new-author))) I

Re: How is Matthias' transcripts license going?

2014-10-29 Thread Alex Miller
I have no idea what the legal rules are around publishing transcripts of talks regarding license or copyright. Using images of every slide in the talk and transcribing every word is well beyond any possible fair use provision - that's generally something that would require some kind of rights.

Re: Starting a project the right way - tips?

2014-10-29 Thread Dylan Butman
+1 for using https://github.com/stuartsierra/component for managing runtime state. makes subbing stub components for testing really easy, and also allows you to test more granular parts of your system. also for datomic https://github.com/rkneufeld/conformity is a nice utility for managing

Re: Print broken in Cider 0.7.0 - Ring - Compojure

2014-10-29 Thread J Irving
I had a similar problem a while back, which I caused to go away without ever understanding what the cause was. https://groups.google.com/forum/#!topic/cider-emacs/tMeTw79imgw Short version, I blew away my ./target directory, and it started working again. No idea if this helps you, but there you

Re: How is Matthias' transcripts license going?

2014-10-29 Thread Fluid Dynamics
On Wednesday, October 29, 2014 10:40:49 AM UTC-4, Alex Miller wrote: I have no idea what the legal rules are around publishing transcripts of talks regarding license or copyright. Using images of every slide in the talk and transcribing every word is well beyond any possible fair use

Re: Print broken in Cider 0.7.0 - Ring - Compojure

2014-10-29 Thread Steve Shogren
Supposedly that was fixed in nrepl 0.2.6, which is the version I am using. Still nothing. On Wednesday, October 29, 2014 10:15:34 AM UTC-4, Bozhidar Batsov wrote: I recall that a similar problem was caused by a buggy nREPL version. See https://github.com/clojure-emacs/cider/issues/785 —

Re: How is Matthias' transcripts license going?

2014-10-29 Thread Franklin M. Siler
On Oct 29, 2014, at 10:28, Fluid Dynamics a2093...@trbvm.com wrote: But, you should get a second opinion from a practicing lawyer before proceeding, unless the plan is to just leak the fan translations anonymously in some untraceable way. :) Practicing lawyer says get the paperwork.

Re: Print broken in Cider 0.7.0 - Ring - Compojure

2014-10-29 Thread Bozhidar Batsov
I’d suggest filing the a ticket with output from *nrepl-messages* so we can have an idea what’s going on. You can also try the 0.8-snapshot. — Cheers,  Bozhidar On October 29, 2014 at 5:43:56 PM, Steve Shogren (steve.a.shog...@gmail.com) wrote: Supposedly that was fixed in nrepl 0.2.6, which

[ANN] org.clojure/java.jdbc 0.3.6 available

2014-10-29 Thread Sean Corfield
Contrib Clojure wrapper for JDBC access to databases. Minor update: Arbitrary values allowed for :cursors, :concurrency, :result-type arguments to prepare-statement JDBC-102 https://dev.clojure.org/jira/browse/JDBC-102. Allow :as-arrays? :cols-as-is to omit column name uniqueness when returning

[ANN] outfn - A macro for clearer, more declarative functions (that are actually macros).

2014-10-29 Thread Diogo Almeida
Hi everyone, A couple of coworkers and I were chatting about what some of our biggest problems with (our) Clojure code was, and came up with this: https://github.com/diogo149/outfn ! We just finished making it, so we haven't really battle-tested it, but we would love to hear feedback and

Re: Starting a project the right way - tips?

2014-10-29 Thread Daniel Szmulewicz
If you'll follow James Reeves' recommendations (which you should), you might want to have a look at System, a library that streamlines the process of setting up components. This is the first step I take with any Clojure project. https://github.com/danielsz/system Its sole dependencies are

Proof of concept: ClojureScript - Apple's Javascript for Automation.

2014-10-29 Thread Daniel Szmulewicz
This is a proof of concept to show how ClojureScript can be used in the context of Apple's JavaScript for Automation that ships with Yosemite. https://gist.github.com/danielsz/9c4ed2fbf4c0ac6b2d95 -- You received this message because you are subscribed to the Google Groups Clojure group. To

Re: Starting a project the right way - tips?

2014-10-29 Thread Ravindra Jaju
I find Potemkin's import-vars [https://github.com/ztellman/potemkin] too a very neat addition to one's toolbox. Allows one to keep a clean code-layout. I haven't used the other parts to comment on them. Best, Ravindra On Thu, Oct 30, 2014 at 5:44 AM, Daniel Szmulewicz