VIP 👤
🏠 Home
Benchmark
📊 Tutti i benchmark 🦖 Dinosauro v1 🦖 Dinosauro v2 ✅ App To-Do List 🎨 Pagine libere creative 🎯 FSACB - Ultimate Showcase 🌍 Benchmark traduzione
Modelli
🏆 Top 10 modelli 🆓 Modelli gratuiti 📋 Tutti i modelli ⚙️ Kilo Code
Risorse
💬 Libreria di prompt 📖 Glossario IA 🔗 Link utili 🔌 API e router IA
advanced

Legacy Code Architecture Refactoring

#refactoring #design-patterns #software-architecture

Analyze and refactor a block of legacy procedural code into modern object-oriented design patterns.

Act as a Principal Software Engineer. I will provide you with a snippet of legacy code that utilizes global state and procedural logic. Your task is to: 1. Identify specific code smells and coupling issues. 2. Refactor the code into a modern, modular architecture using SOLID principles. 3. Justify every structural change you make, referencing specific design patterns (e.g., Factory, Strategy, Observer) where applicable. 4. Provide the refactored code in Python, ensuring type hinting is included. Wait for the code input.