jupyter_rain@discuss.tchncs.de to Programmer Humor@programming.dev · 1 month agoThis is my life now, until I finally understand Cmake.discuss.tchncs.deimagemessage-square29fedilinkarrow-up115arrow-down10file-text
arrow-up115arrow-down1imageThis is my life now, until I finally understand Cmake.discuss.tchncs.dejupyter_rain@discuss.tchncs.de to Programmer Humor@programming.dev · 1 month agomessage-square29fedilinkfile-text
minus-squareCodeMonkey@programming.devlinkfedilinkarrow-up1·edit-21 month agoC does exactly what you tell it, no more. Why waste cycles setting a variable to a zero state when a correct program will set it to whatever initial state it expects? It is not user friendly, but it is performant.
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up1·1 month agoExcept that this is wrong. C is free to do all kinds of things you didn’t ask it to, and will often initialize your variables without you writing it.
C does exactly what you tell it, no more. Why waste cycles setting a variable to a zero state when a correct program will set it to whatever initial state it expects? It is not user friendly, but it is performant.
Except that this is wrong. C is free to do all kinds of things you didn’t ask it to, and will often initialize your variables without you writing it.