Ategon@programming.dev to Programming Horror@programming.dev · 1 year agoIf only there was a better wayprogramming.devimagemessage-square4fedilinkarrow-up118arrow-down11
arrow-up117arrow-down1imageIf only there was a better wayprogramming.devAtegon@programming.dev to Programming Horror@programming.dev · 1 year agomessage-square4fedilink
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-squareVaxHacker@programming.devlinkfedilinkarrow-up1·10 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.