Cows Look Like Maps@sh.itjust.works to Programmer Humor@programming.dev · 1 year 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 · 1 year agomessage-square112fedilink
minus-squareBaardFigur@lemmy.worldlinkfedilinkarrow-up22·edit-21 year 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·1 year 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-squarestebo02@sopuli.xyzlinkfedilinkarrow-up1·1 year 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