3 ms·
How can you teach C when there's no list of UB, there's sometimes no agreement on how to read the standard, and loads of non-standard-compliant compilers.
by n_plus_1_acc 2y ago
How can you teach C when there's no list of UB, there's sometimes no agreement on how to read the standard, and loads of non-standard-compliant compilers.
- bobthepanda 2y agoPlenty of universities teach C every day even if that means specifying a compiler, and usually it’s a very boring compiler that gets chosen
- n_plus_1_acc 2y agoRight, but all C courses I've done had UB in examples without mebtioning it. There teachers just didn't know what they are teaching.
- bobthepanda 2y agoUnless you are writing a compiler and code specifically tailored to take advantage of UB, there’s not much to say about it other than “be careful about UB cause it can make your program buggy from your POV.”
- lelanthran 2y ago> How can you teach C when there's no list of UB, there's sometimes no agreement on how to read the standard, and loads of non-standard-compliant compilers. Right. Becuase no one ever learned C as a first language ever, and those that paradoxically did were worse programmers for it!
- n_plus_1_acc 2y agoAre you saying people who learned C as their first programming language are better programmers or worse?
- lelanthran 2y ago> Are you saying people who learned C as their first programming language are better programmers or worse? That's both a false dichotomy and irrelevant as well. My message is "There are multiple excellent (even legendary) developers in the short history of our field that learned programming in C. There are many more who primarily used C". This refutes your point completely.