🏠 होम
बेंचमार्क
📊 सभी बेंचमार्क 🦖 डायनासोर v1 🦖 डायनासोर v2 ✅ टू-डू लिस्ट ऐप्स 🎨 रचनात्मक फ्री पेज 🎯 FSACB - अल्टीमेट शोकेस 🌍 अनुवाद बेंचमार्क
मॉडल
🏆 टॉप 10 मॉडल 🆓 मुफ्त मॉडल 📋 सभी मॉडल ⚙️ किलो कोड
संसाधन
💬 प्रॉम्प्ट लाइब्रेरी 📖 एआई शब्दावली 🔗 उपयोगी लिंक
hard

Comprehensive Code Audit and Refactoring

#coding #security #refactoring

Requests a deep dive into code logic, security vulnerabilities, and performance optimization.

Act as a Principal Software Engineer and Security Auditor. Review the provided code snippet. First, identify any logical errors and potential runtime exceptions. Second, pinpoint security vulnerabilities (e.g., SQL injection, XSS) and suggest mitigation strategies. Third, evaluate the algorithmic complexity (Big O) and propose optimizations for better performance. Finally, provide a refactored version of the code that incorporates your fixes and adheres to SOLID principles.