Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
What is the length of a string? A tricky question (mortoray.com)
3 points by ingve on May 16, 2016 | hide | past | favorite | 1 comment


> Every day millions of programmers require the length of a string

Why? There are relatively few cases where I think you should actually give a damn about how long a string is.

For most CRUD applications (i.e. most applications) you either have a grammar for your input or you don't. If you don't then all you typically want to do is minimal sanity checking (e.g. check that nobody is putting a 10 MB string in as their email address).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: