Code AnalysisIntermediate 60s
Analyze: DIP ownership direction
What is the architectural defect here?
// domain package
class OrderService:
constructor(db: MySQLConnection) {} // imports infrastructure
save(order): db.execute("INSERT INTO orders ...")
Which fix follows the Dependency Inversion Principle?
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.