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
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
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
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
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
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)
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
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
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,
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)
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
(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
(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
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
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
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
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:
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
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
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
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
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
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
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.
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
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
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
(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
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
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.
+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
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
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
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
—
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.
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
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
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
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
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
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
41 matches
Mail list logo