ChatGPT Cheat Sheet Devs v2 2
ChatGPT Cheat Sheet Devs v2 2
1. Write a C# function to do {{ TASK }} 1. What does this code do? {{ CODE }} 1. Refactor this code into multiple methods {{ CODE }}
2. Write a React component to do {{ TASK }} 2. Explain the purpose of this {{ LANGUAGE }} function 2. How can I refactor this code for better performance?
{{ FUNCTION }} {{ CODE }}
3. Write a Dockerfile for {{ FRAMEWORK }}
3. What is the differences between {{ CONCEPT }} and 3. How can I refactor this code for better readability?
4. Write a RegEx pattern for {{ REQUEST }}
{{ CODE }}
{{ CONCEPT }} in {{ LANGUAGE }}
5. Create a C# class from this JSON object {{ JSON }}
4. Add a parameter to this function to do
4. What does {{ KEYWORD, OPERATOR, ETC }} do in
{{ FUNCTIONALITY }} {{ CODE }}
Examples {{LANGUAGE}}?
5. Convert this callback-based function to use
5. What libraries can do {{ REQUIREMENTS }} for Promises {{ CODE }}
1. Write a C# method to get items from a DB and print them.
{{ LANGUAGE }}
Leave TODO comments where you are unsure E.g. 6. Rewrite this JS code in C# {{ JS CODE }}
Data connections 6. What language/framework is best for this idea?
7. Add a parameter to this function to do {{ CODE }}
2. For my .NET project, write a GitHub Action to check PRs. {{ IDEA }}
8. Make this code use .NET 8 features {{ CODE }}
It should run the tests and lint the code
Examples
Examples
1. Write instructions for running a .NET project to
ssw.com.au/rules/chatgpt-cheat-sheet add to the README
version 2.2