Cows Look Like Maps@sh.itjust.works to Programmer Humor@programming.dev · 10 months agoBill is a pro grammersh.itjust.worksimagemessage-square85fedilinkarrow-up1780arrow-down194
arrow-up1686arrow-down1imageBill is a pro grammersh.itjust.worksCows Look Like Maps@sh.itjust.works to Programmer Humor@programming.dev · 10 months agomessage-square85fedilink
minus-squaremagic_lobster_party@kbin.sociallinkfedilinkarrow-up74·10 months agox += 1; // Increases x by one
minus-squaretowerful@programming.devlinkfedilinkarrow-up62arrow-down3·edit-210 months ago// increase the dynamically allocated memory space of a word sized integer stored at the memory address represented by the symbol "x" by the integer 1 and terminate the instruction
minus-squareAnders429@programming.devlinkfedilinkarrow-up11·10 months agoWhy the heck does it need to be dynamically allocated? Just put that puppy on the stack.
minus-squaretowerful@programming.devlinkfedilinkarrow-up6·10 months agoThat’s what it used to do. But it was a bug, and the code has been fixed.
minus-squareautokludge@programming.devlinkfedilinkEnglisharrow-up19·edit-210 months ago…Years later x += config.increment; // Increases x by one """ config.yaml increment: -2 """
minus-squareZILtoid1991@kbin.sociallinkfedilinkarrow-up16arrow-down1·10 months agox++; // Move X position forward by one There, I made that kind of comment more useful!
minus-squareLostXOR@kbin.sociallinkfedilinkarrow-up9·10 months agox++; // Set x to the incrementation of the value of x Much better.
x += 1; // Increases x by one
// increase the dynamically allocated memory space of a word sized integer stored at the memory address represented by the symbol "x" by the integer 1 and terminate the instruction
Why the heck does it need to be dynamically allocated? Just put that puppy on the stack.
That’s what it used to do.
But it was a bug, and the code has been fixed.
…Years later
x += config.increment; // Increases x by one
""" config.yaml increment: -2 """
x++; // Move X position forward by one
There, I made that kind of comment more useful!
x++; // Set x to the incrementation of the value of x
Much better.
// Move to the right