Chris@feddit.uk to Programmer Humor@programming.devEnglish · 1 month agoUnexplained Phenomenas3.us-east-005.backblazeb2.comexternal-linkmessage-square25fedilinkarrow-up1787arrow-down12file-text
arrow-up1785arrow-down1external-linkUnexplained Phenomenas3.us-east-005.backblazeb2.comChris@feddit.uk to Programmer Humor@programming.devEnglish · 1 month agomessage-square25fedilinkfile-text
minus-squarenogooduser@lemmy.worldlinkfedilinkEnglisharrow-up12·1 month agoI used to work on an old DOS product and we didn’t have a debugger so we used to have a DEBUG command line argument with if (DEBUG) printf(“debugging”); to try to see what was happening and the number of times that code alone fixed the problem was scary.
minus-squarepsycho_driver@lemmy.worldlinkfedilinkarrow-up5·1 month agoI mean . . . I still do this on my own stuff. If I’m interested in optimizing for speed I’ll do it as #ifdef instead of if ()
I used to work on an old DOS product and we didn’t have a debugger so we used to have a DEBUG command line argument with
if (DEBUG) printf(“debugging”);
to try to see what was happening and the number of times that code alone fixed the problem was scary.
I mean . . . I still do this on my own stuff. If I’m interested in optimizing for speed I’ll do it as #ifdef instead of if ()