Andromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.com to Programmer Humor@programming.devEnglish · 1年前How programmers comment their codelemmy.dbzer0.comimagemessage-square146fedilinkarrow-up11.57Karrow-down19file-text
arrow-up11.56Karrow-down1imageHow programmers comment their codelemmy.dbzer0.comAndromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.com to Programmer Humor@programming.devEnglish · 1年前message-square146fedilinkfile-text
minus-squareMaalus@lemmy.worldlinkfedilinkarrow-up2arrow-down1·1年前Nah. It should be obvious by just looking at it in code. If it isn’t, you haven’t extracted single purpose methods out of it yet.
minus-squaremagic_lobster_party@kbin.runlinkfedilinkarrow-up2·edit-21年前Just having clear and concise variable names often goes a long way. Avoid using abbreviations. Breaking out the code into functions helps limit the number of variables within a scope, which makes it easier to name them.
Nah. It should be obvious by just looking at it in code. If it isn’t, you haven’t extracted single purpose methods out of it yet.
Just having clear and concise variable names often goes a long way. Avoid using abbreviations.
Breaking out the code into functions helps limit the number of variables within a scope, which makes it easier to name them.