VIP 👤
🏠 होम
बेंचमार्क
📊 सभी बेंचमार्क 🦖 डायनासोर v1 🦖 डायनासोर v2 ✅ टू-डू लिस्ट ऐप्स 🎨 रचनात्मक फ्री पेज 🎯 FSACB - अल्टीमेट शोकेस 🌍 अनुवाद बेंचमार्क
मॉडल
🏆 टॉप 10 मॉडल 🆓 मुफ्त मॉडल 📋 सभी मॉडल ⚙️ किलो कोड
संसाधन
💬 प्रॉम्प्ट लाइब्रेरी 📖 एआई शब्दावली 🔗 उपयोगी लिंक 🔌 AI API और रूटर
advanced

Strategic Refactoring of a Monolithic Codebase

#refactoring #clean-code #testing #software-engineering

Analyze a provided legacy code scenario and outline a step-by-step refactoring plan to introduce modularity and testability without halting development.

You are a Lead Developer tasked with refactoring a 10-year-old monolithic e-commerce application. The codebase lacks tests, has circular dependencies, and uses global state extensively. Your goal is to outline a 6-month refactoring strategy. Do not rewrite from scratch. 1) Identify the immediate 'fire-fighting' measures to stabilize the code. 2) Propose a pattern for introducing the Strangler Fig pattern to extract services incrementally. 3) Explain how to introduce unit and integration tests without breaking existing functionality. 4) Detail a strategy for managing technical debt repayment alongside new feature development. 5) Provide a pseudocode example of how to break a specific circular dependency.