cm0002@lemmy.world to Programmer Humor@programming.dev · 2 years agoSenior Wisdomlemmy.mlexternal-linkmessage-square64fedilinkarrow-up1803cross-posted to: programmerhumor@lemmy.ml
arrow-up1803external-linkSenior Wisdomlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 2 years agomessage-square64fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareZILtoid1991@lemmy.worldlinkfedilinkarrow-up15·2 years agoComment your code. Problem solved.
minus-squaresunbytes@lemmy.worldlinkfedilinkarrow-up12·2 years agoAnd decent variable names if you can, as well. No magic numbers!
minus-squareZILtoid1991@lemmy.worldlinkfedilinkarrow-up6·2 years agoWYM, I can’t just name my functions foo() and my variables single letters? /s
minus-squaresunbytes@lemmy.worldlinkfedilinkarrow-up6·2 years ago$retVal and $item are my personal favourite.
minus-squareipkpjersi@lemmy.mllinkfedilinkarrow-up7·2 years 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-squareZILtoid1991@lemmy.worldlinkfedilinkarrow-up3·2 years agoThat happened to me multiple times…
Comment your code. Problem solved.
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$retValand$itemare my personal favourite.Make sure to remember to update your comments too, otherwise it causes even more confusion when something works differently than it says it does.
That happened to me multiple times…