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:
Rewritten code using modern language constructs, separation of concerns, and applied design patterns. Comparison of old and new approaches with explanation of benefits.