ComeçarComece de graça

When to challenge AI's suggestion

During a code review at GreenGrid, you ask AI to review a teammate's pull request. The PR adds a function that retries failed sensor API calls with exponential backoff. AI suggests the following improvement:

"The retry logic uses a for loop with time.sleep(). Consider replacing this with the tenacity library, which provides decorators for retry logic with configurable backoff strategies. This would reduce the function from 15 lines to 3 lines and is more maintainable."

The suggestion is technically sound. However, GreenGrid's deployment pipeline has strict dependency approval policies, and tenacity is not on the approved list.

What is the best next step in your iterative collaboration with AI?

Este exercício faz parte do curso

Advanced AI-Assisted Coding for Developers

Ver curso

Exercício interativo prático

Transforme a teoria em ação com um de nossos exercícios interativos

Começar o exercício