All challenges
Code AnalysisBeginner 60s

Anemic model with validation elsewhere

// Domain: class Money { amount: number; } // Service: function transfer(a,b,amt){ if(amt<=0) throw; if(a.bal<amt) throw; /*...*/ } // New endpoint forgets the amt<=0 check. What is the architectural weakness?

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