Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 1 year ago“It’s not that hard”sh.itjust.worksimagemessage-square200fedilinkarrow-up1958arrow-down158
arrow-up1900arrow-down1image“It’s not that hard”sh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 1 year agomessage-square200fedilink
minus-squareflooflooflinkfedilinkEnglisharrow-up3arrow-down1·edit-21 year 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.