Re: find shorter clojure code automatically

2016-03-04 Thread Jeremy Vuillermet
Ok, kibit is definitely what I was looking for. https://github.com/jonase/kibit Just doing a lein kibit on my projects, I quickly got some interesting stuff. There are more functions that I forgot about than things I can learn so far but that's still very useful. Just for informations, I encou

Re: find shorter clojure code automatically

2016-03-04 Thread Jeremy Vuillermet
Thanks a lot for your responses. I'm checking out everything and will post further findings or comments. On Thursday, March 3, 2016 at 7:33:55 PM UTC+1, 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

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: 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

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