3 ms·
I teach Rust and C to college sophomores and juniors. By far the things they have the hardest time with in C are manual memory management, when to free variable
by ModernMech 7y ago
I teach Rust and C to college sophomores and juniors. By far the things they have the hardest time with in C are manual memory management, when to free variables, how to debug segfaults (usually called by incorrectly freeing memory), and how to correctly link code. We spend so much time on this I can't tell you.
With Rust none of these things are issues and we get to actually spend time solving problems in the language instead of just understanding the language. Yes, C is as simpler language, but it's got no safety rails, and when you're a beginner at systems programming it's nice to have a friendly compiler who can help you pinpoint errors rather than to be shown "SEGMENTATION FAULT" and feel like you're on your own.