Sjmarf to Programmer Humor@programming.dev · 11 months ago“It’s not that hard”imagemessage-square196fedilinkarrow-up1968arrow-down158
arrow-up1910arrow-down1image“It’s not that hard”Sjmarf to Programmer Humor@programming.dev · 11 months agomessage-square196fedilink
minus-squarefloofloof@lemmy.calinkfedilinkEnglisharrow-up3arrow-down1·edit-211 months agoI guess you could make a rule of declaring your variables at the top of their scope, be it a class, a function or a code block. That would give clarity without needlessly expanding any scopes.
I guess you could make a rule of declaring your variables at the top of their scope, be it a class, a function or a code block. That would give clarity without needlessly expanding any scopes.