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,500 courses taught by industry experts.

Identifying smells and improving readability

Identifying smells and improving readability

- [Instructor] We've been exploring what it means to become a deliberate developer, and we've been intentional in understanding the why behind our code. But now, let's apply that to one of the most crucial habits of a professional developer, and that's the code review. But what if you're coding solo, or you just want a second opinion before you ask a teammate? And here's where Gemini can become an invaluable partner. Let's put on our critic's hat and use Gemini to perform an AI-assisted code review, hunting for code smells, and improving readability. Here's a Python function that I wrote. It's supposed to process a list of user dictionaries, filter for active users who've been members for over a year, and format their names for a mailing list. The code works, and it's classic vibe coding. But what if I'm being deliberate? Is it clean, is it maintainable? Now, my gut says it could probably be a little bit better. The variable u is vague, and there's the magic number 12 floating around.…

Contents