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]
Смотрите видео Wow! Refactoring with JetBrains AI Assistant онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Pairing with Duncan 07 Июль 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,836 раз и оно понравилось 37 людям.