An example of LLM prompting for programming

A couple of weeks ago I watched a fascinating Zoom call hosted by Xu Hao, Thoughtworks's Head of Technology in China. He showed an example of how he uses ChatGPT to help him code in a self-testing style. His initial prompt primes the LLM with an implementation strategy (chain of thought prompting). His prompt also asks for an implementation plan rather than code (general knowledge prompting). Once he has the plan he uses it to refine the implementation and generate useful sections of code.

more…

https://martinfowler.com/articles/2023-chatgpt-xu-hao.html

Created 2y | Apr 13, 2023, 2:20:20 PM


Login to add comment

Other posts in this group

How is GenAI different from other code generators?

How is code generation with GenAI different from more "traditional" code generators? The newest memo in Birgitta Böckeler's explorations of GenAI talks abou

Oct 18, 2023, 8:10:05 PM | Martin Fowler
How is GenAI different from other code generators?

How is code generation with GenAI different from more "traditional" code generators? The newest memo in Birgitta Böckeler's explorations of GenAI talks abou

Sep 19, 2023, 10:10:06 AM | Martin Fowler
TDD with GitHub Copilot

At Thoughtworks, we are strong practitioners of Test Driven Development (TDD). Naturally this leads to the question of how generative AI can

Aug 17, 2023, 8:30:07 PM | Martin Fowler