in reply to Re: Refactoring technique?
in thread Refactoring technique?
It really doesn't matter where the input values come from, but what is the purpose of the subroutine.
You're right! Until I can give doStuff( ... ): a proper name, the parameter names are always going to be a compromise.
The problem is that the 6 blocks of code that will be replaced by the calls to doStuff(), do an aweful lot of stuff; so understanding all the stuff they do sufficiently to give it an appropriate name is quite a challenge. More so as I'm working in a language I'm only barely familiar with, and the author has made some ... what you might term politely .. dubious choices.
Eg. The code is littered with calls to a function called _OAV(), which is annotated with //Object, Attribute, Value. It looks like this:
Which is just horrible!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Refactoring technique?
by MidLifeXis (Monsignor) on Apr 24, 2015 at 17:24 UTC | |
by BrowserUk (Patriarch) on Apr 24, 2015 at 18:12 UTC | |
|
Re^3: Refactoring technique?
by flexvault (Monsignor) on Apr 24, 2015 at 19:50 UTC |