C is not as simple as it seems
C is not as simple as it seems
Posted Sep 25, 2024 20:11 UTC (Wed) by roc (subscriber, #30627)Parent article: Linus and Dirk on succession, Rust, and more
Linus says "C is a very simple language" but then goes on to say "there are a lot of rules on how the code can be written and there are tools to help detect when things go awry".... which tells a story. When you first write some programs which produce correct output, you think C is simple. Then you gradually learn the rules and get better at applying them, until it's not really simple at all, but you still think it's simple from your first impression. In the meantime, you have unfortunately written a lot of garbage C code.
People learning C should have their programs subjected to sanitizers and fuzz testing from their very first program. Then they'll get an accurate impression of how simple C is.
