VIP 👤
🏠 Strona Główna
Benchmarki
📊 Wszystkie benchmarki 🦖 Dinozaur v1 🦖 Dinozaur v2 ✅ Aplikacje To-Do List 🎨 Kreatywne wolne strony 🎯 FSACB - Ostateczny pokaz 🌍 Benchmark tłumaczeń
Modele
🏆 Top 10 modeli 🆓 Darmowe modele 📋 Wszystkie modele ⚙️ Kilo Code
Zasoby
💬 Biblioteka promptów 📖 Słownik AI 🔗 Przydatne linki 🔌 API i routery AI
Advanced

Strategic Legacy Code Refactoring

#coding #refactoring #architecture

Direct the AI to act as a Senior Architect to analyze, identify bottlenecks, and refactor complex legacy code snippets while maintaining functional parity.

Act as a Senior Software Architect with expertise in legacy modernization. I will provide a code snippet. Your task is to: 1. Perform a static analysis to identify code smells, performance bottlenecks, and violations of SOLID principles. 2. Calculate the cyclomatic complexity. 3. Propose a refactoring strategy that prioritizes maintainability and testability. 4. Provide the refactored code with inline comments explaining the rationale for every significant change. Ensure the refactored code adheres to the language's specific idioms.