Skip to main content
Filter by
Sorted by
Tagged with
Tooling
0 votes
5 replies
96 views

I want to develop a tool that helps in transforming a code like this: #ifdef MYLIB_ENABLE_DEPRECATED_CODE ... some deprecated code ... #endif into: #ifdef MYLIB_ENABLE_DEPRECATED_CODE ...
Hari's user avatar
  • 1,985
0 votes
0 answers
44 views

I am trying to atleast clean the component.ts using services or somthing in my angular i have many repetitive code that i trying to fix and refactor. I am trying to apply DRY as possible can i have a ...
Jonel Teano's user avatar
2 votes
0 answers
107 views

When I copy a .kt file from one project to another (or within the same project) in Android Studio Narwhal 3 Feature Drop | 2025.1.3, the IDE automatically modifies parts of my Kotlin code. Example: ...
Tuấn Quốc Trần's user avatar
1 vote
2 answers
437 views

Android Studio Version: Android Studio Meerkat Feature Drop | 2024.3.2 Patch 1 Build #AI-243.26053.27.2432.13536105, built on May 22, 2025 I've been unable to find anyone with this issue, as it ...
jaxbriggs9's user avatar
1 vote
2 answers
101 views

I’m working on a Java Swing unit converter. The user selects a unit category from a JComboBox, and based on that selection, I update two other JComboBox<Units> with corresponding enum values (...
jamesdiaz's user avatar
  • 137
1 vote
1 answer
77 views

I use Tanstack Query in my project and have arranged my api interactions like this (see below). Basically I made a custom hook inside which there are other hooks that do data fetching. In my opinion, ...
magrega's user avatar
  • 263
3 votes
2 answers
117 views

I'm writing an emulator of a custom ISA 16-bit processor that has instructions with operands of different sizes in C (C23 standard). In my code, I use enum members to indicate the size of the operands,...
Andrey Dorofeev's user avatar
1 vote
1 answer
101 views

Often times we want to import something into some files, and we determine those files by find and replace. For example: We want to find all files that has '/awesome-page', change to '/awesome-page' + ...
Nor.Z's user avatar
  • 1,605
-3 votes
2 answers
108 views

I am refactoring my angular code to work with signals. I have this below code, which needs to be refactored. @Component({ ... }) export class SomeComponent { @Input() test = null; ngOnInit() { ...
Naren Murali's user avatar
  • 66.2k
3 votes
0 answers
182 views

I'm making a desktop application with Electron and Node.js, in which I'm trying to implement CSP /nonce. So far I have developed a script that should generate the content security policy: const crypto ...
Francisco IA Lover's user avatar
1 vote
0 answers
64 views

I have a class attribute account_values that occurs multiple times in class MyClass, all in the same the file file1.py. It is also referenced multiple times in file2.py. All the references in file1.py ...
Llaves's user avatar
  • 791
0 votes
0 answers
24 views

I want to use AST transformation using jscodeshift to do a large scale refactor, changing our test runner from Jest to Bun Test. A concern that I'm trying to mitigate is that we might migrate the ...
dwjohnston's user avatar
  • 12.5k
-1 votes
1 answer
273 views

I am using PyCharm Community Edition. I have a project folder, that I now need to move to another place on the same PC, on windows 11. I don't seem to be able to do that. There are a lot of advice for ...
Rainer Bärs's user avatar
1 vote
0 answers
76 views

I have been struggling to refactor this marshmellow schema to pydantic 2. Problem is with AttributeValue field. When I refactor this to pydantic, I always get strange errors regarding this field. This ...
Sharmiko's user avatar
  • 643
3 votes
2 answers
68 views

I'm writing a bash script that amongst other things, starts a user specified command, sending the output to either file, file and stdout, or just stdout as required. I don't like the duplication of ...
extorn's user avatar
  • 695
3 votes
1 answer
121 views

That is can you by altering the order of declaration still have a valid program, but with a different result. This question is not if you can turn a valid program into an invalid (which you obviously ...
skyking's user avatar
  • 14.6k
0 votes
1 answer
60 views

I am working with Playwright on a test automation project. I already have several Pages classes and would now like to move a method from one class to another. This already has various references. Is ...
Michael S.'s user avatar
1 vote
1 answer
108 views

I have created a Java Custom Annotation Processor with RetentionPolicy as SOURCE for generating personalized code for me just like Lombok's Getter & Setter. Unfortunately it didn't worked because ...
Mihir Bhagat's user avatar
0 votes
1 answer
105 views

I want to transition from Pandas to Polars in a big Python project. Is there a way to highlight or find all Pandas commands I've written in Visual Studio Code (or another IDE if necessary) so I would ...
gernophil's user avatar
  • 637
0 votes
1 answer
80 views

I want to remove unused php files from my core php project. I have tried various static analysis tools like phpstan, phpDocumentor etc but it gives only the unused functions etc. I need to have the ...
Jamal nabi ashrafi's user avatar
0 votes
1 answer
63 views

I have a couple of dozen .rst files that are all loaded from a main index.rst file via .. include: file.rst. Now I want to restructure the TOC and move some files onto a different headline level - but ...
cweiske's user avatar
  • 31.4k
-2 votes
1 answer
37 views

In the class hierarchy below, how to define type constraint for T (where T : class, new())? abstract class AbstractComponent<T> : Parent, IComponentType, IRelationship {} class ChildComponent : ...
the-petrolhead's user avatar
1 vote
2 answers
85 views

I have a problem. $this->allIds->each(function ($id) { $this->checked[$id] = $this->checkedAll; }); And this: $this->allIds->each(fn($id) => $this->checked[$id] = $this-&...
ZoKeR's user avatar
  • 13
-2 votes
1 answer
63 views

Project/ ├── a/ │ ├── core/ │ │ └── com.blabla.hi.sofbs │ └── api/ │ └── com.blabla.hi.sofbs └── b/ ├── core/ │ └── com.blabla.hi.sofbq └── api/ └── com.blabla.hi....
SB_STOPDL's user avatar
2 votes
1 answer
112 views

I have hundreds occurences of this kind of lines in my app : public ICommand MyCommandName => ReactiveCommand.Create(TriggerCommand); I tried without luck to add a Custom Pattern in resharper to ...
Whiletrue's user avatar
  • 645
2 votes
1 answer
123 views

I'm working on refactoring a big codebase and part of the refactor includes removing some checks. I couldn't figure out a way to do this efficiently. For example if the old code was something like: ...
Lucas Daher's user avatar
0 votes
2 answers
90 views

I'm working on a C++ class that needs to perform type-specific operations on different data structures. For specific reasons, making class template parameterized is not a solution for me. but I'm ...
HiroIshida's user avatar
  • 1,603
0 votes
1 answer
422 views

I'm currently generating the Swagger docs HTTP error responses by adding them to each URI function like this: #[utoipa::path( context_path = "/user", tag = "user", ...
Jan's user avatar
  • 304
0 votes
3 answers
134 views

I've been asked to generate something like this: library("tidyverse") df <- tibble( comparison_var = c(1:10), var_to_sum = runif(10, max = 10), other_var = runif(10, max = 50) ) ...
Lambda's user avatar
  • 3
0 votes
1 answer
55 views

Imagine a larger codebase. Is there any tool or functionality built-in in Rider or Visual Studio that can recognize classes that are similar except for maybe just different data types? So a ...
me.at.coding's user avatar
  • 18.5k
0 votes
1 answer
117 views

Assume that I am doing some refactoring in app's code that uses some relational database. It was decided that some columns and tables are not required from domain perspective, require renaming or have ...
Dawid S's user avatar
0 votes
1 answer
98 views

I want to migrate a very old-fashioned PHP app gradually to Laravel. The application does not yet use a general entry point, but uses direct file URLs to work. So, in order to gradually move over ...
David Janssens's user avatar
-1 votes
1 answer
283 views

I have a working code generator, that on top-level, just instantiates modules and takes care of all the connectivty - that one is proven to be working. I would like now to partition some of the ...
John T.'s user avatar
0 votes
0 answers
86 views

I have inherited a PHP project, it is written in Laravel 9.2. There is a particular endpoint in the application that needs quite a bit of work. I'll post the code below. It accepts a POST request with ...
Thomas's user avatar
  • 1
1 vote
2 answers
82 views

I am working on a Tetris-like game in C and I have two functions, check_left_side_occupation and check_right_side_occupation, which are very similar. I want to refactor them to avoid code duplication, ...
Fyodor's user avatar
  • 185
-1 votes
1 answer
69 views

I have two methods that make a call to two different endpoints. The logic is exactly the same, however the API Endpoints have to be kept seperate. How would you refactor this? public List<...
Josip Domazet's user avatar
1 vote
1 answer
83 views

I am writing a tokenizer for files that have ignored preamble. The files are written in Markdown and there is a list of keywords in H1 titles that change the state of the parser. When an EOF is ...
pawkw's user avatar
  • 59
0 votes
1 answer
757 views

We have a pretty complex .EDMX in EF 6.0 which was designed using database-first approach (against SQL Server) back in 2014. It uses lot of features of EF like TPT, TPC, TPH, entity splitting, custom ...
Shantanu Gupta's user avatar
0 votes
1 answer
121 views

I am working on a large python project that contains many thousands of files, includes a mix of independent scripts (many with main functions) and common modules. Unfortunately, in my project there is ...
Kfir Ettinger's user avatar
0 votes
2 answers
75 views

I have this class @Data @NoArgsConstructor public class DittaIndividualeDTO implements Dati { private String denominazione; private String nome; private String cognome; private String ...
Lore's user avatar
  • 2,092
-1 votes
1 answer
147 views

I have the below Python code which checks whether the ssh host is up or not: `for hostname ,ipaddr in host_dict.items(): if tcp_conn.tcp_port_is_open(ipaddr, constants.TCP_PORT, ...
Saurav K's user avatar
2 votes
2 answers
74 views

I have a series of IF statements that I think should be automated into a shorter piece of code but I'm not sure how to go about doing it. Here's an example of the code: var supplier_kw_per_rack = 2; ...
Chuwa Feet's user avatar
0 votes
0 answers
66 views

Imagine 10 public classes in a folder/namespace. I want to make all of them internal. Any way to do this using Rider without modifying each file manually?
me.at.coding's user avatar
  • 18.5k
3 votes
3 answers
113 views

I have defined multiple functions where I search for a specific pydantic model in a list of pydantic models based on some attribute value. SocketIOUserSessionID = str RoomWithIndex = tuple[Room, ...
Slava Pasedko's user avatar
0 votes
0 answers
84 views

I have a method that works with both a list and a single element. Is there a concise way to accept either of these types (perhaps using generics, etc) public void write(MyInter elemen){ ...
Hamvy B's user avatar
0 votes
1 answer
65 views

I heve this function into two different component in React in order highlithe a value if it is equal to the one I am searching. const generateHighlightedText = useMemo(() => { const regex ...
Federico Giannini's user avatar
0 votes
1 answer
154 views

I have been working on a stock trading algorithm using an LSTM model. The algorithm fetches real-time data, makes predictions, and decides whether to buy or sell stocks based on the predicted price. ...
Sym Sym's user avatar
-1 votes
1 answer
45 views

I have a few validation cases which returns Optional.empty() or Optional.of(new Object()) How to return the first non empty result of this cases? on this method I want to return the first not empty ...
Александр Берестов's user avatar
0 votes
1 answer
65 views

I have code like that, I'm thinign if there is a better way to write it? create or replace FUNCTION "catalog"."checkUsers"(userID integer) RETURNS bool AS $$ DECLARE v1 ...
Bartek's user avatar
  • 1
1 vote
0 answers
35 views

This is more a code refactoring question and Im seeking suggestion on how best to improve code reusability. I have jobs that do similar things. When I say "similar" I mean: all jobs stream ...
Boss Man's user avatar
  • 769

1
2 3 4 5
160