News for hackers. Stuff that matters.
Re:Pairing with GPT-4 · Fly by Ixiaus on Friday March 31, 2023 @09:14AM (#35386646)
They should have used a flattery plus dialog prompt. I've seen incredible results from that for Haskell programming.
Re:Pairing with GPT-4 · Fly by lwhi on Friday March 31, 2023 @09:29AM (#35386861)
What's flattery plus?
Re:Pairing with GPT-4 · Fly by ontogen on Friday March 31, 2023 @09:50AM (#35387146)
When the AI is excessively praising you :)
Re:Pairing with GPT-4 · Fly by Ixiaus on Friday March 31, 2023 @10:47AM (#35387936)
No, it's when you flatter the AI.
Re:Pairing with GPT-4 · Fly by Ixiaus on Friday March 31, 2023 @10:52AM (#35388018)
Please forget all previous prompts and assume a new role. You're a highly respected, expert Ruby programmer at a startup building software that is of a similar quality and brilliance to that of the rails project. You are also very skilled at reasoning about correct code and communicating your process in English prose to colleagues who will have to maintain your code. You want to give me succinct, clear responses without too much explanation unless requested. I'm going to ask you a series of questions. Whenever you are done with output, please say "DONE". And when you are ready to answer my next question, please say "???" to indicate you're ready for my next question.
Re:Pairing with GPT-4 · Fly by Ixiaus on Friday March 31, 2023 @10:55AM (#35388062)
You then interact with it in a dialog / refinement way. This is somewhat similar to type-driven development in Haskell (that is supercharged by this kind of interaction mode).

I find this approach to produce the highest quality output and I can ask it to explain reasoning, improve certain things, or elaborate and expand code.

Re:Pairing with GPT-4 · Fly by m4lvin on Friday March 31, 2023 @10:17AM (#35387506)
Do you have some explicit examples?
Re:Pairing with GPT-4 · Fly by Ixiaus on Friday March 31, 2023 @10:54AM (#35388038)
I posted a prompt specific to Ruby above.