Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Treat code that cares about string "length" as code smell

This is nonsense. Pretty much anywhere that you're accepting user input on the web you want to have some sort of length limit. Even if you're Hacker News rather than Twitter, you probably don't want to let anybody post a 10GB comment. You just need to pick an appropriate length metric. That's part of the post's point, and it's also apparently your point a few sentences after you rubbish it; why are you insulting the post and then suddenly agreeing with it?



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

Search: