https://www.youtube.com/watch?v=OgYQAS9LY3o
People talk about how Chat-GPT won't replace programmers - but this Chat-GPT prompt's behaviour in the video sounds scarily like me in most of my meetings with managers and biz folk. Except Chat-GPT is better at it than me because it's more polite and swears a lot less.
I often use writing to clarify my thinking and effectively "rubber-duck" my analysis. Now I think I'm going to start rubber-ducking my analysis against Chat-GPT.
On the other hand, I made my first attempt at getting GPT-4 to write some react code for me. It made the exact errors I expect any newbie React programmer to make; from using stale state from a variable capture in a hook to forgetting to set the inputRef on the HTML element.
The trippy thing was: each time I told it "no, that's wrong because X" it fixed the code on the first go.
Still, it did get the code right in the end - and this is literally the first time I ever used Chat-GPT or any other AI tool.
On the one hand, I'm looking forward to learning about prompt engineering; on the other, I'll be careful not to get too invested in the minutiae - it definitely smells like a transitional technology.
It’s very useful when you want to give the LLM tools. Usually used with “system prompts”.
For example: https://news.ycombinator.com/item?id=35223095
“How would you prompt an LLM to do…”
“Take the following prompt and ask clarifying questions…”
“Rephrase this prompt to be clear, concise and achievable…”
I’ve had mixed results. But sometimes it is illuminating to see it clarify things I may have omitted.