-
MC
error TS7041: The containing arrow function captures the global value of ‘this‘.
Home >> Typescript >> Type Errors
PROGRAMMING
-
Fixing errors and bugs
-
Find errors and fix the code below: [code]
-
I am getting the error: [error]. Tell me how to fix it.- I am getting the error: Cannot get strings. key_one because property key_one is missing in undefined 1. 1 strings?: string_key: string: string. Tell me how to fix this.
-
I am working on the [Enter functionality], but my code is giving the wrong answer. Tell me what the error is. Here is my code. [code]- I am working on the CAGR calculation functionality, but my code is giving the wrong answer. Tell me what the error is. Here is my code.code
-
Act as a [Technology Name] developer, [write a detailed description]- Act as a C# developer, write code to read and print duplicate records from the provided CSV file.- Act as a JavaScript developer, write a program that checks the information on a form. Name and email are required, but address and age are not.- Act as a PhP developer, write a program that checks if a string contains a substring.
-
-
Code Generation
-
Generate a semantic and accessible HTML and (framework) CSS [UI component] consisting of [component parts]. The [component parts] should be [layout].- Generate a semantic HTML and Tailwind CSS "Contact Support" form consisting of the user's name, email, issue type, and message. The form elements should be stacked vertically and placed inside a card.
-
Write a JavaScript function. It accepts [input] and returns [output].- Write a JavaScript function. It accepts a full name as input and returns avatar letters.
-
The database has [comma-separated table names]. Write a [database] query to fetch [requirement].- The database has students and course tables. Write a PostgreSQL query to fetch a list of students who are enrolled in at least 3 courses.
-
Complete the code [code]
-
Find errors and fix the code below: [code]
-
Convert the below code snippet from [language/ framework] to [language/ framework]: [code snippet]- Convert the below code snippet from JavaScript to TypeScript
-
-
Coding Questions
-
How to [action] in [language]?- How to merge dictionaries in Python?- How to join two datasets in Python?
-
What is the difference between [concept 1] and [concept 2] in [language]?- What is the difference between list and dictionaries in Python?- What is the difference between OPP and functional programing?
-
Act as a [Technology Name] developer. [Write a detailed description]- Act as a Python developer. Write code to read and print duplicate records from the provided CSV file.- Act as a JavaScript Developer, Write a program that checks the information on a form. Name and email are required, but address and age are not.- Act as a JavaScript Developer, Write a program that checks if a string contains a substring.
-
-
Advice
-
I want to learn [language] for [field]. Create a roadmap to learn [language]- I want to learn Python for data science. Create a roadmap to learn Python- I want to learn Javascript for web development. Create a roadmap to learn it
-
I want to automate [app]. Provide steps to [task] with [language]- I want to automate Gmail. Provide steps to sending emails with Python- I want to automate Tinder. Provide steps to swipe right with Python
-
Simulate a job interview for a [position] by asking and answering questions as if you are a potential employer and I'm the candidate. Consider that [details]
-
-
Web Development
-
I want to build a [type of web]. Can you generate some HTML for my website- I want to build a job board website. Can you generate some HTML for my website- I want to build a price comparison website. Can you generate some HTML for my website
-
Additional steps:- Can you center the content in the HTML page, add a line break between the inputs and add an image on the logo?- Add CSS to customize the size of the logo image
-
Develop an architecture and code for a [website description] website with JavaScript.
-
I want to implement a sticky header on my website. Can you provide an example of how to do that using CSS and JavaScript?
-
Please continue writing this code for JavaScript: [code]
-
I need to create a REST API endpoint for my web application. Can you provide an example of how to do that using Node.js and Express?
-
I want to implement server-side rendering for my React application. Can you provide an example of how to do that using Next.js?
-
I’m making a website for a small business [Business description]. I need ideas on how to structure the website using WordPress.
-
Generate a list of 10 relevant skills and experiences for a web developer job application.
-
Provide a CSS file structure for [specific project].
-
Suggest a CSS preprocessor for [specific project].
-
Recommend a CSS framework for [specific project].
-
Explain the difference between grid and flexbox layouts and recommend which one to use for [specific project].
-
Suggest ways to improve CSS performance for [specific project].
-
I want you to act as a CSS expert and recommend a CSS framework for [project name].
-
I want you to act as a CSS consultant and provide a list of best practices for cross-browser compatibility.
-
-
UI
-
Suggest me some ideas for UI wireframes for [specific project].
-
Suggest a color scheme for [specific UI element].
-
Recommend a UI framework for [specific project].
-
Explain the difference between responsive and adaptive design and recommend which one to use for [specific project].
-
Suggest ways to improve UI accessibility for [specific project].
-
I want you to act as a UI designer and suggest a color scheme for [application name].
-
I want you to act as a UI expert and provide best practices for responsive design for [platform name].
-
-
UX
-
Generate examples of UI design requirements for a [mobile app]
-
Generate a typography style guide for a [mobile application] in excel format.
-
What are the UI cases that need to be considered when designing a [burger menu]
-
As a designer, what are some gamification techniques I can add to a [language learning app]
-
How can I design a [law firm website] in a way that conveys [trust and authority]
-
Create a text-based excel sheet to input your copy suggestions. Assume you have 3 members in your UX writing team
-
-
Automation
-
Database Management
-
Explain the difference between SQL and NoSQL databases and recommend which one to use for [specific use case].
-
Provide a database schema for [specific project].
-
Recommend ways to optimize database performance for [specific use case].
-
Explain the concept of database normalization and recommend a normalization level for [specific project].
-
Suggest a database backup and recovery strategy for [specific project].
-
I want you to act as a database administrator and suggest ways to optimize the database for [database name] with [number] tables.
-
I want you to act as a database consultant and provide a list of best practices for [database type] security.
-
-
Design Patterns Help
-
Suggest [number] design patterns for [specific use case].
-
Recommend a design pattern for [specific problem].
-
Provide examples of when to use [specific design pattern].
-
Explain the differences between [two design patterns] and recommend which one to use for [specific use case].
-
List the advantages and disadvantages of [specific design pattern] and recommend whether to use it or not for [specific use case].
-
Can you provide an overview of the most commonly used design patterns in [programming language/technology/framework] and suggest a suitable one for [specific task]?
-
Please suggest a design pattern for optimizing [specific functionality] in my [programming language/technology/framework] code.
-
I want you to act as a design pattern expert and recommend a suitable pattern for [specific task] in [programming language/technology/framework].
-
CODE REFACTORING
-
Code Refactoring Prompts
-
Rewrite this function to make it more efficient: [code]
-
Can you update this code to use the latest version of this library? [code]
-
Convert this code to use a different data structure: [code]
-
Simplify this block of code: [code]
-
Add error handling to this function: [code]
-
Refactor this code to make it more readable: [code]
-
Modify this code to make it more modular: [code]
-
Make this code compatible with other languages: [code]
-
Remove unnecessary code from this function: [code]
-
Improve the performance of this code: [code]
-
Review my code for security vulnerabilities and suggest any fixes: [code]
-
Can you provide feedback on my [programming language/technology/framework] code and suggest some improvements? [code]
-
I want you to act as a code reviewer and review my [programming language/technology/framework] code for [specific task]. [code]
-
-
Debugging
-
Debug this code: [code]
-
Give me code with errors in [programing language] for practicing debugging.
-
What could be causing [specific error message] in this code: [code]
-
How can I troubleshoot [specific issue] in my code: [code]
-
What are some debugging tools or techniques for [programming language]?
-
Help me diagnose and fix [specific problem] in my code: [code]
-
Explain how to use breakpoints and debugging statements in [programming language].
-
What are some common techniques for troubleshooting [specific issue] in [programming language/technology/framework]?
-
I want you to act as a debugger and help me fix [specific error/bug] in my code.
-
-
Predicting Errors
-
Predict any potential errors or bugs in my code related to [specific functionality or module]: [code]
-
What could be causing [specific issue] in my code and how to fix it: [code]
-
Explain how to prevent [specific type of error or bug] in my code: [code]
-
Help me anticipate any issues or errors that might arise during [specific phase of software development].
-
What are some common errors or bugs in [specific programming language or framework] and how to avoid them?
-
I want you to act as a fortune teller and predict potential errors in my [programming language/technology/framework] code for [specific task].
-
DATA SCIENCE
-
Data Science Questions
-
Where can I find data for my [describe project]?- Where can I find data for my credit card fraud detection project?- Where can I find data for my customer churn prediction project?
-
How to [action] my dataset?- How to oversample/undersample my dataset?- How to split my dataset into train and test sets with Python
-
Can you help me train a [model name]. Please write the code to tune the hyperparameters.
-
-
Best Practices
-
Can you [best practice] my code? [code]- Can you optimize the following Python code? code- Can you simplify the following R code? code- Can you document my code? code- Can you check for readability in my code? code
-
I have a dataset of [describe dataset]. Please write code for data visualization and exploration.
-
I need a dataset that has x rows and y columns: [insert column names].
-
I have a time series dataset [describe dataset]. Please build a machine learning model that predicts [target variable]. Please use [time range] as train and [time range] as validation.
-
I want you to act as a data scientist and code for me. I have a dataset of [describe dataset]. Please build a machine learning model that predict [target variable]
-
I want you to act as an automatic machine learning (AutoML) bot using TPOT for me. I am working on a model that predicts [...]. Please write python code to find the best classification model with the highest AUC score on the test set.
-
-
Automate Data Science Tasks
-
Data Science Workflow
-
Web scrape [website] using [language] and [library]
-
Act as a fake data generator. Create a dataset that has X rows and Y columns: [column1, column2, ...]
-
I have a dataset of [describe dataset], build a machine learning model that predits [target variable]
-
I have trained a [model name]. Write code to turn the hyperparameters
-
I have trained a [model name]. Write code to find the most important features in the model
-
PROGRAMMING
-
Find errors and fix the code below: [code]
-
I am getting the error: [error]. Tell me how to fix it.
-
I am working on the [Enter functionality], but my code is giving the wrong answer. Tell me what the error is. Here is my code. [code]
-
Act as a [Technology Name] developer, [write a detailed description]
-
Generate a semantic and accessible HTML and (framework) CSS [UI component] consisting of [component parts]. The [component parts] should be [layout].
-
Write a JavaScript function. It accepts [input] and returns [output].
CODE REFACTORING
-
Rewrite this function to make it more efficient: [code]
-
Can you update this code to use the latest version of this library? [code]
-
Convert this code to use a different data structure: [code]
-
Simplify this block of code: [code]
-
Add error handling to this function: [code]
-
Refactor this code to make it more readable: [code]
❅
❄
❅
❆
❅
❆
❄
❆
❅
❄
❄
❆
Waiting for processing to complete