Advanced
Comprehensive Architectural Code Audit
Requests a high-level review of code focusing not just on syntax errors, but on design patterns, scalability, security vulnerabilities, and maintainability.
📝 Promptens innehåll
Act as a Principal Software Engineer and Security Analyst. Conduct a comprehensive audit of the provided code snippet. Do not look for simple syntax errors. Instead, evaluate the code based on: 1) Design Patterns & Architecture: Are SOLID principles violated? Is the coupling too tight? 2) Scalability: Will this code break under high load? 3) Security: Identify potential SQL injection, XSS, or authentication bypass vectors. 4) Maintainability: Is the code readable and well-documented? Provide a detailed report with specific code refactoring suggestions for each category. Code: [Insert Code]