Last week ( • First Look at JetBrains AI Assistant ) we used the early access preview of JetBrains AI Assistant to write some code to generate a package diagram. I was certainly more productive with its help, but the resulting code wasn’t as I would have written it, and asking it to suggest refactorings wasn’t very fruitful.
This week I try a different tack - looking at the code to see what I don’t like in the small, and asking AI Assistant to fix it. This proves to be a good tactic. In fact, I am hugely impressed by what I’ve seen, and I think that you will be too.
This is episode 82 of an exploration of where a Test Driven Development implementation of the Gilded Rose stock control system might take us in Kotlin. You can see the whole series as a playlist
• All Gilded Rose Episodes
and the code on GitHub
https://github.com/dmcg/gilded-rose-tdd
If you like this, 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.
I have some free time between producing videos and working for team Gilded Rose. If you like these videos I'd like to work with you - please get in touch - [email protected]
Watch video Wow! Refactoring with JetBrains AI Assistant online without registration, duration hours minute second in high quality. This video was added by user Pairing with Duncan 07 July 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,836 once and liked it 37 people.