Code Room
Code reviewMedium
Question
Review this Python feature-flag check guarded by a breaker.
What a strong answer looks like
Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.
Learn the concepts
def is_enabled(flag, user_id): try: return flag_service.check(flag, user_id) except Exception: breaker.record_failure() if breaker.is_open(): return True return TrueRun or narrate your approach, then ask the coach.