Code AnalysisBeginner 60s
Dependency injection container misuse
class PaymentService {
process() { const c = container.resolve(Cache); /* ... */ }
}
Why is resolving dependencies from the container inside a class an anti-pattern?
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.