🏠 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
Gevorderd

SOLID Principes Toepassen

#python #software-architectuur #clean-code

Refactor een monolithische Python-functie naar een modulaire architectuur volgens SOLID-principes.

Je bent een senior software architect. Analyseer de onderstaande legacy Python-functie die verantwoordelijk is voor orderverwerking. Herschrijf de code om te voldoen aan de SOLID-principes (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion). Zorg voor type hinting, uitgebreide docstrings en error handling. Leg in commentaar stap voor stap uit welke wijzigingen je hebt aangebracht en waarom.