Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Re-factoring
Message
From
25/06/2013 13:57:08
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01577083
Message ID:
01577109
Views:
56
>>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
Map
View

Click here to load this message in the networking platform