🏠 होम
बेंचमार्क
📊 सभी बेंचमार्क 🦖 डायनासोर v1 🦖 डायनासोर v2 ✅ टू-डू लिस्ट ऐप्स 🎨 रचनात्मक फ्री पेज 🎯 FSACB - अल्टीमेट शोकेस 🌍 अनुवाद बेंचमार्क
मॉडल
🏆 टॉप 10 मॉडल 🆓 मुफ्त मॉडल 📋 सभी मॉडल ⚙️ किलो कोड
संसाधन
💬 प्रॉम्प्ट लाइब्रेरी 📖 एआई शब्दावली 🔗 उपयोगी लिंक
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.