42 prompts matching "refactor"
Act as a senior software engineer doing archaeology on legacy code. I need to do...
You are a senior engineer leading a refactor. I will describe a module that need...
I need help refactoring a legacy API handler without breaking behavior. Here is ...
Help me refactor a slow SQL query so it runs faster without changing the busines...
Act as a senior software engineer reviewing duplicated business logic across mul...
Below is a function that's grown to ~200 lines and does too much. Refactor it. R...
Act as a financial analyst. Help me build a pivot table from [DATA RANGE] (colum...
You are a senior engineer guiding a safe refactor. Help me decompose a long, tan...
Refactor the React component below by extracting state and side effects into cus...
Refactor the following legacy JavaScript code to modern ES2024 standards: [PAST...
Act as a senior engineer. I will paste a legacy function in [LANGUAGE]. Step 1: ...
Act as a senior engineer. I'll paste a function that does too much — parses inpu...
Help me write a pull request description for [CHANGE I MADE]. Context: [WHAT BUG...
Act as a code reviewer focused on readability. Below is a function that has grow...
I'm looking at a workaround in our codebase that was added [N months/years ago] ...
I have a nested IF formula that's grown unmaintainable. Rewrite it using SWITCH,...
I have a function that's grown too long and hard to test. Help me refactor it st...
I'll paste a function. Identify every responsibility it currently has (parsing, ...
I have a function where the tests pass but production reports it's behaving wron...
I have a function that's grown into a god-function. Refactor it without changing...
I want to add a feature, and the code I'd touch is messy enough that I'm tempted...
I want to refactor [MODULE]. Here's the current state: [PASTE]. Help me justify ...
I need to refactor [MODULE/FUNCTION] and there are no tests. Yes, I should add t...
I want to improve [CODE/MODULE — paste it or describe its shape]. The problems a...