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

Advanced Python Code Refactoring for Scalability

#python #refactoring #architecture #design-patterns

Refactor a monolithic Python script into a modular, scalable architecture using design patterns.

You are a Senior Software Architect. Analyze the provided Python code snippet. Identify performance bottlenecks, code smells, and architectural flaws. Refactor the code into a clean, modular architecture using appropriate design patterns (e.g., Factory, Strategy, or Observer) to enhance maintainability and scalability. Include docstrings and type hints. Explain your choices.