Mastering Chat-Oriented Programming with Stephan Janssen

Published: 13 September 2024
on channel: Pairing with Duncan
886
28

In this episode I’m continuing my chat and pairing with Stephan Janssen, founder of the Devoxx conference empire and author of the Devoxx Genie AI plugin for IntelliJ https://github.com/devoxx/DevoxxGenie...

Last week (   • Devoxx Genie AI Deep Dive with Stepha...  ) Stephan helped me understand how chatting with a large language model is implemented. Armed with this knowledge, this week we open up the Gilded Rose stock control codebase and attempt to use the Anthropic API to understand something of what it does, and ask the LLM how to remove a now-redundant piece of configuration.

Working with an expert has given me new techniques for chat interactions, techniques that improve my success rate, but at the same time made me realise that I may be asking too much of the current state of the art. Stephan’s enthusiasm is infectious though, and makes me believe that interacting with AI systems will be as much part of a modern programmer’s toolset as becoming expert in an IDE, testing tools, refactoring techniques, and so on.

If you like this episode then please subscribe to make sure you catch the final part of our chat, where we talk about the role of source code and architecture in our brave new world.

In this episode

00:01:04 Introducing the codebase
00:03:18 Settting the system prompt
00:06:38 What files are sent to the prompt and how?
00:13:15 Describing the whole project
00:14:24 Prime the chat with the Features class
00:15:45 Be as explicit as possible
00:17:39 Refining the suggestion
00:21:24 When we have what we want we can try a patch file
00:23:13 We can fix things by hand
00:25:32 Ask how-to questions rather than give instructions
00:29:08 It can be harder to understand than implement


A playlist of the chat with Stephan    • Stephan Janssen  
There is a playlist of AI content -    • AI  
And many many more on this codebase -    • Test Driven Gilded Rose in Kotlin  
The codebase is available on GitHub https://github.com/dmcg/gilded-rose-tdd

If you like this video, you’ll probably like my book Java to Kotlin, A Refactoring Guidebook (http://java-to-kotlin.dev). It's about far more than just the syntax differences between the languages - it shows how to upgrade your thinking to a more functional style.


Watch video Mastering Chat-Oriented Programming with Stephan Janssen online without registration, duration hours minute second in high quality. This video was added by user Pairing with Duncan 13 September 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 886 once and liked it 28 people.