use these prompts and become master of ChatGPT..
1 . Learn a topic with the simplest explanation
this prompt will help you to understand complex topics in simplest form use the below prompt and you will be able to understand the topic even if you are a 5 year old ๐ถ !
How would you explain {topic} to a 5-year-old?
example :- theory of relativity (seems complex right?) no worries use this prompt ๐ซฐ
2 . Generate Git Commands by giving the description
you have to give this prompt to ChatGPT and then you have to give the description for the command that you desire to get and you are good to go ๐
copy the command from and paste you are done !!
I want you to act like a Git commands generator. I'll explain what I need you to do and you will provide me with the right Git command.
now it will be ready you have to give the description and you will get the commands ๐ฅ
example:- suppose you are using git for first time and you want to configure your github account
3 . Make any code understandable by getting the comments on each line
use this prompt and give your code snippet and it will generate the comments on each line and you will be able to understand the code better way !!
Regenerate the code snippet below, but please include comments to each line of code {code}
example :- I have given the below code (it looks scary right? but basically, it is calculating the inverse square root quickly ๐คฏ)
the result I got in ChatGPT
4 . Write your code with the idiomatic approach
use this prompt to make your non-idiomatic code into an idiomatic code.
now you will ask what is that idiomatic approach?
well, I would say you know but you don't know ๐ซ
in simple words,
Writing idiomatic code means following the conventions of the language, and solving problems the way they are meant to be solved in that language, not by porting programming patterns from other languages.
was I doing a mistake by writing the non-idiomatic codes ?๐จ
The non-idiomatic ways aren't wrong, but they usually take longer to type and they always take longer to read, for those who know the idioms. If I call you "the boy who cried wolf" and you know the story, it's quicker than if I explain about how false alarms cause people to ignore you. The problem, of course, is if you don't know the story and don't know what wolves have to do with what we're talking about. Similarly, it can be a problem if you've never seen return x<y;
before and really don't know what it does.
well moving back to the topic..........
Rewriting code using idiomatic constructs {Enter code}
example:-
It is scariest when you hear the term for the first time in an interview and that same happened to me but you don't have to worry now you know what "Idiomatic code" means ๐ค
5 . write documentation for a code
This prompt will generate documentation for the code you will give
write the documentation for a piece of code {Enter code}
example:-
I have a message for you ....๐
you should not practice using ChatGPT for everything at the end of the day ChatGPT is also developed by developers like us!!
ChatGPT is there to help you not to get your work done you have to learn the things yourself and that's the only way to grow ๐ฅ
Now you can say you are a master of ChatGPT ๐
you can thank me by reacting to this one and make sure you follow ๐