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

Legacy Code Refactoring to SOLID Principles

#refactoring #coding #clean-code #software-design

A prompt to refactor complex legacy code snippets into clean, maintainable code adhering to SOLID principles with type hinting.

You are a Principal Software Engineer specializing in code modernization. Analyze the following legacy code snippet. Identify code smells, violations of SOLID principles, and potential performance bottlenecks. Refactor the code to improve readability, maintainability, and extensibility. Ensure the refactored code includes comprehensive type hinting, error handling, and docstrings. Provide a diff-style comparison explaining exactly why each change was made.