Korny mentioned java.jdbc and I figured that was a good in to talk
about how we use it at World Singles. Even with the old API we used a
function in a specific namespace that returned the data source (in
fact it returned a pooled data source, using c3p0). Behind the scenes,
we actually use an atom
But then instead of
(if (not (empty? foo))
(do-something-to foo)
base-expr)
you could just write
(if (empty? foo)
base-expr
(do-something-to foo))
which maintains the idiomatic approach but is still more obvious code, yes?
Sean
On Sat, May 11, 2013 at 2:20 PM, Jonathan Fischer
Daniel hinted at it in his response and it's been discussed several
times in the past but most of clojure.lang.RT and pretty much all of
clojure.lang.{anything-else} is considered a private implementation
detail and subject to change, so relying on it in code is very
brittle. I think Rich has
On Tue, May 7, 2013 at 8:08 AM, Thomas Heller th.hel...@gmail.com wrote:
1) Why the keyword args to most functions?
Because they're optional for most people.
entities/identifiers in
particular. My SQL Tables have columns like created_at, created_by,
since SQL doesnt like - as separators, I
was not
already imported.
The problem could be fixed by adding the fully qualified type
hint java.sql.Connection instead of just Connection to
get-connection. Could you please change this?
Thanks, Roman.
On Saturday, May 4, 2013 2:32:37 AM UTC+2, Sean Corfield wrote:
Another step toward the 0.3.0
The :as key binds the entire _original_ map.
The :or defaults apply only to the bound variables extracted from the map.
It caught me out when I first used map destructuring but I soon got used to it.
On Fri, May 3, 2013 at 12:08 PM, Ryan arekand...@gmail.com wrote:
Thanks Anthony for your
)) (assoc params :my-key my-key)
params)
(str my-key value is (:my-key params)))
...but it's too damn ugly, need to think about it a bit more.
On Friday, May 3, 2013 10:22:59 PM UTC+3, Sean Corfield wrote:
The :as key binds the entire _original_ map.
The :or defaults apply only
Another step toward the 0.3.0 release for Clojure's JDBC wrapper. A
very minor update, mostly bug fixes and consistency issues. Based on
feedback from some users, the new boolean transaction? argument in
some of the new API functions will probably change in alpha3 although
that's not fully decided
Try this:
user= (def a)
#'user/a
user= (bound? (var a))
false
user= (def a nil)
#'user/a
user= (bound? (var a))
true
Sean
On Mon, Apr 29, 2013 at 8:32 AM, AtKaaZ atk...@gmail.com wrote:
How do you guys handle the cases when the var is unbound? I mean
specifically in the cases where you just
What does your code look like that queries MySQL? The above code
writes to MongoDB which is not going to throw SQLException anyway.
On Fri, Apr 26, 2013 at 8:01 AM, larry google groups
lawrencecloj...@gmail.com wrote:
I wrote a simple app that gets my data out of an old mysql database and puts
On Fri, Apr 26, 2013 at 5:04 PM, jayvandal jayvan...@gmail.com wrote:
I have this code.
(defproject jsql 1.0.0-SNAPSHOT
:description FIXME: write
:dependencies [[org.clojure/clojure 1.4.0]])
That would be your project.clj file, in a Leiningen-created project folder.
When you run:
lein
On Mon, Apr 22, 2013 at 1:45 PM, Mond Ray mondraym...@gmail.com wrote:
Something very odd going on here - one day it works the next day it fails :(
This code is different to what you posted the other day...
#_= (map #(java.util.regex.Pattern/quote (keyword %)))
That won't work -
instance, and for mongos, if I query use fetch-one
it works, just do not work for fetch
On Saturday, April 20, 2013 2:54:43 AM UTC+8, Sean Corfield wrote:
Does the exact same code work connecting directly to a single instance
or a to a replica set (instead of mongos shard server)?
On Fri
Does the exact same code work connecting directly to a single instance
or a to a replica set (instead of mongos shard server)?
On Fri, Apr 19, 2013 at 7:17 AM, Zhi Yang zhi.y...@yottaa.com wrote:
I use
(defn get-conn []
(let [conn (make-connection (:database db-config)
I just tried the code in a fresh REPL with Clojure 1.5.1 and it works,
so I tried it with Clojure 1.4.0 and it works. Well, assuming you do
this first: (require '[clojure.string :as s])
What version of Clojure are you using? Are you doing the require? Do
you have something else defined as `s`?
Yup, autodoc is not run automatically on every commit/build so the
generated docs tend to lag a little behind the source code (for all
contrib libraries). What's currently on
http://clojure.github.com/java.jdbc/ is pretty close to the current
state of 0.3.0-alpha1. The biggest difference is that
I think I would have found it pretty hard to comprehend when I first
started doing Clojure three years ago (eek - time flies!) but it made
sense reading it today and it is pretty elegant. It certainly helps to
know the rules of Conway's Life... I'm not sure I'd inflict this on
my team members yet,
On Tue, Apr 9, 2013 at 1:49 PM, r0man roman.sche...@burningswell.com wrote:
first off, I like the new API design.
Thanx.
1.) Despite the asymmetry I'm also thinking that passing entities
and identifiers functions via the db argument is quite
convienient. Otherwise I always have to wrestle
If you're using 0.3.0-alpha1, I think I'd recommend using native SQL
and the execute! function:
(j/execute! my-db UPDATE employee SET SALARY = SALARY + 1000 WHERE
department = ? [dept])
Sean
On Mon, Apr 8, 2013 at 1:31 PM, Craig craig.worr...@gmail.com wrote:
I am looking for example(s) of
Only identifiers (converting from SQL entities to Clojure keywords)
are handled in java.jdbc directly (inside result-set-seq) - entities
are handled in the DSL which generates SQL and therefore it's not
related to a connection. If you don't use the DSL, there's no
translation going on - you pass
On Sat, Apr 6, 2013 at 5:42 PM, Steven Degutis sbdegu...@gmail.com wrote:
What do you think? What approach would you take in this situation?
I guess I'd turn it around and ask what new problems you think
functional programming introduces for testing - and why do you think
that?
In general, I've
TL;DR: Major API overhaul to make it more idiomatic; old API deprecated
High-level changes described here:
http://corfield.org/blog/post.cfm/clojure-java-jdbc-0-3-0-alpha-1
The README says:
Release 0.3.0-alpha1 on 2013-04-07
MAJOR API OVERHAUL!
Most of the old 0.2.x API has been deprecated
lein new mysql-test
Edit mysql-test/project.clj to add: [mysql/mysql-connector-java
5.1.23] to the list of :dependencies
You'll probably also want to add clojure.java.jdbc or another database
library. For c.j.jdbc, add this dependency: [org.clojure/java.jdbc
0.3.0-alpha1]
Your project.clj
I agree. I see nothing that sets the code pointer back to the start of the loop.
I also agree with Michał's suggestion that getting rid of global state
and making this more functional in style will make it much easier to
read, debug and maintain - as it stands it not very idiomatic for
Clojure.
Each binding introduces a new name/value pair, which can shadow
previous name/value pairs.
I sometimes use let to introduce a modified version of a function
argument or sometimes when I'm conditionally building up a value:
(let [params [x y]
params (if some-arg? (conj params z)
The 0.2.3 API is a strict subset of the 0.2.4 API. Unfortunately the
current autodoc only generates documentation based on master.
On Mon, Apr 1, 2013 at 5:37 PM, smnirven smnir...@gmail.com wrote:
Does the API documentation for version 0.2.3 exist somewhere? I see the
auto-generated docs on
clj-time 0.5.0 was recently released which includes the following changes:
* update Joda Time to 2.2
* update default version of Clojure to 1.5.1 (still supporting 1.2.1 onward)
* add: last-day-of-the-month, first-day-of-the-month,
number-of-days-in-the-month, today-at and periodic-seq from
Contributor Agreements were available for signing at Clojure/West so
I'm guessing it will be under the same process as Clojure itself...
On Fri, Mar 22, 2013 at 9:04 AM, Michael Klishin
michael.s.klis...@gmail.com wrote:
2013/3/22 Alex Redinton alex.reding...@thinkrelevance.com
Please let us
Pretty sure it's just a typo / bug. I think it should read:
{servlet ::servlet
type ::type
:or {type :jetty}
:as service-map}
On Tue, Mar 19, 2013 at 10:09 PM, Matching Socks phill.w...@gmail.com wrote:
I'm puzzled by two :or syntaxes that are used in io.pedestal.service.http,
Old contrib is no longer supported or maintained and parts of it do
not work with newer versions of Clojure so this failure is expected
and nothing will get done about it (unless someone volunteers to port
the old probabilities contrib to the new contrib ecosystem).
On Mon, Mar 18, 2013 at 12:32
http://corfield.org/blog/post.cfm/clj-time-0-4-5-released
* Add testing predicates for days (e.g., tuesday?) and months (e.g.,
july?) -Devin Walters
* Change base Clojure version from 1.3.0 to 1.4.0 (we're testing
against 1.3.0 and 1.5.1 now)
* format-local-time now returns nil on a bad format
http://corfield.org/blog/post.cfm/congomongo-0-4-1-released
* read preference supported (per-connection, per-collection,
per-fetch) - Niclas Meier
* add-index! supports :background true/false - dwwoelfel
* namespaced keyword keys in maps are roundtripped correctly - Adam Clements
(the blog post
On Wed, Mar 13, 2013 at 1:11 AM, Meikel Brandmeyer (kotarak)
m...@kotka.de wrote:
In my experience having problems with switching between - and - is
closely related to unknowingly cross borders between collections land and
sequence land. If you run into this quite often you might want to
On Tue, Mar 12, 2013 at 2:54 AM, Laurent PETIT laurent.pe...@gmail.com wrote:
(- response :body :postalCodes (- (map to-location) (sort-by :city)))
Ah, nice... I'll bear that in mind!
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. --
On Tue, Mar 12, 2013 at 2:07 AM, Marko Topolnik
marko.topol...@gmail.com wrote:
In Clojure 1.5 I would write
Yes, well, we'll be on 1.5.1 soon. Since this is heavily used
production code, we've been waiting for a gold release and for the
memory leak to get fixed before moving to 1.5.x :)
(as-
On Tue, Mar 12, 2013 at 10:21 AM, Neale Swinnerton ne...@isismanor.com wrote:
if designing from scratch should we favour being threadable with - or - ?
My understanding is that the two threading macros are there to support
two existing standard idioms in Clojure:
* functions operating on
On Tue, Mar 12, 2013 at 5:46 PM, shlomivak...@gmail.com wrote:
In my case i am trying to get clojure working with netty 4, here is the
code:
(def #^AbstractBootstrap b (ServerBootstrap.))
(.channel ^AbstractBootstrap b ^Class
io.netty.channel.socket.nio.NioServerSocketChannel)
which
Based on discussions I've seen on this list and clojure-dev, I think
you're using internal APIs that are not considered supported and
therefore subject to change at any time.
I asked about using clojure.lang.RT a while ago and was told to rely
on very little of the API, for example, so all I rely
In addition to clj-time, I tend to use - with date-clj as well:
(- (today)
(subtract 30 :days))
And I find something like this:
(- (- response :body :postalCodes)
(map to-location) (sort-by :city))
much easier to read than:
(sort-by :city (map to-location
On Sat, Mar 9, 2013 at 12:37 PM, BJG145 benmagicf...@gmail.com wrote:
(...I have to say that, from reading the above, Cygwin sounds like a
nighmare and I certainly won't be troubling it...! If you want Linux on a
Windows machine, Virtualbox sounds like a safer bet...)
Installing GOW Gnu on
:38 AM, Jim - FooBar(); jimpil1...@gmail.com wrote:
On 05/03/13 23:05, Sean Corfield wrote:
nrepl uses a specific protocol so you can't use telnet. You'll need an
nrepl client of some sort. Leiningen is the easiest one but I believe
there are nrepl clients in other languages than Clojure
On Wed, Mar 6, 2013 at 7:44 AM, Thomas Heller th.hel...@gmail.com wrote:
I'm using [clojure/java.jdbc 0.2.3] and wasn't sure about a function so I
looked at the source and noticed that the git master seems to be turning
into some sort of DSL/ORM?
Not really. The API (for the upcoming 0.3.0
On Tue, Mar 5, 2013 at 11:57 AM, Phil Hagelberg p...@hagelb.org wrote:
Most people prefer a mailing list or news group since it allows them to
read the content using a client of their choice rather than getting
stuck with whatever HTML user interface the forum operators set up.
Agreed. Forums
nrepl uses a specific protocol so you can't use telnet. You'll need an
nrepl client of some sort. Leiningen is the easiest one but I believe
there are nrepl clients in other languages than Clojure?
On Tue, Mar 5, 2013 at 8:37 AM, Jim - FooBar(); jimpil1...@gmail.com wrote:
On 05/03/13 15:22,
On Fri, Mar 1, 2013 at 9:58 AM, MC Andre andrew.penneba...@gmail.com wrote:
I'm sure that Clojure users, especially novices, would appreciate these
being listed as well-supported options on the official downloads page:
* Windows chocolatey install clojure
* Mac OS X brew install clojure
*
insert-records will use a single with-connection call and a single
transaction to wrap the inserts of all those records (maps).
On Fri, Mar 1, 2013 at 3:57 PM, Jonathon McKitrick jmckitr...@gmail.com wrote:
Does insert-records with a collection of records have any performance
advantage over
On Mon, Mar 4, 2013 at 6:41 PM, Alex Miller a...@puredanger.com wrote:
I updated the links on clojure.org to point to http://leiningen.org/.
Thank you!
I think the philosophy in general on clojure.org is to offer minimal advice
and point instead largely to the Getting Started wiki page where
On Mon, Mar 4, 2013 at 7:25 PM, Alex Miller a...@puredanger.com wrote:
On Monday, March 4, 2013 8:50:55 PM UTC-6, Sean Corfield wrote:
On Mon, Mar 4, 2013 at 6:41 PM, Alex Miller al...@puredanger.com wrote:
I updated the links on clojure.org to point to http://leiningen.org/.
Thank you
On Mon, Mar 4, 2013 at 7:25 PM, Alex Miller a...@puredanger.com wrote:
I think that change is above my paygrade. Why is the dev.clojure.org wiki
hard to maintain?
The wiki structure is rigid, the formatting is limited, it's tied into
a whole bunch of stuff that isn't relevant to end users...
FWIW, I've added a permanent link to clojure-doc.org from my blog with
the link text Clojure Documentation - perhaps others who have blogs
could do the same?
I was looking at meetup.com to see if I could easily find a way to add
resources / links to a group's home page, thinking it would be a
You can click to see the archives:
http://us2.campaign-archive2.com/home/?u=62fb70be840779d7af85e9b6eid=4951b7aa7c
On Wed, Feb 27, 2013 at 6:26 PM, juan.facorro juan.faco...@gmail.com wrote:
Pretty cool. Have you subscribed and recieved any newsletter yet? If so,
what do you think of the
I tend to have this at the top of most of my namespaces:
(def ^:private my-ns *ns*)
This evaluates *ns* at load/init time when it is bound to the
namespace being loaded and then initializes my-ns with that value.
Then I use my-ns throughout that namespace.
*ns* is dynamically bound to whatever
This raises a question I've wondered about for a while: I believe
Clojure makes java.lang.* available by default but not clojure.lang.*
- what is the logic behind that? (I'm not questioning whether it's
right or wrong, just curious as to why...)
Thanx,
Sean
On Mon, Feb 18, 2013 at 5:05 AM, Dave
Oh cool, Christophe has finally removed the version range! Yay! I'll
have to upgrade Enlive at work... that's been driving me nuts for a
while :)
Version ranges: just say no! :)
Sean
On Tue, Feb 19, 2013 at 10:14 PM, Nelson Morris
nmor...@nelsonmorris.net wrote:
While [enlive 1.1.0] does have
You should get col and col_1 automatically since it looks for
duplicate column names and makes them unique. Which version of
java.jdbc are you using?
On Sun, Feb 17, 2013 at 8:46 PM, Alex Baranosky
alexander.barano...@gmail.com wrote:
I have an issue with clojure.java.jdbc, in that I want to
On Fri, Feb 15, 2013 at 4:02 AM, Jules julesjac...@gmail.com wrote:
But most windows users aren't familiar with emacs.
Probably fair to say that most insert anything except lisp users
aren't familiar with emacs :)
Note also that the hypothetical beginner has not figured out yet that
lein.bat
On Fri, Feb 15, 2013 at 4:14 PM, larry google groups
lawrencecloj...@gmail.com wrote:
(defn process-event [request]
(let [request1 (process-pre-event-hooks request)
request2 (process-page-specific-pre-page-hooks request1)
request3 (process-mid-event-hooks request2)
(into {} (map (juxt :id identity) map-array)) ;; the first thing that
comes to mind
On Fri, Feb 15, 2013 at 4:55 PM, Jonathon McKitrick
jmckitr...@gmail.com wrote:
I'd like turn an array of maps into a map of maps, extracting a unique id
from each map as the key.
(into {} (map #([(:id %) %])
On Thu, Feb 14, 2013 at 6:56 PM, Jules julesjac...@gmail.com wrote:
vemv, here is a file describing my Clojure install experience:
https://www.dropbox.com/s/ln2ek5f5n47qnl1/clojureinstall.odp
How should I continue? And where would a beginner find that information?
The problem is the Clojure
You'll find your workflow greatly improved by using nrepl (or
slime/swank) and running tests directly from Emacs - and that applies
whether you're using bare clojure.test, midje or expectations.
I use expectations for testing and expectations-mode in Emacs. I can
run an individual namespace's
Nice! Any idea when the next release to marmalade will happen so those
of us who prefer to work off stable releases can get this multi-buffer
goodness? (I could've really used it yesterday!! :)
On Tue, Feb 12, 2013 at 4:23 PM, Hugo Duncan duncan.h...@gmail.com wrote:
Leonardo Borges
You can call (clojure.java.io/delete-file some-file :not-deleted) and
you'll get true if the delete succeeds and :not-deleted if it fails.
On Sat, Feb 9, 2013 at 1:32 PM, AtKaaZ atk...@gmail.com wrote:
Hi, does anyone see anything wrong with this?
= (source clojure.java.io/delete-file)
(defn
to do that and that it's also
unwritten/expected-of-us-to-know-this
= (clojure.java.io/delete-file c:\\1.123 :not-deleted)
true
= (clojure.java.io/delete-file c:\\1.123 :not-deleted)
:not-deleted
Thank you for this
On Sun, Feb 10, 2013 at 9:13 PM, Sean Corfield seancorfi...@gmail.com
wrote
input, replacing
special characters with lookalikes (i.e. space with an underscore).
On Tuesday, February 5, 2013 10:42:50 PM UTC-8, Sean Corfield wrote:
Andy's right on process... but as maintainer of clojure.java.jdbc, I
have to ask: why on earth do you have column names containing spaces
Andy's right on process... but as maintainer of clojure.java.jdbc, I
have to ask: why on earth do you have column names containing spaces
or or other weird characters? That's a serious question: how do you
get into that situation?
I'm not saying clojure.java.jdbc can't be updated to support it,
Interesting to see this interpretation of if-let... I'd always read it
as if the condition is truthy then let the binding be the condition
and evaluate the first expression else just evaluate the second
expression. Since the binding could create multiple named values (in
general), I'm not sure how
On Tue, Jan 29, 2013 at 2:21 PM, Dennis Haupt d.haup...@gmail.com wrote:
you can do repl driven development with intellij as well i think.
I'm pretty sure Phil meant you can modify your editor (Emacs) using a
REPL-driven approach - which is not true of IntellIj.
--
Sean A Corfield -- (904)
On Tue, Jan 29, 2013 at 1:39 PM, Laurent PETIT laurent.pe...@gmail.com wrote:
2013/1/23 Sean Corfield seancorfi...@gmail.com:
I recall a thread recently that said 'require' hits the disk every
time, even if the ns is already loaded. Did that get fixed and, if so,
when?
Yes, fixed in RC2
Try:
lein deps :tree
It sounds like one of your dependencies uses ranges?
Sean
On Tue, Jan 29, 2013 at 9:16 PM, larry google groups
lawrencecloj...@gmail.com wrote:
Very strange. I just switched back to my home computer. I wanted to
get all the work I had done at work this last week, so I
In other words, don't use the same names for variables in your code
under test that you use for the placeholder variables in the `are`
binding and the test expressions.
I seem to remember this coming up before (fairly recently?) and it was
just considered a limitation of the `are` macro
That's probably a good opportunity for me to say we're also hiring for
a similar role at World Singles -
http://corfield.org/blog/post.cfm/hiring-hiring-hiring - so if you're
interested in Jeff's role, you might also be interested in ours and it
doubles your options :)
I won't be offended by
I highly recommend GOW - Gnu On Windows - as a lightweight alternative
to Cygwin:
https://github.com/bmatzelle/gow/wiki
It provides wget / curl which makes Leiningen happy - along with about
a hundred common *nix commands, without the overhead of Cygwin.
Sean
On Sat, Jan 26, 2013 at 7:56 PM,
On Sat, Jan 26, 2013 at 3:24 AM, sampson.jo...@googlemail.com wrote:
If that is so should the developers not be frank up front and say
that Clojure is not meant to be used on Windows?
Clojure works just fine on Windows. As I said, I've set up Clojure
development environments on a number of
I tested code very similar to yours and the only way I could get it to
fail like that was if first-question was nil.
Change (println (apply str first-question)) to (println
first-question first-question) to see what value it really has. I
think you'll see nil there...
Sean
On Fri, Jan 25, 2013
On Fri, Jan 25, 2013 at 2:27 PM, Jonathon McKitrick
jmckitr...@gmail.com wrote:
(defn get-by-ids-test
[ids]
(let [qs (string/join , (repeat (count ids) ?))
sql (str select * from survey where survey_id in ( qs ))]
(println SQL sql)
(println ids ids)
Having now setup an Emacs-bsaed dev environment on XP and multiple
Windows 8 machines, I no longer think it's as difficult as some people
make it out to be. Leiningen 2 has a reasonably well-maintained
Windows batch file so that problem is solved. The initial install is:
* lein.bat (a single
On Thu, Jan 24, 2013 at 11:05 AM, George Oliver
georgeolive...@gmail.com wrote:
Sean, have you been using lein trampoline successfully on Windows? The last
time I tried there was a persistent bug that hadn't been tracked down.
I have not needed lein trampoline - I gather the bug is to do with
On Wed, Jan 23, 2013 at 12:13 AM, Mikera mike.r.anderson...@gmail.com wrote:
It requires the compilation of the namespace when it is loaded the first
time, but that isn't particularly bad and is only a one-off cost. If you
require the plugin twice then the second time is effectively a no-op.
I
On Wed, Jan 23, 2013 at 9:42 AM, Scott Parker scott.p.par...@gmail.com wrote:
Static files on boot... dang. When I was first investigating our slow boot
time I swear I checked Enlive, but another quick glance at the source
indicates it's almost certainly a contributor. Expletive! I will start
On Sun, Jan 20, 2013 at 3:27 AM, Simon Brooke still...@googlemail.com wrote:
So I'm looking around at what is the right stack to use to build a CRUD web
application in Compojure.
I really like Enlive, with its very clear separation of logic and
presentation. Are there any other libraries I
On Fri, Jan 18, 2013 at 1:33 PM, Andy Fingerhut
andy.finger...@gmail.com wrote:
The issue that Clojure, its contrib libraries, and ClojureScript do not
accept github pull requests has been brought up several times before on this
email list in the past. Feel free to search the Google group
I see that specifically (and correctly) calls out two books written
about pre-1.3 Clojure but does not call out Practical Clojure for the
same issue. Wasn't that written for Clojure 1.1?
(and is there a 2nd Ed in the pipeline? Luke? Stuart?)
On Fri, Jan 18, 2013 at 3:36 PM, Alex Baranosky
That will depend on whether it traces the origin of each line in the
patch - just relying on the pull request originator is not sufficient
(unfortunately).
On Fri, Jan 18, 2013 at 4:11 PM, Hugo Duncan duncan.h...@gmail.com wrote:
Sean Corfield seancorfi...@gmail.com writes:
My understanding
patch with lines that belong to someone else. How
is that different ?
Pull requests are just a tool for working with patches nothing else
Regards
--
Irakli Gozalishvili
Web: http://www.jeditoolkit.com/
On Friday, 2013-01-18 at 16:18 , Sean Corfield wrote:
That will depend on whether
On Fri, Jan 18, 2013 at 8:55 PM, Tim Cross theophil...@gmail.com wrote:
I wouldn't worry too much about differences because a book was written for
clojure 1.2 or 1.3
Oh I would worry about that! I see so many people trying to learn
Clojure from outdated books (mostly Clojure in Action) and
On Thu, Jan 17, 2013 at 3:06 PM, AtKaaZ atk...@gmail.com wrote:
hey, just going to let people know about the following exception happening
when you have something like this(bad):
(ns runtime.util-test
(:use [midje.sweet :reload-all]))
as opposed to any of these(correct):
...
Exception in
In addition to Andy's points, it's also worth pointing out that
reaching a 1.0.0 release for a contrib library is a big deal and
requires Clojure/core approval. See:
http://dev.clojure.org/display/design/Contrib+1.0.0+Releases
On Tue, Jan 15, 2013 at 1:10 AM, Josh Kamau joshnet2...@gmail.com
On Wed, Jan 16, 2013 at 7:38 AM, Charlie Griefer
charlie.grie...@gmail.com wrote:
I'm starting off with 24, so not sure what was default in 23… but C-x C-f in
24 lets you fuzzy match to a particular directory, then type a file name.
And if you've typed a new filename and it still tries to match
On Wed, Jan 16, 2013 at 8:33 AM, Amirouche Boubekki
amirouche.boube...@gmail.com wrote:
- is there a decent project explorer. I really miss the tree on the
left, editor on the right layout
speedbar: «C-X speedbar»
M-x speedbar - but that looks very interesting, thank you! It's kinda
funky in
On Wed, Jan 16, 2013 at 10:38 AM, Phil Hagelberg p...@hagelb.org wrote:
Of course the best solution is simply not to work on large projects and
break your codebase up into manageable units where you can keep the
project structure in your head, but I understand this isn't always
within your
On Wed, Jan 16, 2013 at 11:57 AM, Omer Iqbal momeriqb...@gmail.com wrote:
Hey guys, I've been wrestling with this for a bit. I have
[seancorfield/lein-daemon 0.5.0-SNAPSHOT] in my :plugins, which seems to
be the latest lein-daemon. 0.4.2 doesn't seem to work with lein2.
Well, that's an interim
the speedbar in the same frame you are already
working in. I just stick sr-speedbar-toggle on F11 and call it a day. YMMV.
On Wednesday, January 16, 2013 1:45:35 PM UTC-5, Sean Corfield wrote:
On Wed, Jan 16, 2013 at 8:33 AM, Amirouche Boubekki
amirouche...@gmail.com wrote:
- is there a decent
On Wed, Jan 16, 2013 at 8:34 PM, Phil Hagelberg p...@hagelb.org wrote:
cl.el ships with emacs and is widely used.
OK, so I shouldn't worry about this warning when I install a package then?
Warning: cl package required at runtime
I've seen that a couple of times and assumed it meant cl was not
See http://dev.clojure.org/jira/browse/CLJ-1140
On Mon, Jan 14, 2013 at 3:57 PM, Leonardo Borges
leonardoborges...@gmail.com wrote:
Hi all,
A user reported a bug in my library and after tracking it down it turned our
to only happen on Clojure 1.5.0-RC1.
Here's the behaviour in 1.4.0:
(let
I think there's a philosophical bent in the Clojure community toward
small, composable libraries, rather than monolithic pre-built
combinations - across all domains. This has come up in discussions
before, mostly around the full-stack web framework issue, and the
consensus each time seems to be
that says To make a web app, you need
X, Y and Z, and here are libraries that fulfil each of these needs.
- Eric MacAdie
On Fri, Jan 11, 2013 at 12:25 PM, Sean Corfield seanco...@gmail.com
wrote:
I think there's a philosophical bent in the Clojure community toward
small, composable libraries
My first thought is: don't bother compiling the code, just run it
live from source (and maybe provide a way to easily reload the
templates (such as a URL parameter).
What I've done in my FW/1 framework (convention-based MVC, built on
Ring and Enlive) is to have a mode that auto-reloads templates
On Mon, Jan 7, 2013 at 11:50 PM, Eric MacAdie emaca...@gmail.com wrote:
Is there a common unit testing framework for Clojure? I did some googling,
put all the results were a couple of years old.
As others have noted separately, Clojure has clojure.test built-in
which is fairly straightforward
(seq x) will return a sequence if x is not empty, regardless of what
type x was, e.g., (seq [1 2 3]) = (1 2 3)
(not-empty x) will return the original collection if it is not empty,
e.g., (not-empty [1 2 3]) = [1 2 3]
If you need a sequence, you'll want to use seq; if you need the
original
On Mon, Jan 7, 2013 at 3:02 PM, David Jacobs da...@wit.io wrote:
1. Would it be harder to hire if we built our apps with Clojure? More
specifically: Hiring for people who know about or already love Clojure/FP is
certainly a nice filter for talent, but is it too stringent of a filter?
What
901 - 1000 of 1889 matches
Mail list logo