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

Why is this comment being down voted? Not everybody here is familiar with C string manipulation, if you down vote or complain at least give more detail that "it sucks".

@aap_, I asked a similar question some time ago and got some answers, you can check the thread here: https://news.ycombinator.com/item?id=19302581

The direct answer I got was:

> I'm guessing because an off-by-one or an extra skip might mean you miss the end of the string and go off into la-la land feeding whatever garbage happens to be in memory to your parser? That would mostly be a C issue (as it has no string abstraction at all).



>Why is this comment being down voted? Not everybody here is familiar with C string manipulation, if you down vote or complain at least give more detail that "it sucks".

Well, if someone is not familiar, why do they read a subthread on the matter?

Shouldn't they better start with a tutorial on C/C strings?

Even if people on this thread gave arguments, how would they (not familiar with C and C strings) would evaluate them? They could be totally bogus.




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

Search: