Mike Yearwood
Toronto, Ontario, Canada
General information
Category:
Coding, syntax and commands
Environment versions
Network:
Windows 2003 Server
>>I'm not doing your work for you. Craig has told you how to proceed, but you didn't hear a word he said. Look at the webisted on google for refactoring code and apply the principals discussed. You want someone else to do it for you. I refuse.
>
>John,
>
>All you do is criticize. I showed that the input I am working with is already complex mess. I am trying as best as I can to make small pieces, small methods that do some thing and then plug them into a bigger method to return what I need. This is what I think is the first part of re-factoring. Making small methods doing one thing.
I agree with that to a point. You could start by identifying a small coherent repeated block of code and make that a method. Then remove all instances of that block of code and replace with calls to the new method. Take them one at a time.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only