I\'m in the middle of performing a large refactoring which will involve renaming a lot of events.This will leav开发者_如何学JAVAe our code with a lot of code like this:
The purpose of the code below is to determine if a particular date qualifies as a \"weekend\" i.e after 12:00 PM on Thursday, minimum 2 开发者_如何学Godays and before Monday 12:00 PM
At my workplace we\'re planning a major refactor on our core product, a web application with several \'modules\'. I quoted that because that\'s one of our main concerns: modules are not really modules
I have a piece of code where in there are 2 overloads which differ by data types of parameter and have different number of parameters as well. I am looking to reduce the code duplication. What are the
Tools like CodeRush and Resharper offer lots of simple refactorings, such as \'Rename Variable\'. 开发者_开发问答But if you could have any refactoring feature at all (no matter how complex), what woul
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, a
I have a question about simplifying some Collection handling code, when using Google Collections (update: Guava).
I have the following pattern appearing开发者_运维百科 many times in my Java code and was wondering how some of you might refactor it.
Please take a look at this piece of code I came up with. abstract class Command { public void Execute(string[] commandParameters)
This bit of code runs on Windows Compact Framework and what it does is obvious. It looks as it should be refactored (especially considering that I may want to add cmd.ExecuteResultSet() later), but I