Re:JavaScript Structs
by n_plus_1_acc on Thursday October 10, 2024 @03:49PM
(#41802790)
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.
[ Parent
| on HN ]
Re:JavaScript Structs
by bobthepanda on Thursday October 10, 2024 @04:09PM
(#41802990)
Plenty of universities teach C every day even if that means specifying a compiler, and usually it’s a very boring compiler that gets chosen
Re:JavaScript Structs
by n_plus_1_acc on Saturday October 12, 2024 @05:13PM
(#41822663)
Right, but all C courses I've done had UB in examples without mebtioning it. There teachers just didn't know what they are teaching.
Re:JavaScript Structs
by bobthepanda on Monday October 14, 2024 @11:42AM
(#41838578)
Unless 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.”
Re:JavaScript Structs
by lelanthran on Saturday October 12, 2024 @06:25AM
(#41818074)
> 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!
Re:JavaScript Structs
by n_plus_1_acc on Saturday October 12, 2024 @05:12PM
(#41822656)
Are you saying people who learned C as their first programming language are better programmers or worse?
Re:JavaScript Structs
by lelanthran on Tuesday October 15, 2024 @10:45AM
(#41849167)
> 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.