907“It’s not that hard”(sh.itjust.works)posted 9 months ago bySjmarf@sh.itjust.worksin programmer_humor@programming.devView comments211 commentssavehidereportSort:HotTopControversialNewOldYou are viewing a single thread.View all comments View context [ +- ]floofloof@lemmy.ca2 points9 months ago*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. permalinksavereportparentreply