Alert 🚨 🚨 🚨
Chatgpt prompts for programmers
1. Code Review
“Act as an experienced software engineer. Review the code snippet provided below. Highlight any potential issues, suggest improvements, and explain why your suggestions would make the code better. Focus on code efficiency and readability.”
2. Debugging Assistance
“Act as a senior developer. Help me debug the following code that is not working as expected. Describe the potential issues and suggest solutions. Explain the reasoning behind each suggestion.”
3. Algorithm Optimization
“Act as an algorithm expert. Optimize the following algorithm for better performance. Provide a step-by-step explanation of your optimization process. Focus on improving time and space complexity.”
4. API Integration
“Act as an API integration specialist. Guide me on how to integrate [specific API] into my project. Explain the steps, provide sample code, and mention any potential pitfalls to avoid.”
5. Database Design
“Act as a database architect. Help me design a database schema for [specific application]. Include key tables, relationships, and data types. Provide a brief explanation for each design choice.”
6. Security Best Practices
“Act as a cybersecurity expert. Provide best practices for securing a web application built with [specific technology]. Include tips on authentication, data encryption, and protecting against common vulnerabilities.”
7. Code Refactoring
“Act as a software engineer. Refactor the following code to improve its structure and readability. Explain each change and how it contributes to better code quality. Focus on removing redundancy and improving maintainability.”
8. Unit Testing
“Act as a test engineer. Write unit tests for the following function. Explain your testing approach and ensure that all edge cases are covered. Provide the sample code for the tests.”
9. Version Control
“Act as a version control expert. Explain how to use Git effectively in a collaborative project. Include best practices for branching, committing, merging, and resolving conflicts.”
10. Performance Tuning
“Act as a performance engineer. Provide tips on how to optimize the performance of a web application built with [specific technology]. Focus on both server-side and client-side optimizations.”
Source