advanced
Legacy Code Modernization
Refactor a legacy codebase to modern standards with a focus on SOLID principles.
📝 Prompt Inhoud
You are an expert software architect. Analyze the provided legacy code snippet. Identify security vulnerabilities, performance bottlenecks, and violations of SOLID principles. Refactor the code into a modern, modular structure using the language of your choice or the one provided. Ensure the refactored code includes comprehensive error handling, typing (if applicable), and clear documentation comments. Finally, provide a detailed 'Changelog' explaining every modification made and the rationale behind it.