Ategon to Programming [email protected] • 2 years agoIf only there was a better wayprogramming.devimagemessage-square14fedilinkarrow-up163arrow-down12
arrow-up161arrow-down1imageIf only there was a better wayprogramming.devAtegon to Programming [email protected] • 2 years agomessage-square14fedilink
minus-squareDoc Avid Morningtonlinkfedilink3•1 year agoEver see things like: if ((x == 0) == true)? Or: x = y == 'z' ? true : false? Some things just really make me worry about people, you know?
minus-square@[email protected]linkfedilink1•1 year agoI did once see if (!x) strcpy(x, ""); It was from a VB “programmer” who was experimenting with C. In production code.
Ever see things like:
if ((x == 0) == true)
? Or:x = y == 'z' ? true : false
? Some things just really make me worry about people, you know?I did once see
if (!x) strcpy(x, "");
It was from a VB “programmer” who was experimenting with C. In production code.