Re: Refactoring tools

2013-06-09 Thread Jay Fields
I've written the 2nd one in emacs lisp, the first one would be even easier. If you're using emacs, you should give it a shot, it was a great learning experience for me. On Friday, March 22, 2013 10:54:36 PM UTC-4, Russell Mull wrote: > > I find myself doing that a lot by hand, a tool to help wou

Re: Refactoring tools

2013-06-09 Thread Jay Fields
nrepl has macroexpansion, so you can already have 1/2 of what you want - better than nothing. On Friday, March 22, 2013 9:42:10 PM UTC-4, Alex Baranosky wrote: > > I'd really like to see a way to factor to code that uses ->/->> and back > again. > > On Fri, Mar 22, 2013 at 12:01 PM, Laurent PETI

Re: Refactoring tools

2013-06-09 Thread Ye He
Hi, I recently upgrade old clojure-refactoring repo to Clojure 1.5.0 and nREPL. See if it help you. https://github.com/luckykevin/clojure-refactoring On Thursday, March 21, 2013 9:05:57 AM UTC+8, Dave Kincaid wrote: > > I'm wondering if there are any refactoring tools around for working with > C

Re: Refactoring tools

2013-06-09 Thread Ye He
I recently upgraded clojure-refactoring to Clojure 1.5.0 and nREPL. See if it helps you. https://github.com/luckykevin/clojure-refactoring On Thursday, March 21, 2013 9:05:57 AM UTC+8, Dave Kincaid wrote: > > I'm wondering if there are any refactoring tools around for working with > Clojure proj

Re: Refactoring tools

2013-03-23 Thread Korny Sietsma
Awesome - great stuff! (pity no pony though) - Korny On 24 March 2013 13:01, Alex Baranosky wrote: > Korny, > > Slamhound does some of what you're talking about, but not as an editor > extension, https://github.com/technomancy/slamhound > > > On Sat, Mar 23, 2013 at 6:58 PM, Korny Sietsma wro

Re: Refactoring tools

2013-03-23 Thread Devin Walters
Slamhound does some of what you're looking for. — Sent via Mobile On Sat, Mar 23, 2013 at 8:59 PM, Korny Sietsma wrote: > I'd also love something to optimise the "ns" form - I'm regularly doing > tasks by hand that could in theory be automated; adding a new > not-yet-imported library can be quit

Re: Refactoring tools

2013-03-23 Thread Alex Baranosky
Korny, Slamhound does some of what you're talking about, but not as an editor extension, https://github.com/technomancy/slamhound On Sat, Mar 23, 2013 at 6:58 PM, Korny Sietsma wrote: > I'd also love something to optimise the "ns" form - I'm regularly doing > tasks by hand that could in theory

Re: Refactoring tools

2013-03-23 Thread Korny Sietsma
I'd also love something to optimise the "ns" form - I'm regularly doing tasks by hand that could in theory be automated; adding a new not-yet-imported library can be quite tedious, it'd be great to be able to type "(defdb" and be able to hit a key combo to add a new :require entry. A generalised "

Re: Refactoring tools

2013-03-22 Thread Russell Mull
I find myself doing that a lot by hand, a tool to help would be very useful. Some others that I've thought of are: - change between (fn [x] ...) and #(...) - pull sexp up to let, or introduce a new let (like introduce variable in java et. al) On Saturday, March 23, 2013 10:42:10 AM UTC+9, Alex

Re: Refactoring tools

2013-03-22 Thread Alex Baranosky
I'd really like to see a way to factor to code that uses ->/->> and back again. On Fri, Mar 22, 2013 at 12:01 PM, Laurent PETIT wrote: > 2013/3/22 Daniel Glauser > >> I feel your pain, would love to see some Clojure refactorings. I had >> started working on the 1.3 branch of clojure-refactoring

Re: Refactoring tools

2013-03-22 Thread Laurent PETIT
2013/3/22 Daniel Glauser > I feel your pain, would love to see some Clojure refactorings. I had > started working on the 1.3 branch of clojure-refactoring trying to bring it > up to speed. I met with Tony (the original author of clojure-refactoring) > and Phil H. at Clojure/West. Tony was very ad

Re: Refactoring tools

2013-03-22 Thread Daniel Glauser
I feel your pain, would love to see some Clojure refactorings. I had started working on the 1.3 branch of clojure-refactoring trying to bring it up to speed. I met with Tony (the original author of clojure-refactoring) and Phil H. at Clojure/West. Tony was very adamant that we ditch his code an

Re: Refactoring tools

2013-03-20 Thread Akhil Wali
A fairly new project for refactoring Clojure is clj-refactor.el. Not too much functionality yet, but supplements clojure-refactoring pretty well. clj-refactor.el will later interop with nRepl, or that's the plan I heard. That aside (and I know I'm being redundant), refactoring any Lisp is a snap w

Re: Refactoring tools

2013-03-20 Thread Devin Walters
Yeah it sort of bums me out that clojure-refactoring has been in the ditch. There are a number of tasks to get this back into a good state. The plan right now is to take tests (which were mostly failing and using outdated dependencies) from the old-test directory and get them passing under Midje

Re: Refactoring tools

2013-03-20 Thread Dave Kincaid
Thanks. It looks like nothing has happened on that in a year and it appears to require slime/swank. But it's a start I guess if there isn't anything else. On Wednesday, March 20, 2013 6:13:30 PM UTC-7, Devin Walters (devn) wrote: > > I don't think much has happened with it recently, but I used

Re: Refactoring tools

2013-03-20 Thread Devin Walters
I don't think much has happened with it recently, but I used to use https://github.com/joodie/clojure-refactoring. -- '(Devin Walters) Sent from my Motorola RAZR V3 (Matte Black) On Wednesday, March 20, 2013 at 8:05 PM, Dave Kincaid wrote: > I'm wondering if there are any refactoring tools ar