Cows Look Like Maps@sh.itjust.works to Programmer Humor@programming.dev · 7 months agoBill is a pro grammersh.itjust.worksimagemessage-square85fedilinkarrow-up1714arrow-down189
arrow-up1625arrow-down1imageBill is a pro grammersh.itjust.worksCows Look Like Maps@sh.itjust.works to Programmer Humor@programming.dev · 7 months agomessage-square85fedilink
minus-squareBaardFigur@lemmy.worldlinkfedilinkarrow-up19·edit-27 months agoComment smart, don’t comment every line like this int i = 5; // Assigns the value 5 into the variable i.
minus-squareMaalus@lemmy.worldlinkfedilinkarrow-up2·7 months 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·7 months 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