AtegonA to Programming Horror · 1 year agoIf only there was a better wayimagemessage-square11fedilinkarrow-up162arrow-down12
arrow-up160arrow-down1imageIf only there was a better wayAtegonA to Programming Horror · 1 year agomessage-square11fedilink
minus-squareDoc Avid Mornington@midwest.sociallinkfedilinkarrow-up3·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-squareVaxHackerlinkfedilinkarrow-up1·11 months 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.