Re:The Resurgence of C Programming
by jstewartmobile on Tuesday December 27, 2016 @05:24PM
(#13266729)
My claim is that the particular class of bugs relating to memory/overflows have not been an issue in my career, while bugs arising from API and language ambiguities have caused considerable headaches.
[ Parent
| on HN ]
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.
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.
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.