From the course: Beyond Vibe Coding with Google Gemini: Become a Deliberate Developer

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Implementing strategic refactoring patterns

Implementing strategic refactoring patterns

- [Instructor] So let's go a little deeper into refactoring. Previously we saw how we could think deeper than just renaming and have Gemini take on the software architect role to suggest better code and help us to implement it. We've moved from thinking about cleanup to thinking about design, but insight is only the first step. The next is disciplined action. But there are patterns for refactoring, and it's logical that if we're going to do refactoring with Gemini, then we might do even better if we use those patterns. There are systematic named patterns, and we'll use those with Gemini's help. We'll focus on some of the common patterns to transform messy, but functional code into clean, easy to maintain, and robust code. And then we'll validate this with a test suite. Here's our starting point. It's a player class in a simple game, it works, we've tested it, and if we want to try it with a test suite, we'll see that all of our tests pass. We've got green nine tests going, which is…

Contents