find shorter clojure code automatically

2016-03-03 Thread Daniel
You might want to check out this blog. http://blog.mattgauger.com/blog/2014/09/15/clojure-code-quality-tools/ -- 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 membe

Re: Testing functions in threading macros (with Midje)

2016-03-03 Thread Jason Felice
People have different philosophies, but here's mine: Test your code through a very few stable interfaces. I would *not* isolation test each function. If you make small functions and you want to refactor (inline and extract duplication), isolation testing will make things difficult. If you choos

Re: [ANN] CIDER 0.11 Released!

2016-03-03 Thread Raymond Huang
Congrats. This was a really awesome release. I really how jack-in dynamically adds the dependencies & plugins. No more out of sync issues :) On Thu, Mar 3, 2016 at 4:05 AM Phillip Lord wrote: > > This is a really fantastic release. I thought after the debugger, you > could probably just stop, b

Re: find shorter clojure code automatically

2016-03-03 Thread Andy Fingerhut
Eastwood doesn't try to find syntax sugar. It is meant to be a linter, i.e. to find suspicious things in your code that might be bugs, or left-over cruft. Kibit, mentioned earlier in this thread, might be the project you are thinking of, also by Jonas Enlund: https://github.com/jonase/kibit

Re: find shorter clojure code automatically

2016-03-03 Thread Max Countryman
Hi Jeremy, My understanding is Eastwood might be a tool which can find some specific kinds of syntax sugar in automated way. Check it out: https://github.com/jonase/eastwood/blob/master/README.md Max > On Mar 4, 2016, at 03:33, Jeremy Vuillermet > wrote: > > Hello, > > Every time I go t

Re: find shorter clojure code automatically

2016-03-03 Thread Gregg Reynolds
On Mar 3, 2016 12:34 PM, "Jeremy Vuillermet" wrote: > > Hello, > > Every time I go to a code base I don't know, I discover new functions from clojure api that I was not aware of. > Those are usually simple shortcut functions that don't do much but make the code shorter. > > Just doing a research o

Re: find shorter clojure code automatically

2016-03-03 Thread Alan Thompson
Hi Jeremy - I am finding "new-to-me" functions like that all the time, even after 3 years of Clojure! Besides looking up and understanding unfamiliar functions (e.g. ffirst [1]), I also keep a browser tab always open to the clojure cheatsheet [2] as a reference. Periodically (or if I need a break

Gettext key extraction through macro

2016-03-03 Thread damien . ragoucy
Hello everyone, I have a ClojureScript project and I'd like to extract the text to be translated at compile time. The inspiration comes from an Elixir library , as explained in this video . I'm able to extract

Re: find shorter clojure code automatically

2016-03-03 Thread Ambrose Bonnaire-Sergeant
Hi Jeremy, Browsing the Kibit rule base comes to mind, but I don't have a general solution. Thanks, Ambrose On Thu, Mar 3, 2016 at 1:33 PM, Jeremy Vuillermet < jeremy.vuiller...@gmail.com> wrote: > Hello, > > Every time I go to a

find shorter clojure code automatically

2016-03-03 Thread Jeremy Vuillermet
Hello, Every time I go to a code base I don't know, I discover new functions from clojure api that I was not aware of. Those are usually simple shortcut functions that don't do much but make the code shorter. Just doing a research on this group for "shorter code" and "better code" there are s

Re: [ANN] CIDER 0.11 Released!

2016-03-03 Thread Phillip Lord
This is a really fantastic release. I thought after the debugger, you could probably just stop, but enlighten is a really nice addition. Bozhidar Batsov writes: > Hey everyone, > > CIDER 0.11 (a.k.a. Bulgaria) is finally out! > > Today Bulgarians (like me) celebrate the country's Liberation D

Re: [ANN] CIDER 0.11 Released!

2016-03-03 Thread Gary Verhaegen
Thanks Bozhidar! On Thursday, 3 March 2016, Leon Grapenthin wrote: > Congratulations. Cider is really awesome! > > On Thursday, March 3, 2016 at 6:42:48 AM UTC+1, Bozhidar Batsov wrote: >> >> Hey everyone, >> >> CIDER 0.11 (a.k.a. Bulgaria) is finally out! >> >> Today Bulgarians (like me) celebr

Testing functions in threading macros (with Midje)

2016-03-03 Thread Timur
Hi all, I generally create composable functions that depend on certain keys of an input map and compose them using threading macros. However testing functions separately is somehow cumbersome as each fn depends on the output of another one. How do you test these? What is the best way to test

Re: [ANN] CIDER 0.11 Released!

2016-03-03 Thread Leon Grapenthin
Congratulations. Cider is really awesome! On Thursday, March 3, 2016 at 6:42:48 AM UTC+1, Bozhidar Batsov wrote: > > Hey everyone, > > CIDER 0.11 (a.k.a. Bulgaria) is finally out! > > Today Bulgarians (like me) celebrate the country's Liberation Day and the > rest of the > world will get to celeb

Re: Clojure as first language

2016-03-03 Thread Benjamin Van Ryseghem
> On 1 Mar, 2016, at 22:54, blake watson > wrote: > > >>Would you elaborate on this last comment about Smalltalk? > > Smalltalk, as a language, is very simple. Its syntax is, essentially, "object > message" embellished with keyword parameters, like "player attack