VIP 👤
🏠 ホーム
ベンチマーク
📊 すべてのベンチマーク 🦖 恐竜 v1 🦖 恐竜 v2 ✅ To-Doリストアプリ 🎨 クリエイティブフリーページ 🎯 FSACB - アルティメットショーケース 🌍 翻訳ベンチマーク
モデル
🏆 トップ10モデル 🆓 無料モデル 📋 すべてのモデル ⚙️ 🛠️ Kilo Code モード
リソース
💬 💬 プロンプトライブラリ 📖 📖 AI用語集 🔗 🔗 有用なリンク 🔌 AI API とルーター
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.