cm0002@lemmy.world to Programmer Humor@programming.dev · 2 个月前Senior Wisdomlemmy.mlexternal-linkmessage-square64fedilinkarrow-up1803cross-posted to: programmerhumor@lemmy.ml
arrow-up1803external-linkSenior Wisdomlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 2 个月前message-square64fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squaresunbytes@lemmy.worldlinkfedilinkarrow-up12·2 个月前And decent variable names if you can, as well. No magic numbers!
minus-squareZILtoid1991@lemmy.worldlinkfedilinkarrow-up6·2 个月前WYM, I can’t just name my functions foo() and my variables single letters? /s
minus-squaresunbytes@lemmy.worldlinkfedilinkarrow-up6·2 个月前$retVal and $item are my personal favourite.
And decent variable names if you can, as well.
No magic numbers!
WYM, I can’t just name my functions
foo()
and my variables single letters? /s$retVal
and$item
are my personal favourite.