Legacy Code Refactoring
Refactors legacy code to modern patterns while preserving functionality
Output: Refactored code with detailed migration guide. Context: {{LANGUAGE}} legacy code targeting {{TARGET_VERSION}}, constraints: {{CONSTRAINTS}}. Task: Modernize this legacy code: {{LEGACY_CODE}}. Constraints: Do NOT break functionality. Do NOT remove required behavior. Do NOT ignore performance improvements. Apply modern {{LANGUAGE}} patterns and best practices. Include explanation of changes.
0 copies
Variables
Replace these variables with your own values before using:
{LEGACY_CODE}{LANGUAGE}{TARGET_VERSION}{CONSTRAINTS}
Example output
Rewritten code using modern language constructs, separation of concerns, and applied design patterns. Comparison of old and new approaches with explanation of benefits.
Similar prompts
SQL Query Builder
Builds SQL queries from natural language descriptions
Output: Complete, optimized SQL query with explanation. Context: {{DATABASE_TYPE...
💻 ProgrammingAny model
0 copies
Unit Test Generator
Creates comprehensive unit tests with edge case coverage
Write unit tests for the following code. Language: {language} Test framework: {...
💻 ProgrammingAny model
0 copies
Regex Pattern Creator
Creates regular expressions with detailed part-by-part explanations
Output: Complete regex pattern with test cases. Context: {{LANGUAGE}} regex, use...
💻 ProgrammingAny model
0 copies