5 ms·
I disagree. If I'm learning a new language, I'm too busy worrying about the commas and semi-colons, not whether or not I'm using strcat or strncat. Worrying a
by misham 16y ago
I disagree. If I'm learning a new language, I'm too busy worrying about the commas and semi-colons, not whether or not I'm using strcat or strncat. Worrying about overflows, signedness, etc. is something you do once you're more comfortable with the language.
It would be nice to provide links to articles and books on why one should use snprintf instead of sprintf or what is integer overflow and how do you deal with it and other topics for writing secure code.
However, as a beginner, it will simply not register since I'm more worried about having used a period instead of an arrow to access a struct member.
Perhaps, instead of writing a beginner C book, an advanced C book is needed more.
- there 16y agopaging tom ptacek... tom ptacek to the white courtesy phone...
- aaronblohowiak 16y agoZed's idea of LCTHW was not for a beginner book.