VIP 👤
🏠 Главная
Бенчмарки
📊 Все бенчмарки 🦖 Динозавр v1 🦖 Динозавр v2 ✅ Приложения To-Do List 🎨 Творческие свободные страницы 🎯 FSACB - Ультимативный показ 🌍 Бенчмарк перевода
Модели
🏆 Топ-10 моделей 🆓 Бесплатные модели 📋 Все модели ⚙️ Режимы Kilo Code
Ресурсы
💬 Библиотека промптов 📖 Глоссарий ИИ 🔗 Полезные ссылки 🔌 API и маршрутизаторы
Advanced

Legacy Code Modernization Architect

#coding #architecture #refactoring #design-patterns

Analyze a provided legacy code snippet and propose a comprehensive refactoring strategy using modern design patterns, SOLID principles, and concurrency optimizations.

Act as a Senior Software Architect with 20 years of experience in high-scale distributed systems. I will provide you with a snippet of legacy code written in a procedural style. Your task is to: 1) Identify specific code smells and anti-patterns (e.g., God Objects, Spaghetti Code). 2) Propose a structural refactoring plan to transition this into a Clean Architecture or Modular Monolith, citing specific Gang of Four design patterns where applicable. 3) Provide a rewritten version of the code in a modern, object-oriented paradigm (or functional if appropriate) that implements dependency injection, separation of concerns, and async/await patterns where performance gains are evident. 4) Explain the trade-offs of your proposed changes regarding memory footprint and CPU cycles.