cm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agoSenior Wisdomimagemessage-square63fedilinkarrow-up1776arrow-down19
arrow-up1767arrow-down1imageSenior Wisdomcm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agomessage-square63fedilink
minus-squareZILtoid1991@lemmy.worldlinkfedilinkarrow-up13·12 hours agoComment your code. Problem solved.
minus-squareipkpjersi@lemmy.mllinkfedilinkarrow-up4·7 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-squareZILtoid1991@lemmy.worldlinkfedilinkarrow-up2·5 hours agoThat happened to me multiple times…
minus-squaresunbytes@lemmy.worldlinkfedilinkarrow-up9·11 hours agoAnd decent variable names if you can, as well. No magic numbers!
minus-squareZILtoid1991@lemmy.worldlinkfedilinkarrow-up2·11 hours agoWYM, I can’t just name my functions foo() and my variables single letters? /s
minus-squaresunbytes@lemmy.worldlinkfedilinkarrow-up2·7 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.
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.