The stupid question is the question not asked | |
PerlMonks |
Re^2: Refactoring technique?by BrowserUk (Patriarch) |
on Apr 24, 2015 at 16:05 UTC ( [id://1124557]=note: print w/replies, xml ) | Need Help?? |
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: <Reveal this spoiler or all in this thread>
Which is just horrible! With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
In Section
Seekers of Perl Wisdom
|
|