All challenges
Code AnalysisIntermediate 60s

DIP violation via direct SDK import

class SubscriptionService: def __init__(self): self.client = StripeClient(api_key=os.environ['STRIPE_KEY']) def subscribe(self, user, plan): return self.client.charges.create(amount=plan.price, currency='usd') # StripeClient imported directly from the vendor SDK Which refactor applies Dependency Inversion at the package level?

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle