Re: Spy - Clojure / ClojureScript library for stubs, spies and mocks

2018-05-03 Thread Matthew Boston
There is also https://github.com/circleci/bond which we use quite extensively at CircleCI. And I have used it on other projects outside of CircleCI. On Monday, April 30, 2018 at 7:48:31 AM UTC-6, Didier wrote: > > This looks cool for validation. -- You received this message because you are

Re: [ANN] graphql-clj 0.2.0

2017-04-30 Thread Matthew Boston
The first, and biggest difference that I see, is that a schema is defined as a single string in graphql-clj, but Lacinia uses data structures to describe your graphql schema. The latter being more easily composable, if that's something you need. On Monday, April 24, 2017 at 8:29:24 PM UTC-6,

Re: ANN: Cognitect acquired by Microsoft

2017-04-03 Thread Matthew Boston
Not believable at all. Everyone knows Cognitect will be acquired by Oracle  On Saturday, April 1, 2017 at 2:00:16 PM UTC-6, Gregg Reynolds wrote: > > made ya look! > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: Raynes' legacy

2017-02-26 Thread Matthew Boston
I'm happy to hear that others are willing to step up to the plate in regards to continuing Anthony's legacy. I started a thread specifically about tentacles a month ago here: https://groups.google.com/forum/#!searchin/clojure/tentacles%7Csort:relevance/clojure/15x_LWE2IMM/CGULJTXLBQAJ We, at

Re: Tentacles; Going Forward

2017-02-15 Thread Matthew Boston
Alan, I haven't thought much about the new GraphQL endpiont. But I imagine, once GitHub releases it, it's currently only early-access, we can think about how to add it to tentacles. Maybe I'll open a WIP PR on a branch and start trying some things out. Cheers, On Tuesday, February 14, 2017

Tentacles; Going Forward

2017-01-26 Thread Matthew Boston
of software. So, I want to open a discussion to the community, as to how we, the community, should proceed. Cheers, Matthew Boston #RIPRaynes -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroup

Re: Use latest stable

2016-07-15 Thread Matthew Boston
On the topic of keeping dependencies up-to-date, I use https://www.versioneye.com. I sign in with GitHub and it watches all the projects that I choose for out-of-date deps. It sends me a weekly/daily email so I'm rarely behind every new release. Cheers. On Thursday, July 14, 2016 at 11:58:41

Re: Project structure when using reader conditionals

2016-01-01 Thread Matthew Boston
I've done it multiple ways: src/app/foo.clj src-cljs/app/bar.cljs src-cljc/app/baz.cljc AND src/clj/app/foo.clj src/cljs/app/bar.cljs src/cljc/app/baz.cljc I prefer the latter, probably for ease of navigation in the command line and in emacs. But I totally agree that having them all together

Re: Library suggestions requested for clojure-toolbox.com

2015-10-07 Thread Matthew Boston
Here are a few that I and others on my team have created. clojurescript.csv - https://github.com/testdouble/clojurescript.csv - csv parsers, clojurescript baizen - https://github.com/testdouble/baizen - parsing ring-okta - https://github.com/Hendrick/ring-okta - request middleware avenue -

Re: The middleware pattern

2015-10-02 Thread Matthew Boston
comp isn't backwards, it's just "outside-in". ((comp not zero?) x) == (not (zero x)) So it reads in the same order from left-to-right as it would otherwise. On Friday, October 2, 2015 at 1:10:54 PM UTC-6, Jason Felice wrote: > > Why is it so hard to describe to new people? > > I mean, the

Re: Suggestions on staying up to date with Clojure

2015-09-29 Thread Matthew Boston
This is something I'd like to accomplish with https://www.clojurelive.com. Still working on it but I've got an initial version out there. Right now it is quite simple, post a link or text (like reddit). I'd like it to be an open-source community-driven platform of links and Q/A. Which in turn

Re: namespace :as vs :require

2015-06-08 Thread Matthew Boston
Here's a great post on the subject by Stuart Sierra: http://stuartsierra.com/2015/05/10/clojure-namespace-aliases - Matthew On Friday, June 5, 2015 at 9:33:32 PM UTC-6, Todd Stout wrote: What is considered idiomatic when using :as and :require in your namespace declarations? I understand

Re: ANN: ClojureScript 0.0-2496, cljs.test - a clojure.test port

2015-05-08 Thread Matthew Boston
Here's the commit I used when swapping cljs.test from clojurescript.test: https://github.com/testdouble/clojurescript.csv/commit/ad68052e311df423e245ec4d2a7ee5572b2a3a35 Note the runner.js file line 26 is calling the exported function to run all the tests. On Friday, May 8, 2015 at 12:49:07 AM

Re: Better/more idiomatic way to read EDNs than using java.io.PushbackReader

2015-03-08 Thread Matthew Boston
I've done something like: (clojure.edn/read-string (slurp (clojure.java.io/resource edn-file))) This of course assumes the file resides in `app-root/resources`. On Friday, March 6, 2015 at 8:18:03 PM UTC-7, Sam Raker wrote: I'm experimenting a little with EDN files. I've currently got this

Re: [lein] compile sass?

2014-12-26 Thread Matthew Boston
There is also Dieter: https://github.com/edgecase/dieter On Tuesday, December 23, 2014 3:41:46 PM UTC-7, stephanos wrote: Hey there, I would love to use the SASS library bourbon.io for my project. Is there any way I can use leiningen to compile the scss files to css? PS: I tried

Re: after a few days, my app dies -- how should I diagnose?

2012-10-24 Thread Matthew Boston
For our long-running clojure server app, I found that adding `:jvm-opts [-server]` to the project.clj increased performance a bit. It's too much info for this post, but hers'a good description from SO:

Re: How to get unit test failure details

2012-08-26 Thread Matthew Boston
Here's my output using the repl from leiningen 2 (nREPL) user= (use 'clojure.test) nil user= (is (= a b)) FAIL in clojure.lang.PersistentList$EmptyList@1 (NO_SOURCE_FILE:1) expected: (= a b) actual: (not (= a b)) false user= It tells me both the expected and actual. What else are you

Re: Unable to replace static Java method with Clojure function

2012-05-16 Thread Matthew Boston
Meikel, Thanks for your reply. I should have been more clear. This is an existing Java app using maven. How would I add to my pom to AOT-compile the Clojure pieces? I'm using the clojure-maven-plugin, from `com.theoryinpractise.clojure-maven-plugin`. I'll try Stuart's

Re: Unable to replace static Java method with Clojure function

2012-05-16 Thread Matthew Boston
Right, I totally understand I need AOT compilation for calling Clojure from Java. I'm asking how to set that up in maven. Thanks for your help. On Wednesday, May 16, 2012 9:58:18 AM UTC-4, Meikel Brandmeyer (kotarak) wrote: Hi, you have to use AOT compilation to generate the class with

Re: Unable to replace static Java method with Clojure function

2012-05-16 Thread Matthew Boston
goals goalcompile/goal /goals /execution /executions /plugin ... On Wednesday, May 16, 2012 7:04:54 AM UTC-7, Matthew Boston wrote: Right, I totally understand I need AOT compilation for calling Clojure from Java. I'm asking how to set

Re: Unable to replace static Java method with Clojure function

2012-05-16 Thread Matthew Boston
get any gen'ed classes. On Wednesday, May 16, 2012 8:33:21 AM UTC-7, Matthew Boston wrote: Armando, Thanks for your help. I was using `com. theoryinpractise.clojure-maven-plugin` at first but recently switched because I figured the other would help (seeing that it was built by Stuart

Unable to replace static Java method with Clojure function

2012-05-15 Thread Matthew Boston
I currently have a static method in Java. I have rewritten it in Clojure. I wish to allow the rest of the Java app to call the new function with minimal change. Still getting NumberValidator cannot be resolved even after reading the following SO post and it's not helping for my particular

New Clojure User Group for Columbus, OH

2012-03-22 Thread Matthew Boston
We're back on the radar! After nearly a year of going dormant, the Columbus Clojure User Group (formerly Inclojure) is back up and running. The past several months we've have a consistent number of members showing up. We have a new website www.columbusclojure.com and twitter

Re: Destructuring syntax

2012-01-04 Thread Matthew Boston
I'm with Alex. I think of it as though it's a let binding, cause that's basically what's happening; the is bound to the scoped name. On Jan 4, 11:29 am, Alex Miller a...@puredanger.com wrote: I had the same thought when I first started learning Clojure - I think the idea is that there is some

Re: Emacs: Optimize Imports?

2012-01-01 Thread Matthew Boston
It would be cool to get an emacs command to run slamhound directly in a file... h #lightbulb On Jan 1, 2:08 pm, Daniel Glauser danglau...@gmail.com wrote: Perfect.  Thanks! On Jan 1, 12:05 pm, gaz jones gareth.e.jo...@gmail.com wrote: I believe this might be what close to what you

Using clojure.java.shell for long running tasks

2011-11-16 Thread Matthew Boston
How can I get clojure.java.shell/sh to print to stdout while running? Currently, it waits until `sh` returns before I can access :out and println it. (:use clojure.java.shell) (defn call-maven [ args] (apply sh mvn args)) (defn maven-version [] (- -v call-maven :out println)) Thanks for

Re: Using clojure.java.shell for long running tasks

2011-11-16 Thread Matthew Boston
Thanks, Phil. Works like a charm! BTW, I'm working on the lein-mvn plugin which allows the use of maven plugins inside leiningen projects. On Nov 16, 2:53 pm, Phil Hagelberg p...@hagelb.org wrote: On Wed, Nov 16, 2011 at 11:48 AM, Matthew Boston matthew.bos...@gmail.com wrote: How can I get

Re: swank, clojure.repl and my fading sanity

2011-11-16 Thread Matthew Boston
Hey, that looks eerily similar to my gist! :) https://gist.github.com/1324048 On Nov 15, 2:06 am, Sean Corfield seancorfi...@gmail.com wrote: Add the following to your ~/.lein/user.clj: ;; ~/.lein/user.clj (if (= (.compareTo (clojure-version) 1.3.0) 0)   (do (use 'clojure.repl)       (use

Re: Clojure Conj extracurricular activities spreadsheet

2011-11-01 Thread Matthew Boston
Fogus, could you give me rights to edit or just add me to these extras: ClojureScript, Clojure tooling, Heroku Drinkup, Overture, The web and Clojure. Thanks, Matthew Boston @bostonaholic On Oct 26, 7:48 pm, Michael Fogus mefo...@gmail.com wrote: I've given edit rights to organizers

Re: Clojure in Emacs Seemingly Impossible

2011-10-30 Thread Matthew Boston
Definitely take Phils advice and use the instructions on the github site. I just setup a fresh emacs install from scratch (using Phils starter-kit http://technomancy.us/153 and it works flawlessly; and I'm new to emacs this week). mdave - Your dependencies are way old, try this instead.

Re: What's the best way to test private functions?

2011-07-17 Thread Matthew Boston
A good pattern to follow would be to have your exposed functions in one clj file and any dependent functions (your private ones in this case) in a separate ns (i.e. separate clj file). This hides the implementation to the caller as well as gives them a good idea of the functions they're able to

Re: lein usage

2011-05-22 Thread Matthew Boston
From the clojure-contrib project on Github The contrib libraries have moved to individual repos under Clojure org Leiningen isn't including contrib in the project.clj file anymore because there's no need for it after v1.2.0. On May 20, 11:08 pm, Vincent vincent@gmail.com wrote: Dear all

Re: sessions in Ring, Sandbar, Compojure, etc...

2011-05-10 Thread Matthew Boston
Maybe try looking at the source of a project on github using logins/ sessions. One I'm currently using for reference is from 4clojure https://github.com/dbyrne/4clojure On May 10, 2:24 am, Shree Mulay shreemu...@gmail.com wrote: For the life of me, I can't get sessions to work, immaterial of

Re: (identical? foo foo) evaluates to true

2011-02-17 Thread Matthew Boston
I think I recall something in a CS class about how String is (or possibly is) implemented. Consider the following: 1) Each character of the alphabet, number, symbol etc. is assigned a memory location. 0x00, 0x01, 0x02, etc. etc. 2) A String has an internal representation as a char[]. So,

Re: Get digits of a number

2011-02-17 Thread Matthew Boston
How about using the Java api Character/getNumbericValue, like so: (defn explode-to-digits [number] (map #(Character/getNumericValue %) (str number))) user = (explode-to-digits 12345) (1 2 3 4 5) On Feb 17, 4:45 pm, Mike Meyer m...@mired.org wrote: On Thu, 17 Feb 2011 15:27:47 -0600 Michael