🏠 Inicio
Pruebas de rendimiento
📊 Todos los benchmarks 🦖 Dinosaurio v1 🦖 Dinosaurio v2 ✅ Aplicaciones To-Do List 🎨 Páginas libres creativas 🎯 FSACB - Showcase definitivo 🌍 Benchmark de traducción
Modelos
🏆 Top 10 modelos 🆓 Modelos gratuitos 📋 Todos los modelos ⚙️ Kilo Code
Recursos
💬 Biblioteca de prompts 📖 Glosario de IA 🔗 Enlaces útiles
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.