cm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agoSenior Wisdomlemmy.mlexternal-linkmessage-square61fedilinkarrow-up1736arrow-down19
arrow-up1727arrow-down1external-linkSenior Wisdomlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agomessage-square61fedilink
minus-squareZILtoid1991@lemmy.worldlinkfedilinkarrow-up10·7 hours agoComment your code. Problem solved.
minus-squareipkpjersi@lemmy.mllinkfedilinkarrow-up1·2 hours agoMake sure to remember to update your comments too, otherwise it causes even more confusion when something works differently than it says it does.
minus-squaresunbytes@lemmy.worldlinkfedilinkarrow-up8·6 hours agoAnd decent variable names if you can, as well. No magic numbers!
minus-squareZILtoid1991@lemmy.worldlinkfedilinkarrow-up1·6 hours agoWYM, I can’t just name my functions foo() and my variables single letters? /s
minus-squaresunbytes@lemmy.worldlinkfedilinkarrow-up1·2 hours ago$retVal and $item are my personal favourite.
Comment your code. Problem solved.
Make sure to remember to update your comments too, otherwise it causes even more confusion when something works differently than it says it does.
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.