Cows Look Like Maps@sh.itjust.works to Programmer Humor@programming.dev · 2 years agoBill is a pro grammersh.itjust.worksimagemessage-square112fedilinkarrow-up1751arrow-down193
arrow-up1658arrow-down1imageBill is a pro grammersh.itjust.worksCows Look Like Maps@sh.itjust.works to Programmer Humor@programming.dev · 2 years agomessage-square112fedilink
minus-squareBaardFigur@lemmy.worldlinkfedilinkarrow-up22·edit-22 years agoComment smart, don’t comment every line like this int i = 5; // Assigns the value 5 into the variable i.
minus-squareMaalus@lemmy.worldlinkfedilinkarrow-up4·2 years agoComment only in extraordinary situations, when something you read can confuse someone. And by that I mean the business logic, not that you used a method that’s confusing to people since they only know the basics of the language.
minus-squarestebo@sopuli.xyzlinkfedilinkarrow-up1·2 years agoI usually comment on whole groups of lines of code, so the goal of each part of the code is clear
Comment smart, don’t comment every line like this
int i = 5; // Assigns the value 5 into the variable i.
Comment only in extraordinary situations, when something you read can confuse someone. And by that I mean the business logic, not that you used a method that’s confusing to people since they only know the basics of the language.
I usually comment on whole groups of lines of code, so the goal of each part of the code is clear