News for hackers. Stuff that matters.
Re:Undefined behavior in C is a reading error by pif on Thursday May 20, 2021 @02:29PM (#27225153)
> You first have to be aware of all the footguns,

Knowing your tools is part of being a professional. C is not for amateurs.

Re:Undefined behavior in C is a reading error by rurban on Thursday May 20, 2021 @04:14PM (#27226562)
Then use such a tool, but don't call it C, rather -std=gnuc-opt11, which always knows better than the author, without any warning.

Call it randomC, unsuitable for professional programmers, but extremly suitable for benchmark games and managers. Who prefer to ignore pesty overflows, underflows, memset, memcpy, dereferencing NULL pointers and other rare cases.

Re:Undefined behavior in C is a reading error by saagarjha on Thursday May 20, 2021 @10:06PM (#27229747)
A true mark of a professional is being deathly terrified of the footguns that you must nevertheless use as tools.