Adem's Dev Journey

Useful ChatGPT Prompts

06 Feb 2023 | 4 mins read

🔊 PLAY THIS ARTICLE

ChatGPT is a popular chatbot that can be used to generate realistic conversations. It is based on the GPT-3 language model, which is a state-of-the-art neural network that can be used to generate text.

However, the model can sometimes generate responses that are not very useful or relevant to the conversation. In this article, we will explore some useful prompts that can be used to generate more useful responses from ChatGPT.

What is this {Function name} doing?

Raise an exception if the authentication is wrong

Rewrite this function following python conventions {enter function}

Rewriting code using idiomatic constructs {Enter coder}

Simplify this complex code {Enter code}

Write a few test cases to ensure this {Function name} is correct.

What is the more efficient way to implement {function name}

Translate this code from javascript to python {Enter code}

write the documentation for a piece of code {Enter code}

Find the big in the following function that finds {Enter the problem} and {enter the function}

What is the function for {enter problem}

What will be the following code output {Enter the code}

I want you to act as a javascript console. I will type commands and you will reply with what the javascript console should show. I want you to only reply with the terminal output inside one unique code block, and nothing else.

{provide details of an app} come up with creative ways to improve its user experie{Provide information on}how data is stored and shared, and it will be your job to develop strategies for protecting this data from malicious actors. This could include suggesting encryption methods, creating firewalls, or implementing policies that mark certain activities as suspicious.

Your job is to test the functionality and performance of the software to ensure it meets the required {enter how requirements} standards. {enter code}

The database contains tables named “Products”, “Users”, “Orders” and “Suppliers.” I will type queries, and you will reply with what the terminal shows. I want you to reply with a table of query results in a single code block.

I will provide you with basic steps of an app functionality {enter steps} and you will come up with an engaging article on how to do those basic steps.

{enter python code} to execute this and give only output

I would like you to act as an SVG designer. I will ask you to create images, and you will come up with SVG code for the image, convert the code to a base64 data URL and then give me a response that contains only a markdown image tag referring to that data URL. Do not put the markdown inside a code block.

I will provide some specific information about web app requirements, and it will be your job to develop an architecture and code for developing a secure app with Golang and Angular. {enter web app requirements}

I want you to act as a Senior Frontend developer. I will describe a project details you will code project with these tools: Create React App, yarn, Ant Design, List, Redux Toolkit, createSlice, thunk, axios. You should merge files in single index.js file

{type commands} reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block

Act as a storyteller. Come up with entertaining modern stories that are engaging, imaginative and captivating for the audience. Stories should have a start, middle, and end. They should also push my narrative.

Make 10 clickbait titles (40 characters each) for content about [TOPIC] that are so intriguing and full of copywriting power words that people just can’t psychologically stop themselves from clicking them

Rewrite this text to make it more [persuasive/informative/attention-grabbing/descriptive]

Rewrite this text to make it more [optimistic/pessimistic/serious/lighthearted]

Rewrite this text to make it appeal to a [younger/older/beginner]

Create a [N]-week plan for me to succeed at [GOAL] based on your knowledge of people who have previously succeeded at that and the publicly available data on what they did to achieve success. Give me two weeks at a time and elaborate on each fully.