How to refactor “nested” view classes to avoid deep method calls?
Lets say I’m displaying a bunch of data (model
) using a View
class for rendering. However, a lot of the data has sub-data (model
s) complicated enough to require separate rendering classes.
Temporary variables vs line length requirements
I’ve been reading Martin Fowler’s Refactoring. It is generally excellent but one of Fowler’s recommendations seems to be causing a little trouble.
Refactoring: Two big chunks within a function
I am designing an API which mostly involves refactoring the original code.
Overcoming circular reference
I am working on an asp.net MVC web application which contains several projects.
How to remove duplicate exception block code
I have good number of Service and DAO classes which has the same set of 30 line exception code block which gets repeated and it shows up in Code Duplication report.
Cleaning Up Generated Code: Refactor or Map?
Context:
Renaming long named method in C# [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for […]
How should I go about “overhauling” a large legacy application? [duplicate]
Possible Duplicate:
I’ve inherited 200K lines of spaghetti code — what now?
How to do unit tests on a method that takes the elapsed time into account?
I’m currently in the middle of refactoring an important method in a legacy-system. There were almost zero test until I’ve started working on it, and I’ve added quite a lot to ensure the correct work after my refactorings.
Is it possible to avoid enormously big switch in that case? [duplicate]
This question already has answers here: Refactoring Switch Statements and is there any real use for Switch Statements at all? (7 answers) Closed 11 years ago. I’m writing a simple chess-related code with intention to write it clearly (performance doesn’t matter at all). And this method I have doesn’t look clean to me at all: […]