automated-refactoring Questions
1
Solved
In Python, I really enjoy how concise an implementation can be when using list comprehension. I love to do concise list comprehensions this:
myList = [1, 5, 11, 20, 30, 35] #input data
bigNu...
Lythraceous asked 25/1, 2013 at 7:48
3
Solved
We have a sanity check method
void IsNotNull<T>(T obj){...}
invocation
IsNotNull(obj);
I want to replace this to invoke the other overload that takes a second param of type string (me...
Kresic asked 31/12, 2012 at 13:39
5
I have interface
public interface ObjectBuilder<E> {
E buildObject();
}
Also, the project has a lot of classes that implement non-generic version of the interface.
class MyClassBuilder ...
Schiffman asked 7/11, 2012 at 11:56
3
Solved
In our product, we have things called "services" which are the basic means of communication between different parts of the product (and especially between languages—an in-house language, C, Python ...
Envision asked 6/12, 2012 at 2:47
2
Solved
With the following code:
if (lombardiTrophy.Substring(1, 1).Equals('~'))
...I get, "Suspicious comparison: there is no type in the solution which is inherited from both 'string' and 'char'"
Is ...
Nativeborn asked 6/9, 2012 at 22:47
1
Solved
I got the fruitless task to incorporate some programs my predecessor wrote. One horrible mess of unorganized code.
So far I know only about the automatic identation (C-i). So I wonder if you can ...
Riess asked 23/7, 2012 at 15:33
3
Solved
When I'm working on Android project I would like to use some magic shortcut that would extract my string to strings.xml and also allow me to change the key. Is there any?
If there isn't, is there ...
Gean asked 21/8, 2011 at 21:7
4
The source code of our application is hundreds of thousands of line, thousands of files, and in places very old - the app was first written in 1995 or 1996. Over the past few years my team ha...
Beaner asked 13/1, 2012 at 15:0
3
Recently I've been making some improvements to a lot of the controls we use, for example give properties default values and making buttons private instead of protected.
By making this kind of adjus...
Leatherneck asked 31/5, 2011 at 14:4
12
Solved
I need to change the signature of a method used all over the codebase.
Specifically, the method void log(String) will take two additional arguments (Class c, String methodName), which need to be p...
Bitty asked 11/10, 2010 at 12:34
6
Solved
EDIT : I submitted an Eclipse enhancement request for this refactoring.
Is there a way to move a private field from one class to its helper class? The below chicken-scratch UML shows what I'm doin...
Ambit asked 4/10, 2010 at 20:42
3
Solved
There are two major refactoring tools which can be installed for Visual Studio that provide C++ support. The full versions of both tools are $250, and they seem to offer similar functionality...
Hawsehole asked 10/4, 2010 at 2:14
1
For example, if I change the signature in a function in either the header or the cpp, I'd like it to automatically change in the other one. If I add a new function in either, it should appear in bo...
Wintertime asked 9/4, 2010 at 13:34
10
I want to delete unused local variables from C file.
Example:
int fun(int a , int b)
{
int c,sum=0;
sum=a + b;
return sum;
}
Here the unused variable is 'c'.
I will externally have a list of...
Yarak asked 18/2, 2009 at 12:43
7
What are common traits/properties of programming languages that facilitate (simplify) the development of widely automated source code analysis and re-engineering (transformation) tools?
I am mostly...
Engraft asked 10/6, 2009 at 18:48
© 2022 - 2024 — McMap. All rights reserved.