Inside FreshBooks (the application), there’s a few places where we abbreviate long-ish text with ellipses to make it fit inside small table cells. This is done in PHP by a single function, whose two parameters are a string and the desired character length.
Of course, not all characters are made equal. We estimate appropriate character lengths as best we can, but it doesn’t always work. If users have a penchant for typing in capital letters, or use text zoom, our little abbreviating function can fail. And of course, every design change to these areas require new character length settings – a task that is easily forgotten.
That’s it for me for the year – Happy holidays!