cm0002@lemmy.world to Programmer Humor@programming.dev · 3 days agoSenior Wisdomlemmy.mlimagemessage-square64fedilinkarrow-up1784arrow-down19
arrow-up1775arrow-down1imageSenior Wisdomlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 3 days agomessage-square64fedilink
minus-squareZILtoid1991@lemmy.worldcakelinkfedilinkarrow-up14·1 day agoComment your code. Problem solved.
minus-squareipkpjersi@lemmy.mllinkfedilinkarrow-up6·1 day 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.worldcakelinkfedilinkarrow-up2·1 day agoThat happened to me multiple times…
minus-squaresunbytes@lemmy.worldlinkfedilinkarrow-up10·1 day agoAnd decent variable names if you can, as well. No magic numbers!
minus-squareZILtoid1991@lemmy.worldcakelinkfedilinkarrow-up3·1 day agoWYM, I can’t just name my functions foo() and my variables single letters? /s
minus-squaresunbytes@lemmy.worldlinkfedilinkarrow-up3·1 day 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.
That happened to me multiple times…
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.