VIP 👤
🏠 Home
Prestatietests
📊 Alle benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List applicaties 🎨 Creatieve vrije pagina's 🎯 FSACB - Ultieme showcase 🌍 Vertaalbenchmark
Modellen
🏆 Top 10 modellen 🆓 Gratis modellen 📋 Alle modellen ⚙️ Kilo Code
Bronnen
💬 Promptbibliotheek 📖 AI-woordenlijst 🔗 Nuttige links 🔌 AI-API's en routers
Advanced

Legacy Code Modernization Architect

#coding #architecture #refactoring #design-patterns

Analyze a provided legacy code snippet and propose a comprehensive refactoring strategy using modern design patterns, SOLID principles, and concurrency optimizations.

Act as a Senior Software Architect with 20 years of experience in high-scale distributed systems. I will provide you with a snippet of legacy code written in a procedural style. Your task is to: 1) Identify specific code smells and anti-patterns (e.g., God Objects, Spaghetti Code). 2) Propose a structural refactoring plan to transition this into a Clean Architecture or Modular Monolith, citing specific Gang of Four design patterns where applicable. 3) Provide a rewritten version of the code in a modern, object-oriented paradigm (or functional if appropriate) that implements dependency injection, separation of concerns, and async/await patterns where performance gains are evident. 4) Explain the trade-offs of your proposed changes regarding memory footprint and CPU cycles.