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...
Below is a function that's grown to ~200 lines and does too much. Refactor it. R...
Help me refactor a slow SQL query so it runs faster without changing the busines...
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 ...
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 software engineer reviewing duplicated business logic across mul...
I have a worksheet with nested IF formulas like: =IF(A1="Bronze",0.05,IF(A1="Sil...
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 senior engineer. I will paste a legacy function in [LANGUAGE]. Step 1: ...
Act as a staff engineer reviewing a refactor-or-ship decision. I need to add a f...
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...
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'll paste a 400-line function that does too much. Help me refactor it. Walk thr...
I need to refactor [MODULE/FUNCTION] and there are no tests. Yes, I should add t...
You are an expert principal engineer doing code review. Review my code for bugs,...
Refactor the following large class (>500 lines, multiple responsibilities) into ...
I want to refactor [MODULE]. Here's the current state: [PASTE]. Help me justify ...