Code AnalysisIntermediate 60s
Which Evolution Strategy Fits
Analyze the schema migration pseudo-code.
Which named pattern does this implement?
Starter code
# Step 1: add new column, keep old
schema.add_column('user', 'email_v2')
# Step 2: backfill
backfill('user', 'email_v2', from_='email')
# Step 3: dual-read, prefer v2
read = prefer('email_v2', fallback='email')
# Step 4: stop writing old
write_only('email_v2')
# Step 5: drop old column
schema.drop_column('user', 'email')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.