🏠 Hem
Benchmarkar
📊 Alla benchmarkar 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List-applikationer 🎨 Kreativa fria sidor 🎯 FSACB - Ultimata uppvisningen 🌍 Översättningsbenchmark
Modeller
🏆 Topp 10 modeller 🆓 Gratis modeller 📋 Alla modeller ⚙️ Kilo Code
Resurser
💬 Promptbibliotek 📖 AI-ordlista 🔗 Användbara länkar
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.