38 prompts matching "refactoring"
You are a senior engineer leading a refactor. I will describe a module that need...
Write a comprehensive unit test suite for the following code. Use [testing frame...
Act as a senior software engineer doing archaeology on legacy code. I need to do...
Help me refactor a slow SQL query so it runs faster without changing the busines...
Below is a function that's grown to ~200 lines and does too much. Refactor it. R...
Refactor the following legacy JavaScript code to modern ES2024 standards: [PAST...
Please review the following code and provide a comprehensive analysis with refac...
I need help refactoring a legacy API handler without breaking behavior. Here is ...
Act as a senior software engineer reviewing duplicated business logic across mul...
Refactor the React component below by extracting state and side effects into cus...
I have a worksheet with nested IF formulas like: =IF(A1="Bronze",0.05,IF(A1="Sil...
Act as a senior engineer. I will paste a legacy function in [LANGUAGE]. Step 1: ...
You are a senior engineer guiding a safe refactor. Help me decompose a long, tan...
Act as a senior engineer. I'll paste a function that does too much — parses inpu...
Act as a code reviewer focused on readability. Below is a function that has grow...
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 that's grown into a god-function. Refactor it without changing...
I want to improve [CODE/MODULE — paste it or describe its shape]. The problems a...
Act as a staff engineer reviewing a refactor-or-ship decision. I need to add a f...
Refactor the following large class (>500 lines, multiple responsibilities) into ...
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...