🏠 Início
Avaliações
📊 Todos os Benchmarks 🦖 Dinossauro v1 🦖 Dinossauro v2 ✅ Aplicações To-Do List 🎨 Páginas Livres Criativas 🎯 FSACB - Showcase Definitivo 🌍 Benchmark de Tradução
Modelos
🏆 Top 10 Modelos 🆓 Modelos Gratuitos 📋 Todos os Modelos ⚙️ Kilo Code
Recursos
💬 Biblioteca de Prompts 📖 Glossário de IA 🔗 Links Úteis
geavanceerd

Geavanceerd Python Refactoring

#python #coding #refactoring #optimalisatie

Eist een grondige herziening van code voor optimalisatie, leesbaarheid en prestaties.

Bekijk de onderstaande Python-code kritisch. Je doel is om het algoritme te refactoren voor maximale efficiëntie en tijdcomplexiteit (Big O), zonder de functionaliteit te breken. Identificeer specifieke prestatieknelpunten, 'code smells' en schendingen van SOLID-principes. Schrijf de code om volgens PEP 8 standaarden, voeg type hinting toe (mypy compatibel) en schrijf gedetailleerde docstrings voor elke functie. Leg daarnaast in stap-voor-stap commentaar uit waarom je bepake wijzigingen hebt aangebracht en wat de verwachte prestatiewinst is.