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
forloop withtime.sleep(). Consider replacing this with thetenacitylibrary, 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?
Diese Übung ist Teil des Kurses
Advanced AI-Assisted Coding for Developers
Interaktive Übung
In dieser interaktiven Übung kannst du die Theorie in die Praxis umsetzen.
Übung starten