News for hackers. Stuff that matters.
Re:The Resurgence of C Programming by emmelaich on Tuesday December 27, 2016 @07:42PM (#13267563)
The problems caused by language ambiguities and pointer arithmetic and addressing is exactly what makes C difficult.

So, I don't disbelieve you but I've known 20 year C experts have their WTF moments when shown code that would seem to work but doesn't.

But I agree that C difficulty is sometimes exaggerated - partly it's expectations.

ps. by ambiguity do you mean undefined behaviour?

Re:The Resurgence of C Programming by thegeekpirate on Tuesday December 27, 2016 @10:10PM (#13268154)
> So, I don't disbelieve you but I've known 20 year C experts have their WTF moments when shown code that would seem to work but doesn't.

If after 20 years they don't know the C spec well enough to know if a piece of code should work or not, I simply wouldn't consider them very good programmers.

Re:The Resurgence of C Programming by emmelaich on Tuesday December 27, 2016 @11:08PM (#13268359)
Hrrm.

If Jon Bentley can have a bug in his Programming Pearl book then so can anyone.

https://research.googleblog.com/2006/06/extra-extra-read-all...

Re:The Resurgence of C Programming by thegeekpirate on Wednesday December 28, 2016 @12:28AM (#13268638)
I never said they wouldn't create bugs, but not fully understanding a line of code (outside of needing to conceptualize external dependencies) is certainly frightening after 20 years of working in C.
Re:The Resurgence of C Programming by ktRolster on Wednesday December 28, 2016 @04:55AM (#13269567)
What it shows is that sort of code never shows up in practical C. There's stuff in Java (and Javascript for that matter) I don't understand, and I've been programming in those for about as long as anybody.
Re:The Resurgence of C Programming by thegeekpirate on Tuesday January 10, 2017 @08:57PM (#13371138)
Absolutely.