🏠 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

Comprehensive Legacy Code Refactoring

#coding #architecture #software-design

Analyze a legacy codebase to identify smells and propose a SOLID-compliant refactoring strategy.

You are a Senior Software Architect. I will provide a snippet of legacy code. Your task is to: 1. Identify specific code smells (e.g., God Class, Long Method, DRY violations). 2. Identify violations of SOLID principles. 3. Propose a step-by-step refactoring strategy to modernize the code. 4. Provide the refactored code example in Python, ensuring you utilize design patterns where appropriate (such as Factory or Strategy patterns) to decouple logic.