
Prompt Engineering and Prompt Patterns

#165 - Learning to Program in the Era of Generative AI - Leo Porter & Daniel Zingaro
Topic 4 of 10
Published Mar 4, 2024 · Clip 23:39–29:25 (5:46)
The guests explain prompt engineering: writing prompts in technical language (e.g., 'write a function that returns the largest value in the parameter list') produces much better results, but learners must be taught that terminology. They compare emerging prompt interaction patterns to classic object-oriented design patterns being catalogued over time. Dan describes specific patterns from their book: the flipped interaction pattern, where the LLM asks you questions to gather requirements, and the persona pattern, where you instruct the LLM to act as a CS-1 instructor or student to scope responses appropriately.