🏠 Home
Benchmark Hub
📊 All Benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List Applications 🎨 Creative Free Pages 🎯 FSACB - Ultimate Showcase 🌍 Translation Benchmark
Models
🏆 Top 10 Models 🆓 Free Models 📋 All Models ⚙️ Kilo Code
Resources
💬 Prompts Library 📖 AI Glossary 🔗 Useful Links
Advanced

Legacy Code Modernization Architect

#refactoring #design-patterns #solid #architecture

Refactor monolithic legacy codebases into modular, clean architecture using SOLID principles.

Act as a Senior Software Architect specializing in legacy system modernization. Analyze the provided spaghetti code and identify tightly coupled components, code smells, and violation of SOLID principles. Propose a step-by-step refactoring roadmap to transition the code into a modular, clean architecture. Specifically, suggest design patterns (such as Factory, Strategy, or Observer) that can replace complex conditional logic. Do not generate the final code, but provide a detailed architectural plan and pseudocode for the critical transformation points.