4 ms·
If there is one thing decades of experience has taught us about C, it is that the language is not naturally well-suited to safe and reliable buffer management.
by ncmncm 7y ago
If there is one thing decades of experience has taught us about C, it is that the language is not naturally well-suited to safe and reliable buffer management.
This means that if you are coding C and using buffers, good code will necessarily look and feel unnatural. You should be deeply suspicious of any code you find managing buffer contents that has nothing awkward-looking. Managing buffers correctly in C takes far above average care and attention. That care needs to leave tracks to show it happened, and to remind subsequent maintainers to exercise it too.