ai Prompts for Coding

Web Development Prompts for ChatGPT
🌐
  1. What are some tips for making a website look great on any device?
  2. Write a Python script for XYZ
  3. Please write me a detailed code to build an XYZ
  4. Please give me a guide on how to build an app that (function)
  5. Write the code for a chrome extension that (function)
  6. What is the HTML code for (purpose or function?
  7. Please provide a JavaScript code for XYZ
  8. Can you break down the difference between what happens on the server and what happens on the user's device when a website loads?
  9. Why do people use CSS preprocessors like Sass and Less?
  10. What's the deal with single-page applications and how do they differ from traditional websites?
  11. Can you tell me about progressive web apps and why they're becoming popular?
  12. Can you explain the difference between TTTML, XIITMI, and IITMIS?
  13. What are some of the security risks developers need to be aware of when building a website?
  14. Can you give a rundown on how the Document Object Model (DOM) works and its role in web development?
  15. What's the appeal of using a CSS framework like Bootstrap?
  16. Can you explain what AIAX is and how it's used in web development?
  17. What are the pros and cons of using a Content Management System (CMS) for website?
  18. Can you clear up the difference between HTTP and HTTPS and why HTTPS is important?
  19. Can you give an overview of the difference between front-end and back-cud web development?
  20. How does REST play a role in web development and what does it do?
  21. Can you describe the process of optimizing a website for search engines?
  22. Can you talk about the various ways to store and retrieve data for a website, like databases and APIs?
  23. Why is accessibility important in web design and bow can it be achieved?
  24. Can you give a rundown of the benefits and drawbacks of using JavaScript frameworks like Angular or React?
  25. How does making sure a website worlos on different browsers impact web development and what can be done happen?
  26. Can you compare and contrast the pros and cons of sing a web host versas hosting a website yourself?
  27. Can you explain the concept of modular design in web development and why it's important?
  28. How does using version control, such as Gist, impact the development process?
  29. Can you discuss the role of WebAssembly in weh development and its benefits?
  30. What is the importance of testing and debugging in web development and what tools are commonly used?
  31. Can you talk about the challenges and benefits of implementing e-commerce functionality on a website?

Code Completion
📕

Code completion:

  1. Complete the [language] code to parse [file format] and extract [information]: [code snippet].
  2. Finish the [language] implementation of [design pattern] for [use case]: [code snippet].
  3. Fill in the missing [language] code to implement a caching mechanism for the following function: [code snippet].
  4. Complete the [language] code to convert [data structure] into [output format]: [code snippet].
  5. Finish the [language] implementation of a multithreading solution for [problem]: [code snippet].

Bug Detection
🐞

Bug detection:

  1. Locate any logic errors in the following [language] code snippet: [code snippet].
  2. Identify potential performance issues in the given [language] code: [code snippet].
  3. Find any resource leaks in the following [language] code and suggest fixes: [code snippet].
  4. Check for potential deadlock issues in the given [language] code: [code snippet].
  5. Review the following [language] code for potential SQL injection vulnerabilities: [code snippet].

Code Review
  1. Check the following [language] code for proper logging and monitoring practices: [code snippet].
  2. Review the given [language] code for potential scalability issues: [code snippet].
  3. Assess the test coverage of the following [language] code: [code snippet].
  4. Evaluate the given [language] code for compatibility with [platform or technology]: [code snippet].
  5. Analyze the given [language] code for code smells and suggest improvements: [code snippet].

API documentation generation
🧑🏾‍💻
  1. Create an API documentation template for the following [language] code: [code snippet].
  2. Generate a user guide for the given [language] RESTful API: [code snippet].
  3. Document the functionality and usage of the following [language] command-line tool: [code snippet].
  4. Create an API reference for the given [language] library or framework: [code snippet].
  5. Produce a tutorial for using the following [language] API with example code: [code snippet].

Query optimization
📝
  1. Optimize the following GraphQL query for better performance: [GraphQL query].
  2. Analyze the given SQL query for proper indexing: [SQL query].
  3. Suggest improvements to the following database schema for better query performance: [schema description].
  4. Compare the performance of the given NoSQL query using different NoSQL databases (e.g., MongoDB, Cassandra, Couchbase): [NoSQL query].

Series query optimization

  1. Optimize the following database query for a time-series database (e.g., InfluxDB, TimescaleDB): [time-series query].
  2. Analyze the given time-series query for any potential performance issues: [time-series query].
  3. Suggest indexing or partitioning strategies for the following time-series database query: [time-series query].