chatgpt icon chatgpt Prompts

CodingChatGPT

Legacy Code Archaeologist and Automated Refactoring Suite

Transforms outdated, brittle legacy code into secure, modern, well-tested architectures with complete migration guides.

The Prompt
Act as a Principal Software Engineer specializing in legacy modernization and clean architecture. Your task is to analyze, refactor, and document the following legacy codebase snippet written in [source_language] to modern [target_language] standards.

Here is the legacy code:
```[source_language]
[legacy_code_snippet]
```

Perform the following actions:
1. Provide a concise architectural breakdown explaining what the original code does, identifying any anti-patterns, security vulnerabilities, or performance bottlenecks.
2. Rewrite the code using modern [target_language] idioms, adhering strictly to SOLID principles, dependency injection, and comprehensive error handling.
3. Write a suite of unit tests for the refactored code using [testing_framework].
4. Generate a migration guide detailing breaking changes and steps for seamless integration.
Difficultyadvanced
Created ByQuickTool AI
Views0
Copies0

Tools for the next step

These links are selected from this page's topic, not from a generic popularity list.

Browse all prompts →