Prompts for Coding
Web Development Prompts for ChatGPT
🌐
- What are some tips for making a website look great on any device?
- Write a Python script for XYZ
- Please write me a detailed code to build an XYZ
- Please give me a guide on how to build an app that (function)
- Write the code for a chrome extension that (function)
- What is the HTML code for (purpose or function?
- Please provide a JavaScript code for XYZ
- Can you break down the difference between what happens on the server and what happens on the user's device when a website loads?
- Why do people use CSS preprocessors like Sass and Less?
- What's the deal with single-page applications and how do they differ from traditional websites?
- Can you tell me about progressive web apps and why they're becoming popular?
- Can you explain the difference between TTTML, XIITMI, and IITMIS?
- What are some of the security risks developers need to be aware of when building a website?
- Can you give a rundown on how the Document Object Model (DOM) works and its role in web development?
- What's the appeal of using a CSS framework like Bootstrap?
- Can you explain what AIAX is and how it's used in web development?
- What are the pros and cons of using a Content Management System (CMS) for website?
- Can you clear up the difference between HTTP and HTTPS and why HTTPS is important?
- Can you give an overview of the difference between front-end and back-cud web development?
- How does REST play a role in web development and what does it do?
- Can you describe the process of optimizing a website for search engines?
- Can you talk about the various ways to store and retrieve data for a website, like databases and APIs?
- Why is accessibility important in web design and bow can it be achieved?
- Can you give a rundown of the benefits and drawbacks of using JavaScript frameworks like Angular or React?
- How does making sure a website worlos on different browsers impact web development and what can be done happen?
- Can you compare and contrast the pros and cons of sing a web host versas hosting a website yourself?
- Can you explain the concept of modular design in web development and why it's important?
- How does using version control, such as Gist, impact the development process?
- Can you discuss the role of WebAssembly in weh development and its benefits?
- What is the importance of testing and debugging in web development and what tools are commonly used?
- Can you talk about the challenges and benefits of implementing e-commerce functionality on a website?
Code Completion
📕Code completion:
- Complete the [language] code to parse [file format] and extract [information]: [code snippet].
- Finish the [language] implementation of [design pattern] for [use case]: [code snippet].
- Fill in the missing [language] code to implement a caching mechanism for the following function: [code snippet].
- Complete the [language] code to convert [data structure] into [output format]: [code snippet].
- Finish the [language] implementation of a multithreading solution for [problem]: [code snippet].
Bug Detection
🐞Bug detection:
- Locate any logic errors in the following [language] code snippet: [code snippet].
- Identify potential performance issues in the given [language] code: [code snippet].
- Find any resource leaks in the following [language] code and suggest fixes: [code snippet].
- Check for potential deadlock issues in the given [language] code: [code snippet].
- Review the following [language] code for potential SQL injection vulnerabilities: [code snippet].
Code Review
✅- Check the following [language] code for proper logging and monitoring practices: [code snippet].
- Review the given [language] code for potential scalability issues: [code snippet].
- Assess the test coverage of the following [language] code: [code snippet].
- Evaluate the given [language] code for compatibility with [platform or technology]: [code snippet].
- Analyze the given [language] code for code smells and suggest improvements: [code snippet].
API documentation generation
🧑🏾💻- Create an API documentation template for the following [language] code: [code snippet].
- Generate a user guide for the given [language] RESTful API: [code snippet].
- Document the functionality and usage of the following [language] command-line tool: [code snippet].
- Create an API reference for the given [language] library or framework: [code snippet].
- Produce a tutorial for using the following [language] API with example code: [code snippet].
Query optimization
📝- Optimize the following GraphQL query for better performance: [GraphQL query].
- Analyze the given SQL query for proper indexing: [SQL query].
- Suggest improvements to the following database schema for better query performance: [schema description].
- Compare the performance of the given NoSQL query using different NoSQL databases (e.g., MongoDB, Cassandra, Couchbase): [NoSQL query].
Series query optimization
- Optimize the following database query for a time-series database (e.g., InfluxDB, TimescaleDB): [time-series query].
- Analyze the given time-series query for any potential performance issues: [time-series query].
- Suggest indexing or partitioning strategies for the following time-series database query: [time-series query].