Andromxda 🇺🇦🇵🇸🇹🇼 to Programmer [email protected]English • 1 year agoHow programmers comment their codelemmy.dbzer0.comimagemessage-square145fedilinkarrow-up11.55K
arrow-up11.55KimageHow programmers comment their codelemmy.dbzer0.comAndromxda 🇺🇦🇵🇸🇹🇼 to Programmer [email protected]English • 1 year agomessage-square145fedilink
minus-square@[email protected]linkfedilinkEnglish17•1 year ago“What does this section of code do?” Run it and find out, coward.
minus-square@[email protected]linkfedilink2•1 year agoNah. 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_partylinkfedilink2•edit-21 year agoJust 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.
“What does this section of code do?”
Run it and find out, coward.
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.