Ategon@programming.dev to Programming Horror@programming.dev • 1 year agoIf only there was a better wayimagemessage-square3 fedilinkarrow-up16
arrow-up16imageIf only there was a better wayAtegon@programming.dev to Programming Horror@programming.dev • 1 year agomessage-square3 Commentsfedilink
minus-squareDoc Avid Mornington@midwest.socialhexbear0·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? linkfedilink
minus-squareVaxHacker@programming.devhexbear1·9 months agoI did once see if (!x) strcpy(x, ""); It was from a VB "programmer" who was experimenting with C. In production code. linkfedilink
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.