A sustainable pace

| 5 Comments

Ok, it's that 'wine' time of the evening. Miche is working late, I've eaten and am close to finishing off a nice bottle of Pinot Noir and my thoughts turn to people being excited by refactoring editors...

Firstly: I've never used a program that facilitated automated refactoring, so be gentle...

Right, so we can select a block of code, right click, select 'extract method' and the editor does all of the cut, paste and argument passing/receiving fixups... Does that really take people more time to do manually than it does to let the editor do it? Like I said, I've not used these tools, but I'm guessing you need to tell it what to call the new method and I'm guessing that if it picks the argument names it probably gets them wrong or, at least, doesn't improve on the names used at the call site that you're refactoring from... So, isn't this kinda stuff just fluff?

OK, I admit that an editor that helps you do the "extract method" refactoring is probably helping with one of the easier refactorings but even so, I kinda like to go through the process manually. I feel I learn more from it. It gives me points where I have to think about what I'm doing; rather than just selecting an option from a menu... Especially with the more invasive refactorings, like "put it in the right bloody place" and "remove pointless shit from multiple places".

Maybe it's just me.

5 Comments

Well I've used Xrefactory, although I bought it for the html cross referencing. The main saving come from being able to apply changes globally, kind of like doing a perl transform over the entire source tree.

So far I haven't really used the refactoring abilities that much (apart from the symbol indexing) but then I'm an out of date Unix guy who can't use this new fangled technology ;p.

Now, now, I never said Unix was out of date. I just said I hadn't used it for a fair while.

I can see the point of being able to do transforms on the entire tree but I still kinda prefer doing that kinda thing by hand; I like to know where I'm changing things...

I guess I'm just an out of date C++ guy who doesn't like all these new fangled tools ;)

I've used refactoring with Eclipse, in Java. I felt it was really helpful and useful. I think it was the most useful in terms of developing new software, before things get all complicated. You can just build your function and if it gets too big, just right click and it gets moved out. Also it is really helpful for changing variable names. So many times I have thought, oh, this name is horrible, but if change it it will be so much work... but now it is still work, bu the work is a lot less painful.

I used the stuff in intelliJ for a while and found it mighty useful.

I have a small brain and unfortunately by and large when I feel the need to refactor, my brain is already full! The help in intelliJ allowed me to refactor, without interrupting my main train of thought.

I used the stuff in intelliJ for a while and found it mighty useful.

I have a small brain and unfortunately by and large when I feel the need to refactor, my brain is already full! The help in intelliJ allowed me to refactor, without interrupting my main train of thought.

Leave a comment