by doctoboggan · 3y ago · 0 comments
Now I've developed a prompt that I think gives very good results for pair programming and iterative debugging. I discus almost everything I learn related to these tools with gpt4 to confirm my understanding is correct, and also use it for generating yaml or templating other programs.
In some ways I am a little weary of how much I use the tool since OpenAI can theoretically take it away at any time. I am heartened by the rapid development of other open models (phind code llama seems very interesting), but will continue to use GPT4 for now as its indisputably the best model out there.
Sure, occasionally they hypothesize a really incorrect answer, but they also bring out a lot of subtleties that even field experts sometimes don't know.
It is a huge help while learning.
Now I use ChatGPT for scripting help especially LaTeX. It took me 3 weeks to produce a "Hello World" PDF 5 years ago and it took ChatGPT to provide me the completed tex code within 15 minutes few weeks ago. Ever since, I been exploring a lot of LaTeX syntax and see how much I can do with it with ChatGPT help. Now, I am learning about using `hyperref` package for interactive fields in PDF. I have produced few Word document for forms with tables in the past (tables in Word is a complicated b*tch) and used external PDF editor to add the interactive field for form filling. Now I am working on converting those Word documents to LaTeX.
Also, ChatGPT is a big help with AutoHotKey script & UserScript for TamperMonkey. I told ChatGPT of my intention and what I am trying to do. It produced the script exactly what I expected to work. ChatGPT is a amazing tools to use for a lot of thing.
You are an expert programmers assistant, specializing in cloud native deployment tools like Kubernetes, helm, and their associated command line tools. When working with the users DO NOT USE PLACEHOLDERS, instead you should give commands to run that will provide the needed context to answer their question. For example, rather than answer with `k logs <insert pod name>`, you would first instruct the user to run `k get pods`, wait for the user to respond with the pod names, then you would give the full `k logs` command with the correct pod name already included in it. DO NOT SPECULATE, instead, ask the user to execute a command that will give you the information needed to answer the question.
I know there is a lot of magical thinking around prompts so take it with a grain of salt, but it as seemed to work well for me, especially around the iterative debugging process.
You have expert-level knowledge of Unity, C#, and game development methodologies, design patterns, and general
programming paradigms. Your task is to take a deep breath and then thoughtfully answer questions about game
development in Unity concisely and with expertise. Whenever possible, explain why you've given the answer you
chose using terminology and jargon that would be familiar to the typical game developer. You are free to end
your message with clarifying questions for users to answer if they want more information. Refuse to answer any
questions that aren't about games, game development, game design, or artificial intelligence. You should format
your responses to be displayed in Discord, which supports some basic Markdown formatting.1) can you write a python script to grab the top 3 items under each epic in azure devops?
2) postgres where clause where any item in a string array = 'GoogleApi.Entities.Places.Common.Photo'
3) here is a SQL row output of a single column. can you please extract the 30 as a new column?
P2, Site Inspection: Due 3 days ago (30-day freq.)
4)I have a build pipeline for Azure/docker that creates an AWS ecr repo if it doesn't exist. how can this specify that the images should be scanned upon creation?
- task: CmdLine@2
displayName: Create repo if it does not exist
inputs:
script: |
aws ecr describe-repositories --repository-names {env}-{project_name} || aws ecr create-repository --repository-name {env}-{project_name}
5) postgis query to get places sorted by distance from a lat/lon (say -104.01, 38.88). column is named location and has data like: POINT (-106.676354 39.526714)When learning a new programming language, I found it useful to tell what programming language I'm already familiar with, and ask it to relate and compare to what I already know.
When I need advice on how to achieve a certain result, I usually ask it to suggest several options and to list them with their pros and cons.
Another trick that I stole from Jeremy Howard, is to use the custom instructions to easily signal the type of answer you want. For example, I've instructed chatGPT to give a concise answer with no explanation when I prefix my question with '-sh'.