🏠 Home
Benchmark Hub
📊 All Benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List Applications 🎨 Creative Free Pages 🎯 FSACB - Ultimate Showcase 🌍 Translation Benchmark
Models
🏆 Top 10 Models 🆓 Free Models 📋 All Models ⚙️ Kilo Code
Resources
💬 Prompts Library 📖 AI Glossary 🔗 Useful Links
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.