I'm implementing IDE support for a language using Language Server Protocol. I want to trigger a rename after extracting a variable into the current s ...
I'm implementing IDE support for a language using Language Server Protocol. I want to trigger a rename after extracting a variable into the current s ...
I'm currently developing my first cross-plattform application in .NET6, which should run on windows and linux. I reached the point where I'm having a ...
I have a process that allows users to upload data in Excel file and save to database once the data have gone series of validations . Once such validat ...
I've hada project in python3.7 for a while with a PostgreSQL database and APScheduler 3.X. I'm using a SQLAlchemyJobStore and have several types of jo ...
I wonder if the following code could be written better: template< typename DataType > class MyDerivedClass : public MyBaseClass< std::vector ...
VS started to "synchronize" the namespace of a file with the folder structure when moving files into another folder. I could not find a setting for th ...
I want to know what should be the best approach to make function: what I think is the second approch is save us when refactoring code. both work b ...
I saw somewhere online that when refactoring widgets in Flutter, you should opt for refactoring them as classes rather than methods. So I wonder if ha ...
I have following HTML code the asp tag is not recognized by Visual Studio 2022 and when I build and run the solution the asp tag is not translat ...
How correctly refactor function, instead of duplication so, now I have : Something like (location) = {loction.name} + formatAddressLocation(…) ...
I'm working on a portfolio project - which should use jquery - part of the task is to set and get text via localstorage - which I can do in Javascript ...
I want to automatically find all occurrences in my kotlin application where i use deprecated code (mostly methods which are annotated as deprecated) ...
I am trying to implement a login functionality where I pass the emailIdand password and receive the logged-in user data from the server. Also if some ...
Let's say I have a component like this The Original Code: and I have following approaches to refactor the above code... Refactor approach 1: R ...
import collections import numpy as np def is_square_magic(rows_and_cols): """is square magic""" matrix = [[int(num) for num in input().spl ...
Let's say I have the below code in app.component.html template I want to refactor the code like and get the IMG_SRC from some app.constants.ts ...
I have the following code snippet that works perfectly and as intended: # Prepares the object design categories and connects them via bit mapping ...
The original code of the function was: This is my implementation: How can I proceed with this? ...
I have a getBaseUrl() method which assigns a string value to this.baseURL depending on the serviceType value. I am expecting the method to be refac ...
My original code looked like this: "broker" is an (interface/implementation facade) with several methods (create, change, remove, etc) for each of ...