by anexprogrammer · 10y ago · 0 comments
"down to operator" = unhelpful use of whitespace. postdecrement x, check if >0
I still find C one of the easiest to pick apart. Obfuscated C entries excepted!
It's easy to forget how much of that mindless preprocessor and make conditionality we've left behind. Sadly in exchange for hardware that's much blander now.
The rules are simple for simple projects. Then you get into things like undefined behaviours, implementation-specific behaviours, etc. Which compilers will abuse heavily for optimisations without telling you about it - for example like the case of silently removing NULL checks. Also any undefined behaviour at all in your source code allows the compiler to throw away all code after it. Without telling you about it.