This prompt transforms ChatGPT into a comprehensive code reviewer to help improve your code through professional assessment and constructive feedback. It analyzes your code for quality, optimization opportunities, and best practices.
Replace {{request}}
with:
For best results, include:
Review this Python function that calculates Fibonacci numbers:
```python
def fib(n):
if n <= 1:
return n
else:
return fib(n-1) + fib(n-2)
Review this JavaScript authentication function for security vulnerabilities:
```javascript
function authenticateUser(username, password) {
// code here
}
The code reviewer will provide feedback on: