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

Refactor Monolithic Function

#refactoring #python #clean-code #solid

Break down a large legacy function into smaller, testable units using SOLID principles.

You are a Senior Python Developer. Given the following monolithic function responsible for data validation, transformation, and database insertion, refactor it into a clean class-based structure. Apply the Single Responsibility Principle to separate concerns into distinct methods. Add comprehensive type hints and docstrings following the Google Python Style Guide. Ensure the refactored code is easily testable with mock dependencies.