refactoring Questions
2
Solved
I was designated to make refactoring on a project, and I came across this situation
this.path = DESTINY + deploy.name() + FILE_SEPARATOR + delivery.getSystem().getCode()
+ FILE_SEPARATOR + deliv...
Nicole asked 31/1, 2018 at 13:16
3
I know micro-benchmarking is hard. I'm not trying to build a poor micro-benchmark. Rather, I have run into this problem when making (what I thought to be) harmless refactoring. There is stripped do...
Branch asked 14/11, 2019 at 22:54
4
Solved
Getting a ESLint error when copiling with babel:
Line 28: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 29: Expected an assignment or function c...
Deeplaid asked 11/9, 2018 at 11:26
4
Solved
Is it better to create methods with a long list of parameters or wrap the parameters into an object?
Is it better(what is the best practice) to create methods with a long list of parameters or wrap the parameters into an object?
I mean lets say i have a Client data type with a long list of proper...
Corrinacorrine asked 8/4, 2010 at 9:18
7
Solved
I am a long year Java programmer, but currently I code in C#. I am accustomed, that when I change filename, also the class name changes and vice versa. This doesn't work in my Visual Studio. I must...
Vonnievonny asked 27/11, 2013 at 13:44
4
Solved
I have been trying refactor code by thanking functions and adding them in a separate file extension of a ViewController
What I have in this extension is a function that adds gesture recognizers t...
Almaalmaata asked 23/10, 2018 at 9:50
3
I have a simple function whose parameters are unintuitively ordered:
async blockUser(currentUser: User, userToBlock: User) { ... }
I would like to (using a proper refactoring tool rather than regex...
Ferrosilicon asked 16/11, 2020 at 13:21
4
Solved
I am developing a Node.js project in IntelliJ.
The only way to rename files seems to be Shift+F6 which attempts to find all usages which takes too long (~30s - 1min).
Is there a way to simply ren...
Leshalesher asked 8/6, 2013 at 2:6
3
Solved
I have a function I want to move to a different object. In the code, I select the function that I want to move. I use ReSharper > Refactor > Move but nothing happens.
Satterfield asked 1/7, 2014 at 12:50
4
Solved
Linking.removeEventListener('url', onReceiveURL);
removeEventListener is deprecated.
This is what my IDE suggests :
EventEmitter.removeListener('url', ...): Method has been deprecated.
Please in...
Circularize asked 4/2, 2022 at 14:48
6
I want to replace the String "com.oldpackage.className" with "com.newPackage.className" in a stream of serialized data. This serialized data is read from the DB and updated after replacing the stri...
Ronrona asked 12/1, 2011 at 12:16
4
Solved
Is there a way to organize C# usings (remove and sort, in separate or together) via a shortcut in Visual Studio for one or more files of a project?
I know that this can be done via the menu for on...
Blockbusting asked 27/1, 2015 at 15:17
8
Solved
My team has all our Golang code in a monorepo.
Various package subdirectories with library code.
Binaries/services/tools under cmd
We've had it for a while and are doing some cleanup. Are there...
Leesa asked 7/10, 2016 at 18:57
6
Solved
Is there a rename refactoring for PHP in Visual Studio Code? It is the only thing that stops me from fully move from NetBeans to VSC. Renaming is very importat for me (not search/replace).
Schuller asked 13/10, 2017 at 13:41
2
I want to rename my namespace, MyProjectTest.Core to MyProject.Test.Core, but the Visual Studio 2017 refactoring tool doesn't let me insert . into the name.
I do not want to do that manually, is t...
Mot asked 9/10, 2018 at 12:38
2
Solved
When reorganizing a project with many classes, a frequent need is to move some class to another existent file.
I have searched the vscode features and extesions and I haven't been able to find some...
Participation asked 27/7, 2022 at 8:24
6
Solved
Somehow, I managed to break my refactoring capabilities in Intellij IDEA 12. I have somehow disabled it for my project. Renaming a member through Shift+F6 doesn't work. The inline edit box is not d...
Moravian asked 5/11, 2013 at 14:10
7
Solved
(See Screenshot)
I have this function with a really long untyped object returned, I want to copy the inferred type of that object because it's way too long to do manually, and then I want to make ...
Lunge asked 4/5, 2020 at 11:24
12
Solved
Is there a way to find and replace all occurrences of a word in an entire project (not just a single class using refactor -> rename) and also maintain case, either in Android Studio or using a c...
Jeffcott asked 27/11, 2013 at 17:34
5
Solved
I started a prototype with Delphi with all source files under one single directory.
Now, I want to reorganize everything with folders.
I found two way to do this.
1/ First is to open each unit i...
Puffin asked 27/9, 2012 at 8:58
2
Solved
This is an example of routes I have in my application:
{
path: "/something",
name: "SomeRoute",
component: SomeComponent,
meta: {showExtra: true},
},
{
path: "/somethi...
Rafaelrafaela asked 5/9, 2021 at 15:57
4
Solved
This might be a simple question: How can I massively refactor my Java code to make most of the method argument as "final"? This is to follow one of our "checkstyle" rule. We have thousands of Java ...
Ronnie asked 20/2, 2017 at 13:32
11
Solved
I've written something like this to specify default values for prompts.
$defaultValue = 'default'
$prompt = Read-Host "Press enter to accept the default [$($defaultValue)]"
if ($prompt -eq "") {} ...
Jeanniejeannine asked 15/10, 2014 at 15:25
18
Solved
I'm attempting to use the Ctrl+R, Ctrl+R command within Visual Studio 2008 to rename a variable. I get an error message at the bottom saying that
"The key combination (Ctrl+R, Ctrl+R) is bound to...
Pensioner asked 30/3, 2010 at 19:5
6
Solved
So you've got some legacy code lying around in a fairly hefty project. How can you find and delete dead functions?
I've seen these two references: Find unused code and Tool to find unused function...
Yamauchi asked 28/3, 2009 at 16:42
1 Next >
© 2022 - 2025 — McMap. All rights reserved.