Re: [ANN] Boot 2.5

2015-12-18 Thread Sean Corfield
and helpful the community is (in the #boot channel on the Clojurians Slack), and how (relatively) easy it is to extend Boot to perform new tasks! Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "Perfection is the enemy of the good." -- Gustave Flaubert, Fren

[ANN] boot-expectations: run Expectations tests via Boot

2015-12-18 Thread Sean Corfield
pectations with Boot was a prerequisite and a first step! Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message because you are subscribed

Re: [ANN] boot-expectations: run Expectations tests via Boot

2015-12-18 Thread Sean Corfield
boot-expectations 1.0.0 is available! What? A Boot task to run Expectations tests. Where? https://github.com/seancorfield/boot-expectations Thanks to: Alan Dipert and Micha Niskin for their help and patience as I learned enough of Boot 2.5 to write this! What’s next? Task options to filter /

Re: [ANN] Clojure 1.8.0-RC3

2015-12-10 Thread Sean Corfield
I said: We’ve had it in QA since 12/2 but it hasn’t had much of a work out yet due to various staff vacations etc. This build is our first with direct linking enabled for our whole code base. I don’t know when we’ll get it into production. We’ve decided to do no new production builds until

Re: [ANN] Clojure 1.8.0-RC3

2015-12-07 Thread Sean Corfield
. That used the default setting regards direct linking (so, just clojure.core). Sean Corfield -- (904) 302-SEAN World Singles -- http://worldsingles.com/ From: <clojure@googlegroups.com> on behalf of Alex Miller <a...@puredanger.com> Reply-To: <clojure@googlegroups.com> Date: Monday

Re: Practical ways to deal with 'bag-of-properties' syndrome, AKA dynamic typing?

2015-11-30 Thread Sean Corfield
Gary Trakhman wrote on Monday, November 30, 2015 at 2:26 PM: I'd like to try haskell, but I'm not sure types in general would provide enough benefit to be worth it for small projects and well-written/tested large ones. There’s always https://github.com/Frege/frege-lein-plugin and

Re: San Francisco Meetup at Climate Corp still active?

2015-11-29 Thread Sean Corfield
On 11/29/15, 4:28 PM, "Ken Restivo" wrote: >I get notices about Zach's office hours event at Factual, but I'm not sure if >it's the same thing renamed, or what. The Factual Office Hours are a different thing — per the meetup info:

Re: Largest Clojure codebases?

2015-11-23 Thread Sean Corfield
ortable asserting that a) you do not need objects to make large-scale codebases legible and maintainable and b) an object-based codebase is likely to be larger than the equivalent functional codebase (and a smaller codebase is more legible and maintainable anyway). Sean Corfield -- (904)

Re: JDBC Rollbacks and Exceptions

2015-11-13 Thread Sean Corfield
Andy Chambers wrote on Thursday, November 12, 2015 at 10:49 PM: I threw up an example repo demonstrating the type of test I'd like to be able to write somehow. Maybe I'm just trying to test something that should be tested in other ways. https://github.com/cddr/jdbc-demo As Andrey indicates,

Re: [ANN] Clojure 1.8.0-RC1 is now available

2015-11-12 Thread Sean Corfield
Nicola Mometto wrote on Thursday, November 12, 2015 at 11:52 AM: *mostly* works, and since 1.8 only. The issue pre 1.8 is that since metadata on arglist is not evaluated, the type hint wasn't a fully qualified classname, forcing the user namespaces to import that Class. Scenarios like this

Re: clojure.java.jdbc prepared select statement

2015-11-09 Thread Sean Corfield
In no way did I want to criticize your awesome library None taken! I'll see if I can expand on the documentation. Thank you! I’m not great at documentation, never have been (one of my first jobs, they hired a technical writer to turn my attempt at documentation into something usable…), so I’m

Re: clojure.java.jdbc prepared select statement

2015-11-09 Thread Sean Corfield
Niels van Klaveren wrote on Monday, November 9, 2015 at 7:20 AM: OK, so after some more experimentation I found out I needed to do the get-connection in the prepare-statement instead of the with-db-connection binding. A bit counter-intuitive, and I hope it will still work when a connection pool

Re: [ANN][Book] Clojure for the Brave and True published, web site updated

2015-11-03 Thread Sean Corfield
So, when using commute the update function is ALWAYS run TWICE! Holey Bovine, Batman! The docs for commute say: clojure.core/commute ([ref fun & args]) Must be called in a transaction. Sets the in-transaction-value of ref to: (apply fun in-transaction-value-of-ref args) and

Re: Right behavior of core/bean

2015-11-02 Thread Sean Corfield
user> (bean "test") {:bytes #object["[B" 0x546fe214 "[B@546fe214"], :class java.lang.String, :empty false} user> (into [] (bean "test")) [[:bytes #object[clojure.core$bean$fn__5742$fn__5743 0x4cdc53ad "clojure.core$bean$fn__5742$fn__5743@4cdc53ad"]] [:class

Re: is there a community "best practice" for including your co-workers libraries?

2015-11-02 Thread Sean Corfield
Dave Tenny wrote on Monday, November 2, 2015 at 3:59 PM: I'm slightly confused, is there some reason Clojars doesn't work for sharing libraries in this context? Because it’s public and sharing your companies libraries with the world might be frowned upon…? Sean -- You received this message

Re: JDBC Rollbacks and Exceptions

2015-10-30 Thread Sean Corfield
Could you provide a bit more context? We’re using clojure.java.jdbc very heavily in production and we don’t see any problems with exceptions. Sean Andy Chambers wrote on Friday, October 30, 2015 at 3:52 PM: Has anyone found a way to "reset" a connection after a rollback? It seems like after

Re: is there a community "best practice" for including your co-workers libraries?

2015-10-16 Thread Sean Corfield
We use Apache Archiva to run a Maven-like repo on an internal server for this sort of scenario (then you specify that repo endpoint in project.clj for Leiningen to see). Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, y

Re: How to do functional programming

2015-10-09 Thread Sean Corfield
On 10/9/15, 2:13 AM, "Colin Yates" wrote: >Coming from many years of ‘Java Enterprise Applications’ (e.g. Spring, >Hibernate and if you were feeling adventurous maybe free marker instead of JSP >- h.) this was a wonderful

Re: How to do functional programming

2015-10-08 Thread Sean Corfield
starts out with Standard ML to teach you about statically typed FP, then it moves on to Racket to teach you about dynamically typed FP, then it wraps up with Ruby to look at how dynamically typed OOP contrasts with the two FP approaches. Sean > >> On 8 Oct 2015, at 21:00, Sean

Re: How to do functional programming

2015-10-08 Thread Sean Corfield
On 10/8/15, 12:45 PM, "Raoul Duke" wrote: >i did this one a while back as a refresher on my university stuff :-) >https://www.coursera.org/course/progfun I’ll second this as a great recommendation. I first took the course several years

Re: Clojure Dev Environment

2015-10-05 Thread Sean Corfield
Miguel Ping wrote on Monday, October 5, 2015 at 3:00 AM: - do you code functions in the repl and copy them to respective files? I use Emacs/CIDER and code functions in a file, then use C-M-x to evaluate each one into the running REPL. I usually keep the REPL in the user namespace and require in

Re: cond->: Using of threading expression in tests?

2015-10-04 Thread Sean Corfield
So am I! Sean, can you share code for condp->> too, please. Oh, sorry, I thought it was obvious from condp-> since the only difference is that it uses ->> instead of -> in one place: (defmacro condp->> "Takes an expression and a set of predicate/form pairs. Threads expr (via ->>) through

Re: cond->: Using of threading expression in tests?

2015-10-02 Thread Sean Corfield
pstep (partition 2 clauses)))] ~g))) So (condp-> {:x 1} #(= (:x %) 1) (assoc :x 2)) produces {:x 2} as desired. We have a condp->> version as well. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not real

Re: can I use varargs in a multimethod?

2015-09-30 Thread Sean Corfield
intent this-users-conversation "Opportunity" "Name") "I got nil plus ({} \"Opportunity\" \"Name\")" user> (intent {:intent "do-something"} "Opportunity" "Name") "WAT? ({:intent \"do-something\"} \&qu

[ANN] clojure.java.jdbc 0.4.2 released

2015-09-16 Thread Sean Corfield
and clarify docstrings to improve debugging driver-specific restrictions on SQL. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message b

Re: Why (memoize (fn [_#] (gensym "node")) in rhizome?

2015-09-11 Thread Sean Corfield
(memoize (fn [_#] (gensym "node")) How is that different than (gensym "node") The latter returns a string, e.g., "node18051", the former returns a function that, when called, returns a string. Wrapping it in memoize just ensures that if you call it multiple times with the same argument, you

[ANN] clojure.tools.cli 0.3.3

2015-08-24 Thread Sean Corfield
-L136 Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send

Re: [ANN] Clojure 1.8.0-alpha3

2015-08-24 Thread Sean Corfield
Just to keep everyone informed, we’ve now had enough time back on Clojure 1.7.0 to rule out 1.8.0 as the source of our very slow memory leak. Now we have the fun task of figuring out exactly what has introduced it :) Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org

Re: Unable to write GPL software with clojure?

2015-08-20 Thread Sean Corfield
of any/all Clojure libraries used? [I believe it’s reasonable to say this — I just wanted to check this was your intent] Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880

Re: Unable to write GPL software with clojure?

2015-08-18 Thread Sean Corfield
many companies will not use GPL software: it taints everything it touches and requires the whole thing to be GPL. Proponents of GPL will argue a different position (so, be careful, this is almost a religious issue on both sides). Sean Corfield -- (904) 302-SEAN An Architect's View -- http

Re: Unable to write GPL software with clojure?

2015-08-18 Thread Sean Corfield
spread into more companies. (caveat: IANAL but I’ve been through OSS license audits at companies that are large enough to care deeply about this sort of stuff — unfortunately) Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're

Re: [ANN] Clojure 1.8.0-alpha3

2015-08-17 Thread Sean Corfield
can isolate the leak as coming from our code vs your code), we’ll put one server back on 1.8.0 Alpha 4 and see if we can identify what is actually leaking. Sean Corfield -- (904) 302-SEAN World Singles -- http://worldsingles.com/ -- You received this message because you are subscribed

Re: [ANN] Clojure 1.8.0-alpha3

2015-08-12 Thread Sean Corfield
next production build was based on alpha4 and we have not seen that same memory curve (in a slightly longer period). I looked over the alpha3 / alpha4 change logs and didn’t see anything specific about memory leaks (that would be new in alpha2 compared to 1.7.0 final). Sean Corfield -- (904) 302

Re: 0.1.0 core.async release?

2015-08-08 Thread Sean Corfield
easier to work with than Maven (since I don’t run Eclipse or IntelliJ). Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood From: clojure@googlegroups.com on behalf of Laurent PETIT Reply

Re: 0.1.0 core.async release?

2015-08-08 Thread Sean Corfield
- test-all: isn't there an existing support for launching tests in clojure-maven-plugin-maven-plugins ? Naive question: in your current workflow, you relaunch the Lein executable each time via an emacs command? Or is it via an nrepl client session connected to the same repl that emacs uses for

Re: 0.1.0 core.async release?

2015-08-08 Thread Sean Corfield
/java.jdbc/blob/master/project.clj#L1-L3 And: https://github.com/clojure/java.jdbc/blob/master/project.clj#L15-L19 Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood -- You received this message

Re: 0.1.0 core.async release?

2015-08-07 Thread Sean Corfield
in sync). Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood From: clojure@googlegroups.com on behalf of Daniel Compton Reply-To: clojure@googlegroups.com Date: Friday, August 7, 2015 at 3

clj-soap (was: Beginner question

2015-07-30 Thread Sean Corfield
On Jul 29, 2015, at 7:47 PM, Mike m...@thefrederickhome.name wrote: I have done some searching, and there is an old clj-soap library which Sean Corfield has mostly abandoned. Just to clarify: I too had started down the path of trying to find a way to do SOAP via Clojure and came across

Re: [ANN] Clojure 1.8.0-alpha3

2015-07-29 Thread Sean Corfield
Somewhat related, I had this code which worked on Alpha 2: (defn ^java.nio.ByteBuffer to-byte-array [^com.eaio.uuid.UUID u] (let [lo (.getClockSeqAndNode u) hi (.getTime u)] (- (java.nio.ByteBuffer/allocate 16) (.putLong hi) (.putLong lo) (.array (can anyone

[ANN] clojure.tools.cli 0.3.2 (was: Next release for clojure.tools.cli? Is it dead?

2015-07-28 Thread Sean Corfield
option; A warning is displayed when unknown options are encountered. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) On Jul 23, 2015, at 9:33 PM, Keith Irwin ke

[ANN] clojure.java.jdbc 0.4.1

2015-07-27 Thread Sean Corfield
. (if anyone wonders why 0.4.0 and 0.4.1 are the same release, it was finger trouble while trying to run the Maven Release Build on the Clojure build server… sorry!) Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert

Re: Java 8 Lambda Interop

2015-07-27 Thread Sean Corfield
I think Mike was suggesting something like this: (- (IntStream/range 0 100) (.filter ^Predicate odd?) (.limit 5) (.collect Collectors/toList)) and having the Clojure compiler figure out that you’re trying to cast an IFn to a functional interface and therefore do the magic for you. I don’t know

Potemkin loading issue solved (was: Clojure 1.8.0-alpha2

2015-07-20 Thread Sean Corfield
projects!). That dated back to when we still had to add JARs to the lib folder due to the way our old Clojure loader used to work — now we load everything dynamically based on `lein classpath`. So, sorry for the noise :( Sean On Sunday, July 19, 2015 at 5:02:13 PM UTC-7, Sean Corfield wrote

Re: [ANN] Clojure 1.8.0-alpha2

2015-07-20 Thread Sean Corfield
it into production soon. Sean On Jul 19, 2015, at 4:47 PM, Sean Corfield s...@corfield.org wrote: On Jul 18, 2015, at 10:33 PM, Sean Corfield s...@corfield.org wrote: Wow, that's a fast timeline. Thank you. We'll upgrade to Alpha 2 this week. We may go to production with it fairly quickly

Re: [ANN] Clojure 1.8.0-alpha2

2015-07-19 Thread Sean Corfield
Sean Corfield s...@corfield.org mailto:s...@corfield.org wrote: On Jul 18, 2015, at 10:33 PM, Sean Corfield s...@corfield.org mailto:s...@corfield.org wrote: Wow, that's a fast timeline. Thank you. We'll upgrade to Alpha 2 this week. We may go to production with it fairly quickly

Re: [ANN] Clojure 1.8.0-alpha2

2015-07-19 Thread Sean Corfield
On Jul 18, 2015, at 10:33 PM, Sean Corfield s...@corfield.org wrote: Wow, that's a fast timeline. Thank you. We'll upgrade to Alpha 2 this week. We may go to production with it fairly quickly. Switched out 1.7.0 for 1.8.0-alpha2 and got the exception below. Posting here in case anyone knows

Re: [ANN] Clojure 1.8.0-alpha2

2015-07-18 Thread Sean Corfield
Wow, that's a fast timeline. Thank you. We'll upgrade to Alpha 2 this week. We may go to production with it fairly quickly. Sean On Sat, Jul 18, 2015 at 6:11 AM, Alex Miller a...@puredanger.com wrote: Clojure 1.8.0-alpha1 and 1.8.0-alpha2 are now available. Try it via - Download:

Re: Advice on introducing a Java dev to Clojure

2015-07-09 Thread Sean Corfield
to earlier) Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group

Re: Advice on introducing a Java dev to Clojure

2015-07-09 Thread Sean Corfield
provide an on-ramp. https://pragprog.com/book/mbfpp/functional-programming-patterns-in-scala-and-clojure — Highly recommended! Sean Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist

Re: Joda Time version conflict? Initializing JollyDayHoliday for SUTime

2015-07-06 Thread Sean Corfield
that Joda is, in fact, the problem? That’s what lein deps :tree is for — to tell you about conflicts and how to eliminate them. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880

Re: Joda Time version conflict? Initializing JollyDayHoliday for SUTime

2015-06-29 Thread Sean Corfield
Have you actually tried any of the exclusions that Leiningen suggests? For example: [clj-time 0.6.0] overrides [ring 1.4.0-RC1] - [ring/ring-jetty-adapter 1.4.0-RC1] - [ring/ring-core 1.4.0-RC1] - [clj-time 0.9.0] and [ring 1.4.0-RC1] - [ring/ring-devel 1.4.0-RC1] - [ring/ring-core

Re: Basic question: what's the difference between require as and use as?

2015-06-22 Thread Sean Corfield
]) is equivalent to (:require [clojure.java.io :as io :refer :all]) so it refers in all of the symbols from that namespace directly into your namespace (i.e., they can be referenced even without the io/ prefix). Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org

Re: Basic question: what's the difference between require as and use as?

2015-06-22 Thread Sean Corfield
. There’s not much point in specifying an alias (with :as) for :use or :require :refer :all since those bring in every symbol directly anyway. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist

Re: Basic question: what's the difference between require as and use as?

2015-06-22 Thread Sean Corfield
On Jun 22, 2015, at 2:22 PM, Ritchie Cai ritchie...@gmail.com wrote: You mean (:use [clojure.java.io]) is equivalent to (:require [clojure.java.io :as io :refer :all])? Not quite, (:use [clojure.java.io]) is equivalent to (:require [clojure.java.io :refer :all]) Sean Corfield -- (904) 302

Re: Using core.match in tests?

2015-06-21 Thread Sean Corfield
How about this: (defmacro matches [value pattern] `(is (match ~value ~pattern true :else false) (str (match ~value '~pattern (let [a {:x 2}] (matches a {:y _})) ; = FAIL ; = (match {:x 2} {:y _}) ; = expected: (clojure.core.match/match a {:y

Re: breaking homoiconicity?

2015-06-20 Thread Sean Corfield
On Jun 20, 2015, at 3:58 AM, Joe Corneli holtzerman...@gmail.com wrote: On Saturday, June 20, 2015 at 4:15:30 AM UTC+1, Sean Corfield wrote: (.getTypeName (Class/forName [Ljava.lang.String;)) ;;= java.lang.String[] — that is more readable! Thanks, that's helpful for me

Re: breaking homoiconicity?

2015-06-19 Thread Sean Corfield
of the class, as above. and you can see what it really is like this: (.getTypeName (Class/forName [Ljava.lang.String;)) ;;= java.lang.String[] — that is more readable! Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good

Re: Where should 'if-let-all' macro go?

2015-06-09 Thread Sean Corfield
` expressions have access to the (truthy) values of `a`? There are arguments in favor of (and against) each position and thus no clear consensus on what to choose. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert

Re: Help with data structure transformation

2015-06-05 Thread Sean Corfield
it in the textbooks but maybe I wasn't paying attention :) gvim On 06/06/2015 04:08, Sean Corfield wrote: It’s because if you treat a hash map as a sequence — as `for` does — you get a sequence of pairs (key/value — map entries): (seq {:a 1 :b 2}) ;;= ([:a 1] [:b 2]) Does

Re: Help with data structure transformation

2015-06-05 Thread Sean Corfield
It’s because if you treat a hash map as a sequence — as `for` does — you get a sequence of pairs (key/value — map entries): (seq {:a 1 :b 2}) ;;= ([:a 1] [:b 2]) Does that help? Sean On Jun 5, 2015, at 7:41 PM, gvim gvi...@gmail.com wrote: I must re-read Clojure

Re: namespace :as vs :require

2015-06-05 Thread Sean Corfield
I think you mean :as vs :refer? The consensus is that using :as makes it easier to see where each symbol comes from when you're reading the code -- and avoids name conflicts between functions in different namespaces. If you use :refer, you lose that visibility. However, there are some symbols

Re: [ANN] Clojure 1.7.0-RC1 now available

2015-06-04 Thread Sean Corfield
On Jun 4, 2015, at 2:51 PM, Luc Prefontaine lprefonta...@softaddicts.ca wrote: Still 3 months away from production beta. I get twitchy if we go more than two weeks between production builds — but then it’s the web :) Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org

Re: [ANN] Clojure 1.7.0-RC1 now available

2015-06-04 Thread Sean Corfield
We took RC1 to production yesterday afternoon (after being on beta1 since mid-April). So far so good. I think the only 1.7 new feature we’re using so far is transducers (we wrote a transducer that takes a result set of user-to-user messages and returns a paginated, nested result set organized

Re: (slurp nil)

2015-06-02 Thread Sean Corfield
string operations on it, many of which fail when given nil. I would expect passing nil to slurp to be an exceptional situation that you’d either want to explicitly check for beyond hand or handle via try/catch after the fact. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org

Re: Clojure.data.xml fails when element size reached 33 symbols.

2015-06-01 Thread Sean Corfield
or connection closed errors if you let a lazy sequence escape the open/close logic in your code, since it gets closed after just the first chunk. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist

Re: Relational mapping - turning an sql query result into array of hashes (with joins)

2015-05-25 Thread Sean Corfield
I just don’t consider it a problem. A query returns a flat result set — a sequence of hash-maps. That’s it. That’s what SQL returns (essentially a table) and it’s a perfectly reasonable data structure for Clojure to work with. The JOINs in SQL just say how to link tables together to produce

Re: Relational mapping - turning an sql query result into array of hashes (with joins)

2015-05-25 Thread Sean Corfield
application In order to correctly unjoin your result set for your application, you need to apply structural grouping based on knowledge of the application domain (parent / child keys in desired result set) — which doesn't necessarily map 1:1 onto the SQL used to create the result set. Sean Corfield

Re: separation of concerns w/o encapsulation

2015-05-14 Thread Sean Corfield
— and leave them all public. That creates a much more reusable, extensible code base. IMO (now — I didn’t think that way five years ago). Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821

Re: separation of concerns w/o encapsulation

2015-05-14 Thread Sean Corfield
implementations. A def of immutable data tends to be public too. It’s rare that I feel the need to make things private since immutability means no one can abuse my data or my functions. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy

Re: separation of concerns w/o encapsulation

2015-05-14 Thread Sean Corfield
and building software for internal use by your own team or other peer teams in your division. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message

Re: load a namespace at repl?

2015-05-12 Thread Sean Corfield
On Tue, May 12, 2015 at 7:55 PM, piastkra...@gmail.com wrote: If I: git clone https://github.com/overtone/overtone.git cd overtone lein repl and then at the REPL, I try to load Overtone: ... user= (resolve 'overtone.studio.inst) You want require, not resolve, in order to load the

Re: ANN: ClojureScript 0.0-3255 - pretty printer latest Closure Compiler / Library

2015-05-09 Thread Sean Corfield
Sounds like you need to a lein clean? That's normally the error you see if you have old versions of compiled files laying around... On Sat, May 9, 2015 at 9:22 PM, Rangel Spasov raspa...@gmail.com wrote: Hey guys, 0.0-3264 fails for me with: clojure.lang.ExceptionInfo: failed compiling

Re: clojure.java.jdbc bug?

2015-05-08 Thread Sean Corfield
BTW, your tone comes across as rather snarky which isn’t going to make people want to assist you. If you have concrete, constructive suggestions to make, and you care enough to create a JIRA account and create a ticket for broader discussion, you’re likely to find your comments taken more

Re: JDK8

2015-05-07 Thread Sean Corfield
(unless a new version appears in the next day or two). We need to schedule an upgrade to 1.8.0_45 for the JDK I guess. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880

Re: clojure.java.jdbc bug?

2015-05-07 Thread Sean Corfield
://groups.google.com/forum/#!forum/clojure-java-jdbc (which I just realized isn’t linked from either the community docs or from Github… I’ll get that fixed this weekend!) Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French

Re: clojure.java.jdbc bug?

2015-05-07 Thread Sean Corfield
Different database drivers handle different data types in different ways. You’ve extended the protocol to convert Clojure’s BigInt to a string which may work for you, but won’t necessarily work for everyone. That’s why the protocols are provided. See the documentation about them, here:

Re: Dynamic/Convention-based routing libraries? (was: Clojure needs a web framework with more momentum

2015-05-06 Thread Sean Corfield
Thanks Avi! I’ll bookmark that and see whether I can either borrow from it or contribute to it in the context of FW/1 :) Sean On May 6, 2015, at 3:46 AM, Avi Avicenna maverick.avice...@gmail.com wrote: There is one, Wakeful (https://github.com/ninjudd/wakeful) routing library fits your

Re: Dynamic/Convention-based routing libraries? (was: Clojure needs a web framework with more momentum

2015-05-06 Thread Sean Corfield
this. java.jdbc suffers from this and it’s really easy to use too — I just haven’t figured out how to explain it properly :( Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You

Re: Clojure needs a web framework with more momentum

2015-05-06 Thread Sean Corfield
-doc.org http://clojure-doc.org/ to make that the central, appealing, beginner-friendly site for all things Clojure. Sean Corfield wrote: The rough edges show up on a lot of things in the Clojure ecosystem. I know I suck at documentation which is why I moved clojure.java.jdbc’s documentation out

Re: Clojure needs a web framework with more momentum

2015-05-06 Thread Sean Corfield
and beginners will either figure it out or they won’t — that and the fact that the majority of us in the Clojure community seem to suck at documentation (with a few shining exceptions!). Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good

Re: Dynamic/Convention-based routing libraries? (was: Clojure needs a web framework with more momentum

2015-05-06 Thread Sean Corfield
On May 6, 2015, at 9:42 AM, Sean Corfield s...@corfield.org wrote: And that’s why I thought that Pedestal looked very complex and hard to use. Even the Hello World example is couched in terms that make it look overly complex. I Googled to see if there was a better page explaining Pedestal

Re: Dynamic/Convention-based routing libraries? (was: Clojure needs a web framework with more momentum

2015-05-05 Thread Sean Corfield
://localhost:8321/ Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You received this message because you are subscribed to the Google Groups Clojure group. To post

Re: Dynamic/Convention-based routing libraries? (was: Clojure needs a web framework with more momentum

2015-05-05 Thread Sean Corfield
Perhaps I should rephrase that as a request for simple, convention-based routing that works with Ring directly? :) I’m sure Pedestal’s great, but just looking at the repo and documentation doesn’t exactly scream simple… I just don’t want to have to read that much documentation to get a simple

Dynamic/Convention-based routing libraries? (was: Clojure needs a web framework with more momentum

2015-05-05 Thread Sean Corfield
in. You can generally provide overrides for some explicit routes as well if you want them handled differently. Are there any such libraries for Clojure? Are they well-maintained? Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good

Re: Clojure needs a web framework with more momentum

2015-05-04 Thread Sean Corfield
Not sure what you mean by one flash value — I’d expect you to have a map of flash scope data and that’s the way my FW/1 behaves: you assoc values into the flash scope and they’re restored on the next request. On May 4, 2015, at 8:39 AM, Josh Kamau joshnet2...@gmail.com wrote: I am currently

Re: Clojure needs a web framework with more momentum

2015-05-04 Thread Sean Corfield
the session ID would be a cookie). Only if your session-store is cookie will everything be stored as a cookie. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821-1880) -- You

Re: Clojure needs a web framework with more momentum

2015-05-04 Thread Sean Corfield
On May 4, 2015, at 11:08 AM, Josh Kamau joshnet2...@gmail.com wrote: @Sean, i wanted totally stateless backend. Without a database? :) Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist

Re: Clojure needs a web framework with more momentum

2015-05-04 Thread Sean Corfield
, not because it is necessarily better, but because TypeSafe are pouring marketing dollars into it, as part of their drive to encourage Enterprise uptake of Scala. They have a vested interest in Play being very successful as it will drive more business for them. Sean Corfield -- (904) 302-SEAN

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Sean Corfield
On Sat, May 2, 2015 at 10:20 PM, Mark Engelberg mark.engelb...@gmail.com wrote: Because many problems start out as things that can be solved with standard solutions and then evolve into something more elaborate. Best to start with something that can both do the easy things, and handle the

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Sean Corfield
On Sat, May 2, 2015 at 1:43 PM, gvim gvi...@gmail.com wrote: One could conclude from this that the Clojure community isn't that interested in web development but the last Clojure survey suggests otherwise. Yes, lots of web apps get built with Clojure. Furthermore, I have a hunch that

Re: Clojure needs a web framework with more momentum

2015-05-02 Thread Sean Corfield
On Sat, May 2, 2015 at 8:18 PM, Mark Engelberg mark.engelb...@gmail.com wrote: Clojure is great for creating new, disruptive web models, but what's the easiest path to creating something that can be done trivially with, say, Drupal or Django? The question tho' is why you'd want to use

Re: flip in clojure

2015-04-30 Thread Sean Corfield
I wonder how many code bases out there have their own variant of `flip`? Here’s ours: (defn flip Like partial except you supply everything but the first argument. ([f b] (fn [a] (f a b))) ([f b c] (fn [a] (f a b c))) ([f b c d more] (fn [a] (apply f a b c d more Sean On Apr

Re: [ANN] Clojure 1.7.0-beta1 released

2015-04-16 Thread Sean Corfield
We deployed beta1 to production this morning. I’ll report back if we encounter any problems (generally we’ve found Clojure pre-release builds to be very stable). We were previously running alpha5 in production. Sean On Apr 10, 2015, at 12:25 PM, Alex Miller a...@puredanger.com wrote: Clojure

Re: sp mm training in hyderabada

2015-04-13 Thread Sean Corfield
On Mon, Apr 13, 2015 at 9:32 AM, Fluid Dynamics a2093...@trbvm.com wrote: On Monday, April 13, 2015 at 9:27:33 AM UTC-4, sunitha seo wrote: Sap Bw Bi Bo Training Centre in Hyderabad | Vijayawada |Guntur | Vizag, Online Sap Bw Bi Bo Training In USA, sp mm training in hyderabada

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-04-01 Thread Sean Corfield
On Apr 1, 2015, at 10:09 AM, Alex Miller a...@puredanger.com wrote: There is no way to turn on read conditionals by default at the REPL - it is only on by default when loading a .cljc file. This sounds like a useful feature to add to the REPL tho’ so that you can copy’n’paste code as-is and

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-03-31 Thread Sean Corfield
later today or tomorrow in preparation for our next production build (we’re running alpha5 in production right now). Sean On Mar 31, 2015, at 3:21 PM, Sean Corfield s...@corfield.org wrote: Looks like a great set of updates! Unfortunately, as several of us found out today, the change

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-03-31 Thread Sean Corfield
Looks like a great set of updates! Unfortunately, as several of us found out today, the change to the StringReader invoke() signature breaks Instaparse so I’m blocked from testing the World Singles code base with alpha6 (or master) at the moment. Is that just a hazard of relying on the

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-03-31 Thread Sean Corfield
that implements Clojure and it struck me as odd that these pieces were clearly designed to be called from Clojure yet otherwise seemed to be internal so I'd definitely be curious as to the thinking there. Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ dev.Objective

Re: [ANN] Clojure 1.7.0-alpha6 released

2015-03-31 Thread Sean Corfield
On Mar 31, 2015, at 4:00 PM, Mark Engelberg mark.engelb...@gmail.com wrote: I can push a new version of instaparse incorporating Michael Blume's pull request by the end of the day. That would be great, Mark! Thank you! Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org

Re: Deterministic macro expansion for Clojure?

2015-03-23 Thread Sean Corfield
it is test the macro system itself, not your own code. Surely in a unit test you’d want to test the _behavior_ of the code instead? Sean Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ Perfection is the enemy of the good. -- Gustave Flaubert, French realist novelist (1821

<    1   2   3   4   5   6   7   8   9   10   >