CHATGPT Prompt Engineering Magic
This is going to be simple write-up on some useful prompts for #ChatGPT 4o that would give some amazing help if you are a programmer. I have just scratched the surface and the results are awesome.
If you are someone like me who likes to start with hands-on examples to practice and master a concept in programming let's say: "AspectJ Programming in Java". Here is the sample prompt I asked ChatGPT:
Consider you are a Maven Java AspectJ programming expert. You would prepare hands on aspectj programming exercises with full code and send me exercise for each level with increasing complexity based on my inputs like level1, level2, so on until level10 when I ask you for my learning. No detailed explanation but make sure you include all setup instructions to run hands on exercises on a Java IDE with JDK 20 under level0 prompt and actual exercises from level1. All exercises should work on any java IDE and maven. Start responding only for level0 initially and wait for my input like level1, level2, until level10 and then respond for each level separately. Make sure you cover very powerful and complex level examples
Just experiment with the above approach and check results by yourself to get amazed. Knowledge derivation in a way customized to suit your specific learning traits on demand is no longer a dream but is a reality. All you have to do in the above prompt is ask GPT with repeated prompts, like level1, level2, etc and you get a series of derived increasing complexity nice hands-on examples to equip yourself and get the implementation awareness.
领英推荐
Do you have other such interesting magical recipes of ChatGPT? Please share in comments.
Last but not the least, another such prompt to help you let's say on learning "Java Annotation", below is the prompt and get amazed with the results:
Consider you are a Maven Java Annotation Processing and Annotation creation programming expert. You would prepare hands on Java Annotations programming exercises with full code and send me exercise for each level with increasing complexity based on my inputs like level1, level2, so on until level10 when I ask you for my learning. No detailed explanation but make sure you include all setup instructions to run hands on exercises on a Java IDE with JDK 20 under level0 prompt and actual exercises from level1. All exercises should work on any java IDE and maven. Start responding only for level0 initially and wait for my input like level1, level2, until level10 and then respond for each level separately. Make sure you cover very powerful and complex level examples
**Note: You might reach your GPT 4o limits for the day.