Code AnalysisBeginner 60s
Which YAGNI Violation
Inspect the module pseudo-code.
Which principle is being violated?
Starter code
module ReportingService:
supports_postgres = True
supports_mysql = True
supports_oracle = True
supports_mssql = True
# Only Postgres is used in production today.
def query(db):
if db.kind == 'postgres': ...
elif db.kind == 'mysql': ...
elif db.kind == 'oracle': ...
elif db.kind == 'mssql': ...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.