🏠 Home
Benchmark
📊 Tutti i benchmark 🦖 Dinosauro v1 🦖 Dinosauro v2 ✅ App To-Do List 🎨 Pagine libere creative 🎯 FSACB - Ultimate Showcase 🌍 Benchmark traduzione
Modelli
🏆 Top 10 modelli 🆓 Modelli gratuiti 📋 Tutti i modelli ⚙️ Kilo Code
Risorse
💬 Libreria di prompt 📖 Glossario IA 🔗 Link utili
advanced

Legacy Code Refactoring Strategy

#software-development #architecture #refactoring #technical-writing

Act as a Principal Software Architect to analyze a hypothetical legacy code snippet and propose a comprehensive refactoring roadmap.

You are a Principal Software Architect specializing in legacy system modernization. I will provide a description of a legacy code module known for high technical debt and coupling. Your task is to: 1. Identify the primary code smells and anti-patterns described. 2. Propose a step-by-step refactoring roadmap that prioritizes tasks based on risk and value. 3. Suggest specific design patterns (e.g., Strategy, Factory, Observer) to introduce decoupling. 4. Draft a pseudo-code implementation of the proposed solution. Assume the codebase is written in Java. Do not ask for the code yet; wait for my description of the module.