Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

Can JetBrains Junie replace manual refactoring?

Video information, playback and saved actions.

Can JetBrains Junie replace manual refactoring?

Description: IntelliJ has many refactorings built in, but we can’t really add our own. I’ve waited 8 years for extension function to method, and I’m still waiting. Other transformations, such as converting mutable to immutable data, require multiple steps.

AI agents are able to plan how to achieve a goal, execute that plan, and adapt when things go wrong. That also describes the process I follow when I’m refactoring code, so we might expect Junie, JetBrain’s agent, to be good at refactoring.

And, my goodness, it is.

In this episode, Duncan Intelli explores the power of AI agents for refactoring code in IntelliJ. He shares his experience working with Juni, JetBrains' AI agent, to refactor a web application written in Kotlin, converting mutable properties to immutable data classes and transforming operator extension functions into methods. The video showcases practical examples, demonstrating how AI can efficiently handle code transformations and fix compilation errors while ensuring all tests pass. Duncan also discusses the limitations and potential of Juni and reflects on the implications of AI in programming.

* 00:00:36 Introducing the AuctionService
* 00:00:56 Bids are mutable to support database ID generation
* 00:01:14 Can we make them immutable?
* 00:02:32 Can't someone else do it?
* 00:04:20 Yes they can!
* 00:04:51 But not commit the work it seems
* 00:05:24 How about convert extension to method?
* 00:07:06 Convert factory function to constructor
* 00:08:53 There are some test running issues
* 00:09:24 Converting collection operations into a pipeline
* 00:11:38 Wrap up

There is a playlist of AI episodes - https://www.youtube.com/playlist?list=PL1ssMPpyqociSAO5NlyMEYPL6a9eP5xte

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. Close description
      
Videos related to "Can JetBrains Junie replace manual refactoring?"

Related videos are temporarily unavailable.

Try again, or come back later.