PythOnRails@programming.dev to Programming@programming.dev · 3 years ago"Useless syntax sugar": Numbered block parameters in Rubyzverok.spaceexternal-linkmessage-square33linkfedilinkarrow-up148arrow-down13cross-posted to: [email protected]
arrow-up145arrow-down1external-link"Useless syntax sugar": Numbered block parameters in Rubyzverok.spacePythOnRails@programming.dev to Programming@programming.dev · 3 years agomessage-square33linkfedilinkcross-posted to: [email protected]
minus-squareEager EaglelinkfedilinkEnglisharrow-up4·3 years agoif “left” and “right” were relevant for addition, they would indeed be better names
minus-squareexussumlinkfedilinkarrow-up1·3 years agoAre you against using a single letter variable like e for element in iterating over things?
minus-squareexussumlinkfedilinkarrow-up1·3 years agoTo each their own. But man imagine if you have a collection of stuff that has a large name, and then having to figure out a short name other than e when iterating. I hope you’re not iterating over chemical names 😬
minus-squareEager EaglelinkfedilinkEnglisharrow-up3·3 years agoNo need to be over-descriptive. Anything at all more specific than e will probably be a better name
if “left” and “right” were relevant for addition, they would indeed be better names
Are you against using a single letter variable like e for element in iterating over things?
yes
To each their own. But man imagine if you have a collection of stuff that has a large name, and then having to figure out a short name other than e when iterating. I hope you’re not iterating over chemical names 😬
No need to be over-descriptive. Anything at all more specific than
ewill probably be a better name