Good examples of spec use for review?

2017-07-17 Thread Jonathon McKitrick
Are there any relatively simple projects out there that illustrate the best 
practices for clojure.spec? I’d like to see namespacing guidelines, 
generative testing, and instrumentation on tests that can of course be 
disabled or completely elided in production.

thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] org.clojure/java.jdbc 0.7.0

2017-07-17 Thread Sean Corfield
What?
The Clojure Contrib JDBC library
https://github.com/clojure/java.jdbc

The latest stable release includes reducible queries, improved database vendor 
support, better/expanded option handling, optional clojure.spec support, etc

Please see this blog post for more details: 
https://seancorfield.github.io/blog/2017/07/17/clojure-java-jdbc-0-7-0/

Sean Corfield -- (970) FOR-SEAN -- (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 because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] Honeysql mailing list and slack channel

2017-07-17 Thread Michael Blume
I'm opening a Google group and Slack channel for discussion of Honeysql, 
the Clojure DSL for generating SQL. We have some issues that are likely to 
result in breaking changes, and I'd like to get more input on that than I'd 
be likely to get in a PR/Issue discussion.

Maling list: https://groups.google.com/forum/#!forum/honeysql
Slack channel: #honeysql

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] specter-edn 0.1.4

2017-07-17 Thread Jason Felice
Thanks again to Marcelo!

Various bugfixes to handling of derefs, non-printable nodes, anonymous
functions, metadata, and key order in maps.

specter-edn

https://github.com/maitria/specter-edn/

Format-preserving Specter path for EDN and Cloure code.

There is one specter path: SEXPRS. This navigates to a sequence of
s-expressions parsed from a string.

For the transform case, specter-edn preserves whitespace and comments using
a sort of diffing algorithm to match new S-expression parts to original
parts of the parse tree.
Usage

(use 'com.rpl.specter)
(use 'com.rpl.specter.macros)
(use 'specter-edn.core)

(select [SEXPRS FIRST LAST] "[42 26 77]");=> 77

(setval [SEXPRS FIRST FIRST] 99 "[42 ; Hi mom!\n6]");=> "[99 ; Hi mom!\n6]"

TODO

   - Use clj-format to format new code which isn't matched up with old code.

Contributors

   - Jason Felice
   - Marcelo Nomoto

License

Copyright © 2016, 2017 Jason M. Felice

Distributed under the Eclipse Public License either version 1.0 or (at your
option) any later version.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: What is juxt really doing?

2017-07-17 Thread Pierre-Yves Ritschard
A while back I showed how to use it for simplistic pattern matching too: 
http://spootnik.org/entries/2013/05/21/poor-mans-pattern-matching-in-clojure/

On Monday, July 17, 2017 at 3:10:14 AM UTC+2, lawrence...@gmail.com wrote:
>
> Thank you for all the responses. The examples of using juxt to sort among 
> results that are otherwise the same is a good example. 
>
>
> On Sunday, July 16, 2017 at 3:18:07 AM UTC-4, Boris V. Schmid wrote:
>>
>> I don't use juxt much, but the example that I did pick up is where juxt 
>> is used for sorting on one function first, and in the case of a tie, on the 
>> second function. That is quite useful to me.
>>
>> > 
>> (sort-by (juxt first second) (map vector (repeatedly 10 #(rand-int 3)) 
>> (shuffle (range 10
>> ([0 1] [0 4] [0 5] [0 6] [0 7] [0 8] [1 2] [1 3] [2 0] [2 9])
>>
>> On Sunday, July 16, 2017 at 5:52:44 AM UTC+2, lawrence...@gmail.com 
>> wrote:
>>>
>>>
>>>
>>> Does anyone use juxt in the real world, or is mostly for examples? 
>>>
>>>
>>>
>>  
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.