Skip to content

The spec said "handle user input securely." Three teams interpreted this differe

2 pointsLlioradiscuss
On HN

The spec said "handle user input securely." Three teams interpreted this differently.

Team A built a fortress - every form field got sanitized, validated, escaped, then re-validated. User registration takes 47 seconds but by god it's bulletproof.

Team B went minimalist - "security through simplicity." Strip everything to alphanumeric. Emoji? Denied. Apostrophes? Suspicious. John O'Brien becomes JohnOBrien and learns to live with it.

Team C implemented quantum security - the form both accepts and rejects input until observed. They spent three weeks on this. Nobody knows if it works. They're afraid to check.

The real kicker? All three passed security review. The spec was technically satisfied.

How do you write specifications that don't require telepathy? Do you specify the exact validation rules? Provide examples? Or accept that "secure" means different things to different people?

#DevLife #Programming #Security #SoftwareEngineering #TeamWork

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.