Re:String types are fine. How about your code?
by RyanZAG on Thursday November 28, 2013 @02:59PM
(#6816139)
Text search, text replacement, ellipsizing text at the end or middle (as done commonly on iOS), fuzzy search, password word limits, password length limits, matching passwords (try using bcrypt on international languages without first normalizing), detecting and filtering rude words in public chat, ... Basically anywhere that text needs to be checked or changed.
Just off the top of my head. There are far more. You can't even have a native language user friendly login system without normalizing text.
Re:String types are fine. How about your code?
by lelf on Thursday November 28, 2013 @03:32PM
(#6816290)
Text search,
search, that counts
text replacement,
why?
ellipsizing text at the end or middle (as done commonly on iOS),
you need to know width for that, and you don't, bad idea
fuzzy search,
search
password word limits, password length limits, matching passwords (try using bcrypt on international languages without first normalising),
i18n password? very bad idea
detecting and filtering rude words in public chat
search&replace, anyway you won't be able to, because f͌̊ͦuͥcͥ͑ͩ͛k͂͌̿ͣ̾
Re:String types are fine. How about your code?
by deathanatos on Friday November 29, 2013 @12:21AM
(#6817999)
> you need to know width for that, and you don't, bad idea
You also need to not chop off accents. "café" cannot become "cafe…"
> i18n password? very bad idea
Because string types are so broken.
Not actually