Software Development Task - Code Review ChatGPT Cheat Sheet
Home
Automated Code Review Suggestions
ChatGPT can be used to formulate suggestions or ask relevant questions about the code under review.
Examples:
{{code snippet}}
be improved?{{code snippet}}
?{{function/module/class/method}}
shown in the{{code snippet}}
?Testing Suggestions
ChatGPT can provide input about which tests would be beneficial for specific pieces of code.
Examples:
{{code snippet}}
?{{function/method}}
?{{module/class}}
?Bug Detection
ChatGPT can help identify potential errors or bugs in the code.
Examples:
{{code snippet}}
?{{code snippet}}
, what could be the issue?{{function}}
that might cause it to break?Code Optimization
ChatGPT can offer suggestions on how to optimize code for improvement in performance.
Examples:
{{code snippet}}
be optimized for better performance?{{code logic}}
?{{database query}}
be optimized?Coding Best Practices
ChatGPT can be used to suggest coding best practices or coding standards.
Examples:
{{code snippet}}
?{{code snippet}}
following our coding standards?{{code snippet}}
to make it more understandable and follow best practices?Code Explanation
ChatGPT can explain a given piece of code, how it works, and what it does.
Examples:
{{code snippet}}
do?{{function/method}}
works?{{class/module}}
in the program?