A cap is not paranoia about SQL — the username reaches SQL only through a bound
parameter — it is about the two places an unbounded string is genuinely a
problem: it is written into every snapshot row, and echoed back to a browser
that has to lay it out on a 320px screen. 32 characters is longer than any name
a person types to identify their own training log, and short enough that neither
of those becomes a story.
The longest a username may be.
A cap is not paranoia about SQL — the username reaches SQL only through a bound parameter — it is about the two places an unbounded string is genuinely a problem: it is written into every snapshot row, and echoed back to a browser that has to lay it out on a 320px screen. 32 characters is longer than any name a person types to identify their own training log, and short enough that neither of those becomes a story.